A programmer mistakenly writes gor instead of for


Asked by admin @ in Computer Science viewed by 18969 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 admin @



} 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:


Answered by black892 @


C

Answered by sanjana11 @


Gu

Answered by tanuzz59 @


❤da

Similar Questions

A programmer writes a program to find an element

Asked by admin @ in Computer Science viewed by 782 persons

A programmer writes a program to find an element in the array A[5] with the elements:8 30 40 45 70 the program is run to find a number X,that is …

Write the important features of national rural employment programme

Asked by admin @ in Economy viewed by 410 persons

What are the main features of the national rural employment guarantee act 2005?

Which of the following would best complete this list?

Asked by wiki @ in Social Studies viewed by 596 persons

What had the king decided to do before he saw the spider

Asked by vanshika149 @ in English viewed by 821 persons

Describe the karez in your own words

Asked by rajesh064 @ in English viewed by 921 persons

What is 8 + (x + 5)?

Asked by jaylord7 @ in Mathematics viewed by 806 persons

What is the topic of the info grapher

Asked by jesus643 @ in History viewed by 1019 persons

Elephant kills 11 in nepal , woman rescued from a friendly dolphine

Asked by kavin044 @ in English viewed by 970 persons

(-3,0);slope =2/3

Asked by timothy2 @ in Biology viewed by 1077 persons

Which is an example of situational irony in "wherefore art thou romeo?”

Asked by noah5213 @ in English viewed by 1170 persons

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 18969 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15666 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10905 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10351 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8677 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8078 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7802 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6436 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5731 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5632 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5418 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4934 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4926 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4648 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4444 persons