a programmer prepares a questionnaire with true or false


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

how much longer is a 1-inch button than a 3/8-inch button

Questioned by shounteria @ in Mathematics viewed by 74 persons

View 0 answers

which style of vase had a black background?

Questioned by trent446 @ in Art viewed by 63 persons

View 0 answers

sex

Questioned by ethan283 @ in General viewed by 80 persons

View 0 answers

what happens during a land breeze?

Questioned by destiny56 @ in Biology viewed by 121 persons

View 0 answers

themes of mum dad and me by james berry

Questioned by xishauna @ in English viewed by 113 persons

View 0 answers

wtite an informative essay on a greek mythical character

Questioned by kadin421 @ in English viewed by 200 persons

hercules
View 0 answers

who understands me but me interpret the tone

Questioned by casarruibas @ in English viewed by 148 persons

reread lines 29-38 of who understands me but me interpret the tone and support your answer with textual evidence
View 0 answers

Most viewed questions in Computer Science


a programmer prepares a questionnaire with true or false

Questioned by administrator @ in Computer Science viewed by 11243 persons


played a vital role in the evolution of sdn

Questioned by administrator @ in Computer Science viewed by 1953 persons


in windows explorer ctrl j performs which operation

Questioned by administrator @ in Computer Science viewed by 1683 persons



the apparent limitation with surveys and questionnaires is

Questioned by administrator @ in Computer Science viewed by 1370 persons


________ aid a business grow and attain its objectives

Questioned by administrator @ in Computer Science viewed by 1246 persons


in windows explorer ctrl j performs which operation mcq

Questioned by administrator @ in Computer Science viewed by 1097 persons



in which model request reply command is example of

Questioned by administrator @ in Computer Science viewed by 881 persons


when included with list suppress record number display

Questioned by administrator @ in Computer Science viewed by 827 persons


objective of unsupervised data covers all these aspect except

Questioned by administrator @ in Computer Science viewed by 731 persons



a beautiful visual design can compensate flaws in usability

Questioned by administrator @ in Computer Science viewed by 669 persons


cpu efficiency is very less in case of

Questioned by administrator @ in Computer Science viewed by 526 persons


feature toggle can be used in the following scenarios

Questioned by administrator @ in Computer Science viewed by 521 persons



which of the following statement in incorrect blue prism

Questioned by administrator @ in Computer Science viewed by 521 persons


paper prototyping is hard to create modify and animate

Questioned by administrator @ in Computer Science viewed by 391 persons


tally vault password is assigned through company creation screen

Questioned by administrator @ in Computer Science viewed by 389 persons