Object Oriented Programming - I (3140705) MCQs

MCQs of Introduction to java and elementary programming

Showing 41 to 50 out of 95 Questions
41.
Which of the following is a type of polymorphism in Java?
(a) Compile time polymorphism
(b) Execution time polymorphism
(c) Multiple polymorphism
(d) Multilevel polymorphism
Answer:

Option (a)

42.
Which concept of Java is a way of converting real world objects in terms of class?
(a) Polymorphism
(b) Encapsulation
(c) Abstraction
(d) Inheritance
Answer:

Option (c)

43.
Which concept of Java is achieved by combining methods and attribute into a class?
(a) Encapsulation
(b) Inheritance
(c) Polymorphism
(d) Abstraction
Answer:

Option (a)

44.
Which component is used to compile, debug and execute java program?
(a) JVM
(b) JDK
(c) JIT
(d) JRE
Answer:

Option (b)

45.
Which component is responsible for converting bytecode into machine specific code?
(a) JVM
(b) JDK
(c) JIT
(d) JRE
Answer:

Option (a)

46.
Which component is responsible to run java program?
(a) JVM
(b) JDK
(c) JIT
(d) JRE
Answer:

Option (d)

47.
Which component is responsible to optimize bytecode to machine code?
(a) JVM
(b) JDK
(c) JIT
(d) JRE
Answer:

Option (c)

48.
Which statement is true about java?
(a) Platform independent programming language
(b) Platform dependent programming language
(c) Code dependent programming language
(d) Sequence dependent programming language
Answer:

Option (a)

49.
Which of the below is invalid identifier with the main method?
(a) public
(b) static
(c) private
(d) final
Answer:

Option (c)

50.
What is the extension of java code files?
(a) .class
(b) .java
(c) .txt
(d) .js
Answer:

Option (b)

Showing 41 to 50 out of 95 Questions