Toggle navigation
Terms & Conditions
Contact
Home
GK
Computer
TRB
TNPSC
Aptitude
English
Reasoning
Technical
Bank Exams
SSC
Engineering
Puzzles
Interview
GD Topics
Blogs
Online Test
Free computer quiz Online Test - MeritNotes
Home
Online Exam
No. of Questions :10
Remaining Time :
1. The keyword volatile is used to declare
(a)
Objects that can be modified outside of a program control
(b)
Absence of a type
(c)
A member function that is defined in a subclass
(d)
All of these
2. In C++, programs, the keyword friend appears in the
(a)
class allowing access to another class
(b)
private section of a class
(c)
public section of a class
(d)
all of these
3. A C++ stream is
(a)
Associated with a particular class
(b)
Flow of control through a function
(c)
A file
(d)
A flow of data from one place to another
4. A base class
(a)
behave badly when chips are down
(b)
will be a generalized version of its derived classes
(c)
correspond to something in the real world
(d)
offer model more specific objects than its derived classes
5. The member function can always access the data in
(a)
Any object of the class of which it is a member
(b)
The public part of its class
(c)
The class of which it is member
(d)
The object of which is a member
6. In C language, the break statement causes an exit
(a)
Only from the innermost switch
(b)
Only from the innermost loop
(c)
From all loops and switches
(d)
From the innermost loop or switch
7. Copy constructor is invoked when a/an
(a)
Argument is passed by value
(b)
Argument is passed by reference
(c)
Function returns for reference
(d)
Function returns by value
8. In C++, when an argument is passed by reference
(a)
A variable is created in the function to hold the argument’s value
(b)
A temporary variable is created in the calling program to hold the argument’s value
(c)
The function cannot access the argument’s value
(d)
The function accesses the argument’s original value in the calling program
9. A project file
(a)
contains instructions for compiling and linking
(b)
contains definitions for C++ variables
(c)
examines contents of the files in the project
(d)
examines contents of the files in the project
10. In a for loop with a multi-statement, loop body semicolons should appear
(a)
The test expression
(b)
Each statement within the loop body
(c)
The closing brace in a multi-statement loop body
(d)
Both (a) and (b)