menu

CS201 Latest Solved

CS201 Latest Solved MCQs 25 Question No: 18 ( Marks: 1 ) - Please choose one Which one of the following is the declaration of overloaded pre-increment operator implemented as member function? ► Class-name operator +() ; ► Class-name operator +(int) ; ► Class-name operator ++() ; ► Class-name operator ++(int) ; Question No: 19 ( Marks: 1 ) - Please choose one For cin, the source is normally a ________ and destination can be ______. ► File, native data type ► Disk, user-define type ► Keyboard, variable ► File, user-define type Question No: 20 ( Marks: 1 ) - Please choose one We can also do conditional compilation with preprocessor directives. ► True ► False Question No: 21 ( Marks: 1 ) - Please choose one The programs, in which we allocate static memory, run essentially on ________ ► Heap ► System Cache ► None of the given options ► Stack Question No: 22 ( Marks: 1 ) - Please choose one The default value of a parameter can be provided inside the ________________ ► function prototype ► function definition ► both function prototype or function definition ► none of the given options. for more just visit vu.ysapak.com CS201 Latest Solved MCQs 26 Question No: 23 ( Marks: 1 ) - Please choose one While calling function, the arguments are assigned to the parameters from _____________. ► left to right. ► right to left ► no specific order is followed ► none of the given options. Question No: 24 ( Marks: 1 ) - Please choose one When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are. ► Zero ► One ► Two ► N arguments Question No: 25 ( Marks: 1 ) - Please choose one With user-defined data type variables (Objects), self assignment can produce__________. ► Syntax error ► Logical error ► Link error ► Non of the given options Question No: 26 ( Marks: 1 ) - Please choose one Assignment operator is used to initialize a newly declared object from existing object. ► True ► False Question No: 27 ( Marks: 1 ) - Please choose one When an object of a class is defined inside an other class then, ► Constructor of enclosing class will be called first ► Constructor of inner object will be called first ► Constructor and Destructor will be called simultaneously ► None of the given options for more just visit vu.ysapak.com CS201 Latest Solved MCQs 27 Question No: 28 ( Marks: 1 ) - Please choose one In the member initializer list, the data members are initialized, ► From left to right ► From right to left ► In the order in which they are defined within class ► None of the given options Question No: 29 ( Marks: 1 ) - Please choose one new operator allocates memory from free store and return _____________. ► A pointer ► A reference ► An integer ► A float Question No: 30 ( Marks: 1 ) - Please choose one "new" and "delete" keywords are _____________ in C++ language. ► Built-in- Function ► Operators ► Memory Allocation Function ► None of the given options for more just visit vu.ysapak.com http://htxt.it/e2gM