in Education by
Class brush{ private: integer size, rcode function getdata() { … }// Statement 1 public: integer name // Statement 2 function putdata() { … } } function main { brush b1,b2 print b1.name // Statement 3 b2.getdata() //Statement 4 } Select the correct answer from above options

1 Answer

0 votes
by
} 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:

Related questions

0 votes
    Ankita takes as input 2 integer numbers, a and b, whose value can be between 0 and 31. He stores them as 5 bit ... 4: 9 bits Op 5: Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    1. In the C programming language to scan the integer type data which of the following is used? %d %f %I %c Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    1. In the C programming language to scan the integer type data which of the following is used? Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    Write a function in python to sort n numbers of integer stored in a list passed as parameter in function selesort(L[],n) Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Write a C program to accept an integer number between 1 and 9. Write the value of the number in words. Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    which of the following symbol is used to represent integer? a)%d b)%f c)%c d)%s Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    write a program to read an integer and find its reverse. note: if user enter 1234 then the output should be 4321 in Python Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    write an algorithm to accept an integer number and print the factors of it Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Write an if statement to find the smallest of three given integers using min() method of the Math class. Plz solve this quickly.. Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    what is a program or hardware device that filters the info coming through internet connection into your private ... computer system Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    24 ina rsa system the public key(e,n) of user a is defined as (7,187).Calculate totient(n) and private ... you encrypt message m=88? Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    I have an array of mouse points, a stroke width, and a softness. I can draw soft circles and ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    to get the number of dimensions of a series object, attribute is displayed 1.index 2.size 3.item size 4.Ndim Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
...