(A) 13
(B) 12
(C) 11
(D) 10
Tag: Introduction to Programming
If an array has 50 elements, what is allowable range of subscripts?
(A) 0 – 49
(B) 1 – 49
(C) 0 – 50
(D) 1 – 50
The function will return a reference to the global variable that exists throughout the program and thus there will be no danger of__.
(A) garbage collection
(B) dangling reference.
(C) wastage of memory
(D) system crash
C++ provides member functions, which control the formatting to be performed during stream I/O operations?
(A) True
(B) False
(C) Both
(D) None
Look at the statement given below int & a; and tell what will happen ?
(A) Compiler will compile successfully
(B) Compiler will show a warning to you
(C) Null value will be assigned to a
(D) Compiler will generate an error: ‘a’ declared as reference but not initialized
The stream insertion and extraction operators are not already overloaded for __.
(A) Built-in data types
(B) User-defined data types
(C) Both built-in and user-defined types
(D) None of the given options
Constructor is itself a __ of C++ and __.
(A) class , can be overloaded
(B) function , cannot be overloaded
(C) function, can be overloaded
(D) object, can not be initialized
A copy constructor is always called when?
(A) an object is initialized with another object data of the same class when it’s created
(B) n object is initialized with another object of any class when it’s created
(C) an object is initialized with a variable of a basic type when it’s created
(D) an object is not initialized when it’s created