1. : Which of the following is an object-oriented programming language?
(A) C
(B) C++
(C) ML
(D) ADA
2. : In object-oriented programming, the objects can contain ______?
(A) Data
(B) Code
(C) Variables
(D) All of these
3. : In object-oriented programming, the objects store data in the form of____?
(A) Fields
(B) Methods
(C) Procedures
(D) Both B and C
4. : Which one of the following is a more generalized concept?
(A) Object
(B) Class
(C) Attributes
(D) Functions
5. : Which statement is true about objects in object-oriented programming?
(A) Procedures are attached to objects but can’t access and modify the object’s data fields
(B) Procedures are not attached to objects and so can’t access and modify the object’s data fields
(C) Procedures are attached to objects and can access but can’t modify the object’s data fields
(D) Procedures are attached to objects and can access and modify the object’s data fields
6. : In object-oriented programming, the objects store code in the form of____?
(A) Fields
(B) Methods
(C) Procedures
(D) Both B and C
7. : Which of the following is not an object-oriented programming language?
(A) C
(B) C++
(C) ML
(D) Both A and C
8. : Which of the following statement is correct about classes in object-oriented programming?
(A) Classes can share attribute with each other
(B) Classes can’t share attribute with each other
(C) Classes represent recursion
(D) None of these
9. : Which one of the following statement is correct about objects and classes?
(A) Objects are not instances of classes
(B) Objects are instances of classes
(C) Classes are instances of objects
(D) Objects are instances of classes
