a programmer prepares a questionnaire with true or false


questioned by administrator @ in Computer Science viewed by 15275 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

programme for development of small medium and micro industries

Questioned by administrator @ in Economy viewed by 106 persons

Programme for development of small,medium and micro industries​
View 1 answer

which of the following is not an oxide ore

Questioned by administrator @ in Chemistry viewed by 73 persons

Which of the following is not an oxide ore ? a) Corundum b) Zincite c) Calamine d) Chromite ​
View 1 answer

the process of changing water into vapour is called

Questioned by administrator @ in Social Sciences viewed by 103 persons

Blanks 1. The process of changing of water into its vapour is called ______. 2. The process of changing water vapour into water is called ______. 3. No rainfall for …
View 1 answer

how much is the entrance fee to disneyland paris

Questioned by maham237 @ in Mathematics viewed by 83 persons

Work out the percentage discount offered with the family ticket option.
View 1 answer

which of the following are examples of prokaryotes

Questioned by administrator @ in Biology viewed by 108 persons

Which of the following are examples of prokaryotes ? A. Algae B. FungiC. BacteriaD. Protozoa ​
View 1 answer

in the figure ab and cd are common tangents

Questioned by administrator @ in Math viewed by 96 persons

In Fig. 9.13, AB and CD are common tangents to two circles of unequal radii. Prove that AB = CD.
View 1 answer

draw a pie chart for the following data

Questioned by administrator @ in Math viewed by 135 persons

draw a pie chart for the following data item of Expenditure food health clothing education saving amount spent in Rupees is 3750 1875 1875 1200 7500​
View 1 answer

short poem on mother in english with rhyming words

Questioned by administrator @ in English viewed by 118 persons

Poem on my mother consist of rhyming words
View 1 answer

why do we need air

Questioned by administrator @ in Environmental Sciences viewed by 112 persons

2) why do we need air?Answer:​
View 1 answer

explain the difference between accuracy and precision in an instrument

Questioned by administrator @ in Physics viewed by 84 persons

1. Explain the difference between accuracy and precision 2. Name a statistical quantity that can be used to indicate an accuracy level. 3. Name a statistical quantity that can be …
View 1 answer

the coach of a cricket team buys 7 bats

Questioned by administrator @ in Math viewed by 82 persons

the coach of cricket teams buys 7bats and 6 balls for 3800 . later she buys 3 bats and 5 balls for rs 1750. find the cost of each bat …
View 1 answer

which function below has the largest slope

Questioned by maham237 @ in Mathematics viewed by 62 persons

Which function below has the largest slope?. . f(x) xf(x). -3-10. -1-7. 1-4. . . g(x). g(x) over g(x) equals one half x plus 3. . h(x). . Lance gains …
View 1 answer

what is the difference between gravity and gravitational force

Questioned by administrator @ in Physics viewed by 88 persons

Difference between gravity and gravitational force?????? in points
View 1 answer

the specific reactants that an enzyme acts on are called

Questioned by administrator @ in Chemistry viewed by 121 persons

The specific reactants that an enzyme acts on are called
View 1 answer

an environment which is increasingly complex and turbulent displays

Questioned by administrator @ in Economy viewed by 321 persons

An environment which is increasingly complex and turbulent displays (A) More orderly competition(B) More predictable demand(C) A reduced risk of product obsolescence(D) Increased speed of innovation​
View 1 answer

what is the physics primer

Questioned by maham237 @ in Physics viewed by 112 persons

What is the Physics Primer? A. A set of mathematics topics that are relevant to introductory physics courses. B. A list of the most important formulas used in introductory physics …
View 1 answer

the energy emitted by the sun is due to

Questioned by administrator @ in Science viewed by 90 persons

The energy emitted by the sun is due to​
View 1 answer

who was nicholas novikov when did he write this telegram

Questioned by administrator @ in History viewed by 50 persons

Who was nicholas novikov? when did he write this telegram
View 1 answer

how many cents are in n nickels and c cents

Questioned by administrator @ in Mathematics viewed by 66 persons

How many cents are in n nickels and c cents?
View 1 answer

