MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Practice
Csc102 Chapter 12 Quiz
«
Multiple Choice Questions
»
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
deep
0%
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.
12, 81
0%
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;
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.
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.
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.
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.
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.
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 ____________________;
*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 ____________________.
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.
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;
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.
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.
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.
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.
*
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 ____.
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)
0 h : 0 m : 1 s
«
Multiple Choice Questions
»
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
0
Answered
0
Not Answered
0
Not Visited
Correct : 0
Incorrect : 0
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page