a programmer prepares a questionnaire with true or false


questioned by administrator @ in Computer Science viewed by 15760 People


Class brush{

private:integer size,rcodefunction getdata() { ... }// Statement 1public:integer name // Statement 2function putdata() { ... }}function main{brush b1,b2print b1.name // Statement 3b2.getdata() //Statement 4}​

Answered by administrator @



} a) n equals 1 (ans) b) n equals 2 c) n>=1 d) n>1 In which of the following situations can a constructor be invoked? a) When an object is created(ans) b) When an object is assigned the value 0 c) Only at the end of the code d) When the scope of the object is over A programmer prepares a questionnaire with “true or false” type of questions. He wants to define a data type that stores the responses of the candidates for the questions. Which of the following is the most suited data type for this purpose? a) Integer b) Boolean(ans) c) Float d) Character A sorting mechanism uses the binary tree concept such that any number in the tree is larger than all the numbers in the sub-tree below it. What is this method called? a) Selection sort b) Insertion sort c) Heap sort (ans) d) Quick sort A programmer mistakenly writes “gor” instead of the keyword “for” used in loops, while writing a program in C++.what will this result in?

a) The code would not compile. (ans) b) The code would give an error while execution. c) The code may work for some inputs and not for the others. d) The code would not create any problem. A programmer writes a sorting algorithm that takes different amount of the time to sort two different lists of equal size. what is the possible difference between the two lists? a) All number in one lists are more than 100 while in the other are less than 100. b) The ordering of numbers with respect to the magnitude in the two lists has different properties.(ans) c) One list has all negative numbers while the other has all positive numbers. d) One list contains 0 as an element while the other does not. Refer to the pseudo code given in the ‘passage’. The code is similar to that in C++ and is self-explanatory. An accessible member function and a data member for an object are accessed by the statements objectname.functionname and objectname.datamembername, respectively. Which statement should be deleted from the code to rectify the error in it? Class brush { Private: Integer size,c rcode function getdata(){…..}//statement 1 public:


Do you know the better answer?

Latest questions in Computer Science

what advantage does a video-sharing site have over a newspaper

Questioned by administrator @ in Social Studies viewed by 82 persons

What advantage does a video-sharing site have over a newspaper? A. Videos on the Internet don't require any authentication or proof in order to be posted. B. People can view …
View 1 answer

what is the full form of the rdbms

Questioned by administrator @ in Computer Science viewed by 172 persons

What is the full form of RDBMS?
View 1 answer

how much caffeine is in 18 ounce cup of coffee

Questioned by administrator @ in Mathematics viewed by 155 persons

An 8oz cup of coffee has about 184 mg of caffeine. This is 5 times much caffeine as in a 12 oz soft drink. Write and solve an equation to …
View 1 answer

why does the government sometimes give monopoly power to a company by issuing a patent?

Questioned by maham237 @ in Social Studies viewed by 143 persons

Why does the government sometimes give monopoly power to a company by issuing a patent? a. the government does not want competition for the product. b. the company makes a …
View 1 answer

calculator e 4

Questioned by maham237 @ in Mathematics viewed by 173 persons

Jenna calculated several numbers in her calculator. The result displayed 1.8E-4 on the calculator screen. Which equivalent number(s) does this represent? Select all that apply.
View 1 answer

in an isosceles trapezoid each pair of base angles is

Questioned by administrator @ in Mathematics viewed by 144 persons

In an isosceles trapezoid, each pair of base angles is __________. A. right B. Supplementary C. complimentary D. congruent
View 1 answer

what effect does the speed of molecules have on matter

Questioned by administrator @ in Chemistry viewed by 151 persons

What effect does the speed of molecules have on matter? (ANSWER AS QUICKLY AS POSSIBLE PLZ & EARN 40 POINTS) A. It helps figure out the matter’s density. B. It …
View 1 answer

key privileges included in both the english bill of rights and the us bill of rights include

Questioned by maham237 @ in History viewed by 280 persons

Key privileges included in both the English Bill of Rights and the US Bill of Rights include protection against unusual punishment and the right to trial by jury. the rights …
View 1 answer

what is the leading cause of surface tension in water

Questioned by administrator @ in Biology viewed by 171 persons

What causes surface tension in water?
View 1 answer

prove that the angle subtended by an arc

Questioned by administrator @ in Math viewed by 131 persons

Prove that angle subtended by an arc at the centre is double the angle subtended by it at any point on the remaining part of the circle. Explain with complete …
View 1 answer

which of the following tissues has dead cells

Questioned by administrator @ in Biology viewed by 155 persons

Which of the following tissue has dead cell---- (a) Parenchyma (b) Collenchyma (c) Sclerenchyma (d) Epithelial cell​
View 1 answer

2x 8 2x 2

Questioned by maham237 @ in Mathematics viewed by 108 persons

What is the sum of 3x^3-2x+8, 2x^2+5x and x^3+2x^2-3x-3 PLEASE HELP
View 1 answer

relative concentration of atp per cell under different growth conditions

Questioned by administrator @ in Biology viewed by 149 persons

Researchers studied the relationship between glucose concentration, oxygen level, and ATP production in one type of mammalian cell. Cells were isolated and cultured in growth medium containing either 1.5mM glucose …
View 1 answer

a small business can thrive even in a bad economy

Questioned by administrator @ in Business viewed by 151 persons

A small business can thrive, even in a bad economy. True False
View 1 answer

monetary policy administered by the fed is the principal method

Questioned by administrator @ in Business viewed by 119 persons

Monetary policy administered by the fed is the principal method of softening the effects of the business cycle because _____.
View 1 answer

what do the three witches prophecy for macbeth and banquo

Questioned by administrator @ in English viewed by 128 persons

What do the three witches prophecy for Macbeth and Banquo?
View 1 answer

a maritime tropical air mass has which type of air

Questioned by administrator @ in Physics viewed by 178 persons

Compared to a maritime tropical air mass, a maritime polar air mass has?
View 1 answer

which of the following correctly describes the parthenon in greece

Questioned by maham237 @ in Arts viewed by 180 persons

Which of the following correctly describes the Parthenon in Greece? 1. mathematical ratios, symmetry, and proportion 2. carved relief sculptures inspired by Egyptian temple columns 3. a massive dome that …
View 1 answer

72 inch wingspan

Questioned by maham237 @ in Mathematics viewed by 139 persons

The scale of a model airplane is 1:72. If the wingspan on the model airplane is 7 1/2 inches, then the actual wingspan is _____. 540 feet 72 feet 45 …
View 1 answer

which gas is collected by downward displacement of water

Questioned by administrator @ in Chemistry viewed by 154 persons

Name of the gases which are collected by downward displacement of water
View 1 answer

many plains nations depended upon which animal for their survival

Questioned by administrator @ in History viewed by 153 persons

Many Plains nations depended upon which animal for their survival?
View 1 answer

which of the following organization types describes a sole proprietorship

Questioned by administrator @ in Business viewed by 154 persons

Choose the statements that CORRECTLY describe a business organization. choices Sole Proprietorships and Partnerships both have unlimited liability.Corporations are owned by 100 or more people.Corporations are generally subject …
View 1 answer

the paramecium is a single celled organism that reproduces asexually

Questioned by administrator @ in Biology viewed by 150 persons

The paramecium is a single-celled organism that reproduces asexually. The offspring of a paramecium usually contain * only half of the genes of the parent cells more DNA than the …
View 1 answer

what was the purpose of the northwest ordinance of 1787

Questioned by administrator @ in History viewed by 123 persons

What was the purpose of the Northwest Ordinance of 1787? A) to provide a system of government for the Northwest Territory B) to help ordinary farmers obtain land C) to …
View 1 answer

