The ____ constructor is executed when an object is declared and initialized by using the value of another object.
0%
The C++ operator ____ is used to create dynamic variables.
0%
In a ____ copy, two or more pointers of the same type point to the same memory.
0%
In a ____ copy, two or more pointers have their own data.
Q.2.
12, 81
100%
The statement int p; is equivalent to int p;, which is also equivalent to the statement ____________________.
0%
The C++ operator ____ is used to destroy dynamic variables.
0%
The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.
0%
What is the output of the following code?int *p;int x;x = 12;p = &x;cout << x << ", ";*p = 81;cout << *p << endl;
Q.3.
copy
0%
The statement int p; is equivalent to int p;, which is also equivalent to the statement ____________________.
0%
The ____ constructor is executed when an object is declared and initialized by using the value of another object.
0%
The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.
0%
The ____ operator can be used to return the address of a private data member of a class.
Q.4.
shallow
0%
The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.
0%
In C++, virtual functions are declared using the reserved word ____.
0%
The ____ operator can be used to return the address of a private data member of a class.
0%
In a ____ copy, two or more pointers of the same type point to the same memory.
Q.5.
execution or run
0%
The ____ operator can be used to return the address of a private data member of a class.
0%
The binding of virtual functions occurs at program ____________________ time.
0%
A class ____ automatically executes whenever a class object goes out of scope.
0%
The ____________________ of a base class automatically makes the destructor of a derived class virtual.
Q.6.
delete
0%
In a ____ copy, two or more pointers of the same type point to the same memory.
0%
In C++, virtual functions are declared using the reserved word ____.
0%
The C++ operator ____ is used to destroy dynamic variables.
0%
The C++ operator ____ is used to create dynamic variables.
Q.7.
virtual
0%
In C++, virtual functions are declared using the reserved word ____.
0%
A class ____ automatically executes whenever a class object goes out of scope.
0%
The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.
0%
In C++, ____ is called the address of operator.
Q.8.
43, 43
0%
What is the output of the following code?int *p;int x;x = 76;p = &x;*p = 43;cout << x << ", " << *p << endl;
0%
The statement int p; is equivalent to int p;, which is also equivalent to the statement ____________________.
0%
The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.
0%
The statement that declares board to be an array of six pointers wherein each pointer is of type int is: int ____________________;
Q.9.
*board[6]
0%
void pointerParameters(int &p, double q){...}In the function pointerParameters, the parameter p is a(n) ____________________ parameter.
0%
The statement that declares board to be an array of six pointers wherein each pointer is of type int is: int ____________________;
0%
What is the output of the following code?int *p;int x;x = 12;p = &x;cout << x << ", ";*p = 81;cout << *p << endl;
0%
The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.
Q.10.
studentPtr->gpa
0%
An array created during the execution of a program is called a(n) ____ array.
0%
In ____ binding, the necessary code to call a specific function is generated by the compiler.
0%
Consider the following declaration of a struct:struct studentType{char name[26];double gpa;int sID;char grade;};studentType student;studentType *studentPtr;The statement (*studentPtr).gpa = 2.5; is equivalent to ___________________ = 2.5;
0%
The code int *p; declares p to be a(n) ____ variable.
Q.11.
33
0%
What is the value of x after the following statements execute?int x = 25;int *p;p = &x;*p = 46;
0%
The ____ constructor is executed when an object is declared and initialized by using the value of another object.
0%
What is the output of the following statements?int x = 33;int *q;q = &x;cout << *q << endl;
0%
What is the output of the following code?int *p;int x;x = 76;p = &x;*p = 43;cout << x << ", " << *p << endl;
Q.12.
destructor
0%
In C++, ____ is called the address of operator.
0%
A class ____ automatically executes whenever a class object goes out of scope.
0%
In a ____ copy, two or more pointers of the same type point to the same memory.
0%
The ____ operator can be used to return the address of a private data member of a class.
Q.13.
int
0%
Consider the following declaration of a struct:struct studentType{char name[26];double gpa;int sID;char grade;};studentType student;studentType *studentPtr;The statement (*studentPtr).gpa = 2.5; is equivalent to ___________________ = 2.5;
0%
Given the declaration int *a;, the statement a = new int[50]; dynamically allocates an array of 50 components of the type ____.
0%
In ____ binding, the necessary code to call a specific function is generated by the compiler.
0%
The code int *p; declares p to be a(n) ____ variable.
Q.14.
static
0%
Consider the following declaration of a struct:struct studentType{char name[26];double gpa;int sID;char grade;};studentType student;studentType *studentPtr;The statement (*studentPtr).gpa = 2.5; is equivalent to ___________________ = 2.5;
0%
In ____ binding, the necessary code to call a specific function is generated by the compiler.
0%
An array created during the execution of a program is called a(n) ____ array.
0%
The ____ constructor is executed when an object is declared and initialized by using the value of another object.
Q.15.
dynamic
0%
Run-time binding is also known as ____ binding.
0%
In C++, virtual functions are declared using the reserved word ____.
0%
The C++ operator ____ is used to destroy dynamic variables.
0%
In a ____ copy, two or more pointers have their own data.
Q.16.
*
0%
In C++, you declare a pointer variable by using the ____ symbol.
0%
In a ____ copy, two or more pointers have their own data.
0%
The C++ operator ____ is used to destroy dynamic variables.
0%
In C++, virtual functions are declared using the reserved word ____.
Q.17.
rulerType(const rulerType& myRuler)
0%
Consider the following statements:void pointerParameters(int &p, double q){...}In the function pointerParameters, the parameter q is a(n) ____________________ parameter.
0%
Consider the following statement: ptrMemberVarType objectThree(objectOne);The values of the member variables of objectOne are being copied into the corresponding member variables of objectThree. This initialization is called the ____.
0%
Consider the following statements:class shape{public:virtual void draw() = 0;virtual void move(double x, double y) = 0;...};The code above is an example of a(n) ____________________ class definition.
0%
Which of the following would be appropriate syntax for the heading of a copy constructor for a class called rulerType?a. rulerType() b. copy rulerType(int inches, int centimeters) c. rulerType(const rulerType& myRuler) d. rulerType(int inches, int centimeters)
Support mcqgeeks.com by disabling your adblocker.
Please disable the adBlock and continue. Thank you.