Grug 6
Grug 6
created?
Question
Virtual class
Abstract class
Singleton class
Friend class
Which of the following is not a type of constructor?
Question
Copy constructor
Friend constructor
Default constructor
Parameterized constructor
Which of the following statements is correct?
Question
Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to derived class cannot be created.
Pointer to base class cannot be created.
Which of the following is not the member of class?
Question
Static function
Friend function
Const function
Virtual function
Which of the following concepts means determining at runtime what
method to invoke?
Question
Data hiding
Dynamic Typing
Dynamic binding
Dynamic loading
Which of the following term is used for a function defined inside a class?
Question
Member Variable
Member function
Class function
Classic function
Which of the following concept of oops allows compiler to insert
arguments in a function call if it is not specified?
Question
Call by value
Call by reference
Default arguments
Call by pointer
How many instances of an abstract class can be created?
Question
1
5
13
0
Which of the following cannot be friend?
Question
Function
Class
Object
Operator function
Which of the following concepts of OOPS means exposing only necessary
information to client?
Question
Encapsulation
Abstraction
Data hiding
Data binding
Why reference is not same as a pointer?
Question
A reference can never be null.
A reference once established cannot be changed.
Reference doesn't need an explicit dereferencing mechanism.
All of the above.
Cout is a/an __________ ?
Question
operator
function
object
macro
Which of the following concepts provides facility of using object of one
class inside another class?
Question
Encapsulation
Abstraction
Composition
Inheritance
How many types of polymorphisms are supported by C++?
Question
1
2
3
4
Which of the following is an abstract data type?
Question
int
double
string
Class
Which of the following concepts means adding new components to a
program as it runs?
Question
Data hiding
Dynamic typing
Dynamic binding
Dynamic loading
Which of the following statement is correct?
Question
A constructor is called at the time of declaration of an object.
A constructor is called at the time of use of an object.
A constructor is called at the time of declaration of a class.
A constructor is called at the time of use of a class.
Which of the following correctly describes overloading of functions?
Question
Virtual polymorphism
Transient polymorphism
Ad-hoc polymorphism
Pseudo polymorphism
In Turbo C++ which of the following command is used to open a new file?
Question
Press Alt + F, N
Press Alt + F5, N
Press Alt + F9, N
Press Alt + F3, N
In Turbo C++ which of the following command is used to save the current
file?
Question
Press F9
Press F5
Press F3
Press F2
In Turbo C++ which of the following command is used to compile and run
the program?
Question
Press Ctrl + F2
Press Ctrl + F9
Press Ctrl + F5
Press Ctrl + F4
In Turbo C++ which of the following command is used to view the output
of the program?
Question
Press Alt + F5
Press Alt + F4
Press Alt + F2
Press Alt + F9
In Turbo C++ which of the following command is used to close the
currently opened file?
Question
Press Alt + F5
Press Alt + F3
Press Alt + F9
Press Alt + F2
In Turbo C++ which of the following command is used to exit Turbo C+
+?
Question
Press Alt + Z
Press Alt + A
Press Alt + X
Press Alt + C
In Visual Studio C++, which of the following command is used to
Compile and execute the program?
Question
Press Ctrl + F5
Press Ctrl + F4
Press Ctrl + F9
Press Ctrl + F3
C++ programs are converted into machine language with the help of?
Question
An Editor
A Compiler
An operating system
A Programmer
Which of the command prompt is used to change the directory?
Question
AB
BC
CD
DC
Which of the following command is used to execute a program using gcc
compiler?
Question