Chapter 1 Introduction To Object Oriented Programming Concepts

Chapter 1 

Introduction To Object Oriented Programming Concepts

Question 1 ) Choose the correct option from the following. 

1) Which of the following language was developed as the first object-oriented language

 (a) C ++ 

(b) SIMULA

(c) Kotlin

(d) Java

2) Which of the following language was developed. as the first object-oriented programming language

 (a) C ++ 

(b) SIMULA

(c) Small talk

(d) Java

3) Which of the following language was widely used commercially

(a) C ++ 

(b) SIMULA

(c) Small talk

(d) Java

4) Where the Java language was developed.

(a) Sun Microsystem 

(b) Microsoft

(c) Google

(d) Adobe Corporation

5) A Software objects state is stored as

(a) Fields

(b) Methods

(c) Class

         (d) All of the above

6) A Software objects behavior is shown via

(a) Fields

(b) Methods

(c) Class

         (d) All of the above

7) Object-to-object communication is done via

(a) Fields

(b) Class

(c) Method

         (d) All of the above

8) ___________ is a process of binding data members and member functions into a single unit

(a) Abstraction

(b) Inheritance

(c) Polymorphism

(d) Encapsulation

9) ___________ is a process of hiding the implementarion details and showing only functionality.

(a) Abstraction

(b) Inheritance

(c) Polymorphism

(d) Encapsulation

10) Wrapping up of data and functions into a single unit is known as.

(a) Abstraction

(b) Inheritance

(c) Polymorphism

(d) Encapsulation

11) Object Oriented Programming is based on _________principles

(a) 4

(b) 5

(c) 6

(d) 8

12) __________makes the class independent and these can be resued reused without modification in the other program.

(a) Abstraction

(b) Inheritance

(c) Polymorphism

(d) Encapsulation

13) Which of the following keyword is used to create an object

(a) create

(b) new

(c) this

(d) None of the above 

14) Java Standard Library (JSL) is also known as ________

(a) API - Application Program Interface

(b) APL - Application Program Library

(c) APC - Application Program Code

(d) None of the above 

 15) ________ is produced when an interpreter translates source code into machine code.

(a) compiler code

(b) byte code

(c) object code

(d) None of the above 

Question 2) State True Or False.

1) In encapsulation only the inner layout is used in terms implementation.

(a) True

(b) False

2) Java is platform-independent programming language

(a) True

(b) False

3) An applet is a small Internet-based program written in Java

(a) True

(b) False 

4) BlueJ is a programming language.

(a) True

(b) False

5) Java source code file has .text extension.

(a) True

(b) False  

Question 3) Find odd one out.

1)

(a) secured

(b) robust

(c) distributed

(d) inheritance 

2) 

(a) Data abstraction

(b) Polymorphism

(c) Platform - Independent

(d) Encapsulation