flu vaccine essay

Questioned by maham237 @ in English viewed by 169 persons

Examine a Centers for Disease Control advertising campaign that promotes the influenza (flu) vaccination. Analyze the campaign to discover the target audience and the advertising techniques used. Then evaluate the …
View 1 answer

what is the meaning of tp

Questioned by maham237 @ in English viewed by 66 persons

When clothes tag says size xs/tp, what does the tp mean?
View 1 answer

write a letter to the principal for fee concession

Questioned by administrator @ in English viewed by 107 persons

Write a letter to your principal for fee concession
View 1 answer

an ideal gas occupies a volume of 2 m3

Questioned by administrator @ in Physics viewed by 87 persons

An ideal gas occupies a volume of 2m3 at a pressure of 3106 pa. The energy of the gas is :
View 1 answer

don t count your chickens before they hatch expansion

Questioned by administrator @ in Biology viewed by 68 persons

Don't count your chickens before they hatch expansion of idea
View 1 answer

all chemicals in the lab are to be considered dangerous

Questioned by administrator @ in Biology viewed by 68 persons

All chemicals in the lab are to be considered dangerous true or false
View 1 answer

abcd is a rhombus and pqrs are midpoints

Questioned by administrator @ in Math viewed by 92 persons

ABCD is a rhombus and P, Q, R and S are the mid-points of the sides AB, BC, CD and DA respectively. Show that the quadrilateral PQRS is a rectangle
View 1 answer

sydney harbour bridge parabola

Questioned by maham237 @ in Mathematics viewed by 85 persons

The arch of the Sydney Harbor Bridge is appropriate 500 meters long and 85 meter high. What quadratic function models the curve of the arch? Assume the arch starts at …
View 1 answer

identify the correct statement for change of gibbs energy

Questioned by administrator @ in Chemistry viewed by 87 persons

Identify the correct statement for change of Gibbs energy for a system (ΔG????y????????????m) at constant temperature and pressure (a) If ΔG????y????????????m = 0, the system has attained equilibrium (b) If …
View 1 answer

the epa tries to balance protecting business interests with protecting

Questioned by administrator @ in History viewed by 74 persons

The EPA tries to balance protecting business interests with protecting __________ a. food b. air c. consumer products d. medical devices
View 1 answer

during eukaryotic transcription an rna molecule is formed that is

Questioned by maham237 @ in Biology viewed by 92 persons

During eukaryotic transcription, an RNA molecule is formed that is A. complementary to both strands of DNA.. B. identical to an entire single strand of DNA. C. double-stranded and inside …
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 15275 persons


tally vault password is assigned through company creation screen

Questioned by administrator @ in Computer Science viewed by 2596 persons


played a vital role in the evolution of sdn

Questioned by administrator @ in Computer Science viewed by 2594 persons



________ aid a business grow and attain its objectives

Questioned by administrator @ in Computer Science viewed by 2523 persons


in windows explorer ctrl j performs which operation

Questioned by administrator @ in Computer Science viewed by 2445 persons


the apparent limitation with surveys and questionnaires is

Questioned by administrator @ in Computer Science viewed by 1676 persons



in windows explorer ctrl j performs which operation mcq

Questioned by administrator @ in Computer Science viewed by 1399 persons


in which model request reply command is example of

Questioned by administrator @ in Computer Science viewed by 1239 persons


when included with list suppress record number display

Questioned by administrator @ in Computer Science viewed by 1011 persons



which of the following statement in incorrect blue prism

Questioned by administrator @ in Computer Science viewed by 935 persons


objective of unsupervised data covers all these aspect except

Questioned by administrator @ in Computer Science viewed by 917 persons


which part of dbms focuses on logical information requirements

Questioned by administrator @ in Computer Science viewed by 862 persons



a beautiful visual design can compensate flaws in usability

Questioned by administrator @ in Computer Science viewed by 787 persons


cpu efficiency is very less in case of

Questioned by administrator @ in Computer Science viewed by 718 persons


feature toggle can be used in the following scenarios

Questioned by administrator @ in Computer Science viewed by 641 persons