Subject Code: BC0037
Subject Name: Object Oriented Programming Using C++
Credits: 4
Marks: 140
Part A (One mark questions)
1. High level languages like C, Fortran are also known as --------------- .
a. procedural languages
b. Object oriented language
c. form based language
d.both a and b
2. one of the basic concept in Object Oriented Programming approach is bundling both data and functions into one unit known as ------------.
a. Simple varriable
b. object
c. bundle
d.both a and b
3. which of the following shows the Operator overloading feature in C++
a. Polymorphism
b. inheritance
c. message passing
d. both a and b
4. One of the alternative to nested if is the ------------a. break statement
b. Jump statement
c. switch statement
d. both a and b
5. In switch case statement , every case should have a ------------ statement as the last statement a. Jump
b. break
c. exit
d. both a and b
6. Conditional operator (?:) is a handy operator which acts like a shortcut for ---------a. if else statement
b. switch statement
c. break statement
d. goto statement
7. Arrays are----------- data types .
a. Premitive
b. Non-primitive
c. user defined
d. both b and c
8. In two dimentional arrays, elements can be accessed by ----------- indexes.
a. One
b. four
c. three
d. two
9. Strings are nothing but ----------- arrays
a. character
b. integer
c. floating point
d. both c and b
10. If there is no value returned by the function, then function return type should be specified as----------a. void
b. Function name only
c. int
d. float
11. Every user-defined function should be declared in the program -------------.
a. after it is used
b. before it is used
c. at the time of its invocation
d. both a and b
12. More than one user defined functions can have same name and perform different operations. This is a powerful feature of C++ and is known as -------------a. inheritance
b.operator