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. Classes are useful because they
(a)
Can closely model objects in the real world
(b)
Bring together all aspects of an entity in one place
(c)
Permit data to be hidden from other classes
(d)
Are removed from memory when not in use
2. Turbo C++ library function can be used
(a)
Draw lines and circles
(b)
Write text in a variety of fonts and sizes
(c)
Color any closed figure
(d)
All of these
3. Virtual functions allow to
(a)
Use same function call to execute member functions of objects from different classes
(b)
Group objects of different classes so they can all be accessed by the same function code
(c)
Create functions that have no body
(d)
Create an array of type pointer to base calls that can hold pointers to derived classes
4. Breaking a program into several files is desirable because
(a)
A program can be divided functionally
(b)
Each programmer can work on a separate file
(c)
Some files don’t need to be recompiled each time
(d)
Files can be marketed in object form
5. The keyword void is used to declare
(a)
Objects that can be modified outside of program control
(b)
A synonym for an existing type
(c)
A member function that is defined in a subclass
(d)
Absence of a type
6. In a stock, the data item placed on the stack first is
(a)
Given as index zero
(b)
Not given as index number
(c)
The first data item to be removed
(d)
The last data item to be removed
7. In new operator
(a)
Each link contains data or a pointer to data
(b)
Each link contains a pointer to the next link
(c)
Links are stored in an array
(d)
An array of pointers point to the links
8. A virtual base class is useful when
(a)
It makes sense to use a base class is ambiguous
(b)
Identification of a function in a base class is ambiguous
(c)
There are multiple paths from one derived class to another
(d)
Different functions in base and derived classes have the same name
9. The public files in a class library usually contain
(a)
Variable definition
(b)
Class declarations
(c)
Constant definitions
(d)
Member function definitions
10. 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