Questions
Object is a/an ____________.
- entity of the class
- instance of the class
- attribute of the class
- method of the class
- function of the class
What feature allows us to reuse code?
- Data abstraction
- Polymorphism
- Inheritance
- Function overloading
- Virtual function
Which statement takes control to a particular statement?
- break
- goto
- continue
- if
- else
The concept of bundling data and function in a single unit is called __________.
- data abstraction
- encapsulation
- polymorphism
- inheritance
- virtual function
Which statement takes the control to the beginning of the loop?
- goto
- break
- continue
- if else
- switch
The programs are written by dividing into smaller units known as _________.
- procedures
- functions
- methods
- only 1 and 2
- only 1, 2 and 3
Which of the following is not an advantage of Object Oriented Programming?
- Reusability of code
- Polymorphism
- Data abstraction
- Encapsulation
- Virtual function
Which statement takes the control out of the loop?
- goto
- continue
- break
- if else
- switch
Which header file should be included to use exit function?
- iostream.h
- stdlib.h
- conio.h
- process.h
- dos.h
Conditional operator is an alternative to __________.
- switch
- break
- continue
- if else
- goto
'char st[]; is a valid statement'. This statement is
- true
- false
- finite
- infinite
- not define
void print() would return __________.
- null value
- integer
- float
- char
- based on function
How maximum char will allow char st[20] to be stored in the string?
- 20
- 19
- 18
- 21
- 17
An array int a[5][6] can store __________.
- 29 numbers
- 30 numbers
- 31 numbers
- 28 numbers
- no number
Index a[5] represents the number of integer in array ___________.
- 5
- 6
- 7
- 4
- 0
In which type of function does 'call the value' in the original variable remain the same?
- Pass by reference
- Pass by value
- Pass by object
- Pass by integer
- Pass by float
Which keyword is used to create structure?
- enum
- union
- array
- struct
- main
When constructor is invoked, _____________.
- object is destroyed
- object is created
- class is destroyed
- class is created
- both object and class are created
Which function is used to destroy the memory of an object?
- Constructor
- Destructor
- Virtual function
- Friend function
- Static function
By using which operator member can ' function of a class' be defined outside the class?
- Scope operator
- Resolution operator
- Scope resolution operator
- Unary operator
- Binary operator