1. An entity representing some characteristics and behavior is-
a) object
b) class
c) struct
d) none of the above

2. Which of the following is not the feature of OOPs?
a) Data Encapsulation
b) Inheritance
c) Polymorphism
d) None of the above

3. The wrapping up of data and functions into a single unit is
a) Data Abstraction
b) Data Encapsulation
c) Both (a) & (b)
d) None of the above

4. Which of the following feature supports reusability and extensibility of classes?
a) Inheritance
b) Overloading
c) Polymorphism
d) None of the above

5. Inheritance is ………..in nature.
a) Intransitive
b) Transitive
c) Both (a) & (b)
d) None of the above

6. ………… is the ability for a message or data to be processed in more than one form
a) Class
b) Abstraction
c) Polymorphism
d) None of the above

7. The smallest individual unit in a program is ………
a) Keyword
b) Identifier
c) Token
d) None of the above

8. Which of the following features of procedure-oriented programming is false
a) Large programs are divided into small or units called functions.
b) Employs bottom-up approach in program design.
c) Most of the functions share global data.
d) None of the above.

9. Which of the following features of object-oriented programming is false?
a) Data is hidden and is not available to external functions.
b) New data & functions can be added easily.
c) Objects may communicate with each other through functions.
d) Emphasis is on the procedure rather than data.

10. The following is the C++ style comment
a) //
b) /*..*/
c) —
d) None of the above

11. Which of the following statements is false?
a) Every C++ program must have a main().
b) In C++, white spaces and carriage returns are ignored by the compiler.
c) C++ statements terminate with the semicolon.
d) Main() terminates with the semicolon.

12. An identifier in C++
a) Must begin with a letter only
b) Is not differentiated by cases
c) Contains all characters as significant
d) None of the above

13. 010 is an example of
a) decimal constant
b) octal constant
c) hexadecimal constant
d) None of the above

14. A sequence of characters surrounded by double quotes is
a) Character literals
b) String literal
c) Both (a) & (b)
d) None of the above

15. The following data type specifies an empty set of values
a) Void
b) Int
c) Char
d) None of the above

16. ………. Provides a value for a variable
a) declaration statement
b) assignment statement
c) definition statement
d) None of the above

17. A collection of variables referred to one name
a) Structure
b) Class
c) Union
d) None of the above

18. A memory location shared by two or more different variables
a) Structure
b) Class
c) Union
d) None of the above

19. The constants defined using enum keyword are
a) Symbols
b) Enumerators
c) Keywords
d) None of the above

20. The operator ?: is
a) Logical operator
b) Relational operator
c) Conditional operator
d) Arithmetic operator

21. A loop containing other loop is
a) Nested
b) Inner
c) Outer
d) None of the above

22. The following statement forces the next iteration of the loop to take place
a) break
b) continue
c) goto
d) None of the above

23. gets() function is available in
a) stdio.h
b) string.h
c) ctype.h
d) stdlib.h

24. In C++, the statements are enclosed within
a) parenthesis
b) square brackets
c) curly brackets
d) None of the above

25. The following tells the compiler where the program begins
a) Function prototype
b) Forward declaration of class
c) main()
d) None of the above
Mukesh Rajput

Mukesh Rajput

I am a Computer Engineer, a small amount of the programming tips as it’s my hobby, I love to travel and meet people so little about travel, a fashion lover and love to eat food, I am investing a good time to keep the body fit so little about fitness also..

Post A Comment:

0 comments: