A programmer mistakenly writes gor instead of for


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

Do you know the better answer?

Similar Questions

A programmer writes a program to find an element

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

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

Why does the poet call the train tedious

Asked by kamini78 @ in English viewed by 42 persons

List four ways a language barrier can be overcome?

Asked by carrie34 @ in Health viewed by 49 persons

We are not responsible for a. what our children do b.what do our children do

Asked by kittu580 @ in English viewed by 52 persons

Are search engines doing partiality in the name of seo

Asked by amit0276 @ in Computers and Technology viewed by 45 persons

Write the sentence that is the topic sentence of the paragraph.

Asked by luis0132 @ in English viewed by 123 persons

A copyright is good for what length of time?

Asked by zameona4 @ in Social Sciences viewed by 69 persons

A = 16, c = 20, b =

Asked by adrian14 @ in Math viewed by 75 persons

What makes translation difficult

Asked by audra594 @ in English viewed by 66 persons

 A) some words have changed meaning and are difficult to research. B) some words are so old that they are no longer commonly used. C) some words are specific to …

Where was martha brought up and why ?

Asked by akansha09 @ in English viewed by 96 persons

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 14510 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 10655 persons


Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 8644 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 7979 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 7069 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 5614 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 5578 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 4568 persons


Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4267 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4265 persons



Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 3783 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 3435 persons


Program to circulate the values of n variables in python

Asked by admin @ in Computer Science viewed by 3395 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 3332 persons


Which of the following is the service catalogue manager responsible

Asked by admin @ in Computer Science viewed by 3194 persons