QUESTION BANK
CLASS: II CSE/IV SEMESTER
22CS14403 & JAVA PROGRAMMING
UNIT-I
1. is one of the inventors of Java.
a) Dennis Ritchie
b) James Gosling
c) Bjarne Straustrup
d) Balagurusamy
2. is one of the java features that enables java program to run anywhere anytime.
a) Object-Oriented
b) Multithreaded
c) Platform-Independent
d) Dynamic & Extensible
3.Java compiler translates source code into
a) Byte code (Virtual Machine Code)
b) Bit code
c) Machine Code
d) User code
4 .Java interpreter translates into machine code.
a) Bit code
b) Byte code(Virtual Machine Code)
c) Machine Code
d) User code
5.Java does not support .
a) Operator overloading
b) Global variable
c) Multiple inheritance
d) All of above
6.Java _.
a) Only compiles
b) Only interprets
c) Compiles and then interprets
d) Interprets & then compiles
7. If two methods have same name but different parameter list then it is called
a) Method overriding
b) Method overloading
, c) Operator overloading
d) None of these
8. constructor is created when object of particular class is created.
a ) Default
b) Parameterized
c) Copy
d) None of these
9. We cannot create a subclass of class.
a) Abstract
b) public
c) static
d) final
10.Which package is used for creating and implementing applets.
a) java.lang
b) java.util
c) java.applet
d) java.awt
11.JVM stands for
a) Java Virtual Method
b) Java Virtual Machine
c) Java Variable & Methods
d) Java Versatile Machine
12. What does OOP stand for?
a) Operators Oriented Programming
b) Output Operating Programming
c) Object-Oriented Programming
d) Object Operating Programming
13.What is the main advantage of Object-Oriented Programming?
a) Faster execution speed
b) Code reusability and modularity
c) Complexity of code increases
d) Requires more memory
14.Which of the following is not a principle of OOP?
a) Encapsulation
b) Polymorphism
c) Compilation
d) Inheritance
15.Encapsulation in OOP means:
a) Hiding data and providing controlled access
b) Accessing data directly
CLASS: II CSE/IV SEMESTER
22CS14403 & JAVA PROGRAMMING
UNIT-I
1. is one of the inventors of Java.
a) Dennis Ritchie
b) James Gosling
c) Bjarne Straustrup
d) Balagurusamy
2. is one of the java features that enables java program to run anywhere anytime.
a) Object-Oriented
b) Multithreaded
c) Platform-Independent
d) Dynamic & Extensible
3.Java compiler translates source code into
a) Byte code (Virtual Machine Code)
b) Bit code
c) Machine Code
d) User code
4 .Java interpreter translates into machine code.
a) Bit code
b) Byte code(Virtual Machine Code)
c) Machine Code
d) User code
5.Java does not support .
a) Operator overloading
b) Global variable
c) Multiple inheritance
d) All of above
6.Java _.
a) Only compiles
b) Only interprets
c) Compiles and then interprets
d) Interprets & then compiles
7. If two methods have same name but different parameter list then it is called
a) Method overriding
b) Method overloading
, c) Operator overloading
d) None of these
8. constructor is created when object of particular class is created.
a ) Default
b) Parameterized
c) Copy
d) None of these
9. We cannot create a subclass of class.
a) Abstract
b) public
c) static
d) final
10.Which package is used for creating and implementing applets.
a) java.lang
b) java.util
c) java.applet
d) java.awt
11.JVM stands for
a) Java Virtual Method
b) Java Virtual Machine
c) Java Variable & Methods
d) Java Versatile Machine
12. What does OOP stand for?
a) Operators Oriented Programming
b) Output Operating Programming
c) Object-Oriented Programming
d) Object Operating Programming
13.What is the main advantage of Object-Oriented Programming?
a) Faster execution speed
b) Code reusability and modularity
c) Complexity of code increases
d) Requires more memory
14.Which of the following is not a principle of OOP?
a) Encapsulation
b) Polymorphism
c) Compilation
d) Inheritance
15.Encapsulation in OOP means:
a) Hiding data and providing controlled access
b) Accessing data directly