NEW
Font size
WorksheetsC++ Quiz-1
Total questions: 15
Worksheet time: 9mins
Pick out the defination of objects?
Member of the class
Associate of the class
Attributes of the class
Instance of the class
How many objects can present in a single class?
2
4
As many as possible
0
Wrapping of data & its related functionality in to a single entity is called
Abstraction
Encapsulation
Polymorphism
Modularity
Which concept allows you to reuse the written code?
Encapsulation
Inheritance
Polymorphism
Class
What does modularity means?
Hiding part of program
Subdividing programs into small independent parts
Overriding parts of programs
Wrapping things into single unit?
C++ is _____________
Both procedural & object oriented programming language
Procedural programming language
Functional programming language
What are the actual parameters in c++?
Parameters with which functions are called
Parameters used in function definition
Variables that are never used in function
Variables other then passed parameter in function
Which of the following is called insertion operator?
<<
>>
*
<
Which of the following is called extraction or get from operator?
>>
<<
>
**
Which of the following explains Polymorphism?
int func(int, int);
float func1(float, float);
int func(float);
int func(int, int, char);
int func();
int new_func();
int func(int);
int func(int);
Which of the following is not a fundamental type is not present in C but present in C++?
int
void
bool
char
What is the size of a boolean variable in C++?
1 bit
2bit
1byte
2byte
Which of the following is C++ equivalent for scanf()?
cout
cin
scanf
input
Which of the following is an exit-controlled loop?
for
while
do-while
all of above
Which of the following is an entry-controlled loop?
for
none
do-while
all of above