what are four foods that are high in complex carbohydrates

Questioned by administrator @ in Health viewed by 153 persons

What are foods that are high in simple carbohydrates and four food s that are high in complex carbohydrates
View 1 answer

frenkel defects are not found in alkali metal halides

Questioned by administrator @ in Chemistry viewed by 123 persons

Why is Frenkel defect not found in pure alkali metal halides??
View 1 answer

a mental state other than an ordinary waking state is

Questioned by administrator @ in Social Studies viewed by 107 persons

A mental state other than an ordinary waking state, in which there are distinct changes in perception, emotion, memory, thinking, and the like, is called altered _____. a. states of …
View 1 answer

how to find a mixed number on a number line

Questioned by administrator @ in Mathematics viewed by 126 persons

Draw a line to show the mixed number and fraction that have the same value
View 1 answer

the four major stages of a product life cycle include

Questioned by administrator @ in Business viewed by 169 persons

All products go through a product life cycle of ________ stages: ________. A. four; introduction, growth, maturity, and decline B. four; awareness, interest, trial, and adoption C. three; new, improved, …
View 1 answer

what color of light in the visible spectrum appears brightest

Questioned by administrator @ in Physics viewed by 156 persons

What color of light in the visible spectrum appears brightest? does this mean that it is the highest energy light?
View 1 answer

Most viewed questions in Computer Science


a programmer prepares a questionnaire with true or false

Questioned by administrator @ in Computer Science viewed by 15760 persons


tally vault password is assigned through company creation screen

Questioned by administrator @ in Computer Science viewed by 3113 persons


played a vital role in the evolution of sdn

Questioned by administrator @ in Computer Science viewed by 2812 persons



________ aid a business grow and attain its objectives

Questioned by administrator @ in Computer Science viewed by 2703 persons


in windows explorer ctrl j performs which operation

Questioned by administrator @ in Computer Science viewed by 2600 persons


the apparent limitation with surveys and questionnaires is

Questioned by administrator @ in Computer Science viewed by 1773 persons



in windows explorer ctrl j performs which operation mcq

Questioned by administrator @ in Computer Science viewed by 1507 persons


in which model request reply command is example of

Questioned by administrator @ in Computer Science viewed by 1302 persons


when included with list suppress record number display

Questioned by administrator @ in Computer Science viewed by 1125 persons



which of the following statement in incorrect blue prism

Questioned by administrator @ in Computer Science viewed by 1063 persons


objective of unsupervised data covers all these aspect except

Questioned by administrator @ in Computer Science viewed by 1016 persons


which part of dbms focuses on logical information requirements

Questioned by administrator @ in Computer Science viewed by 989 persons



a beautiful visual design can compensate flaws in usability

Questioned by administrator @ in Computer Science viewed by 861 persons


cpu efficiency is very less in case of

Questioned by administrator @ in Computer Science viewed by 788 persons


feature toggle can be used in the following scenarios

Questioned by administrator @ in Computer Science viewed by 721 persons