Q.1
Which of the following is not a type of inheritance?
  • Double-level
  • Multi-level
  • Single-level
  • Multiple
Q.2
Which of the following best describes inheritance?
  • Ability of a class to derive members of another class as a part of its own definition
  • Means of bundling instance variables and methods in order to restrict access to certain class members
  • Focuses on variables and passing of variables to functions
  • Allows for implementation of elegant software that is well designed and easily modified
Q.3
JAVA symbol is
  • Cup
  • Tea Cup
  • Coffee Cup
  • all
Q.4
Class contains....................
  • Members
  • variables
  • data types
  • all of the above
Q.5
If class B is subclassed from class A then which is the correct syntax
  • class B:A{}
  • class B extends A{}
  • class B extends class A{}
  • class B implements A{}
Q.6
Which of the following operator is overloaded for object cout?
  • >>
  • <<
  • +
  • =
Q.7
Order of execution of constructors in Java Inheritance is
  • Base to derived class
  • Derived to base class
  • Random order
  • none
Q.8
Once we compile the C++ code and the .exe is generated,we can run the program from DOS prompt
  • maybe
  • no
  • true
  • false
Q.9
Which of the following concepts means determining at runtime what method to invoke?
  • Data hiding
  • Dynamic Typing
  • Dynamic binding
  • Dynamic loading
Q.10
the <iostream .h> provides the basic INPUT and output fundamentales
  • true
  • false
  • maybe
  • All of above
Q.11
Computers work on instructions given to them in a specific language which is known as __________
  • programming language
  • bitcode
Q.12
A program written in a high language is called a ____________
  • object
  • source code
  • variable
  • constant
Q.13
we need to write the c++ code using binary numbers
  • true
  • false
  • maybe
Q.14
The assignment operator is used to assign a data type to a variable
  • True
  • False
Q.15
_____ is an object oriented language
  • c++
  • compiler
  • programming
  • None of these
Q.16
_________ in programming come into use when we need to repeatedly execute a block of statements.
  • nested for loop
  • none
  • for loop
  • loop
Q.17
_________ are fixed values used by a program
  • constant
  • variable
  • boolean
  • float
Q.18
C++ is an _____________ , developed by ______________ , and is an extension of c language
  • object oriented program , Bjarane
  • class and data
  • complier, interpreter
  • functions comments
Q.19
Advantages of OOPs
  • Code Reusability
  • Security
  • Easy Maintenance
  • All of above
Q.20
Combining Data and Functions into a single unit is called
  • Abstraction
  • Inheritance
  • Encapsulation
  • Polymorphism
0 h : 0 m : 1 s