1) What is the other name for Relational Operators in Java?
A) Comparison operators
B) Conditional operators
C) A and B
D) None of the above
2) How many minimum number of operands are required to use Comparison operators
in Java?*
A) 1
B) 2
C) 3
D) 4
3) What are the types of data that can be used along with Relational operators in
Java?*
A) >, >=
B) <, <=
C) ==, !=
D) All the above
4) Which operator group has higher priority between (>, >=, <, <=) and (==, !=)?*
A) (>, >=, <, <=) has lower priority (==, !=)
B) (>, >=, <, <=) has higher priority (==, !=)
C) (>, >=, <, <=) has equal priority with (==, !=)
D) None of the above
5) A SWITCH case statement in Java is a ___ control statement.*
A) Iteration
B) Loop
C) Selection
D) Jump
6) What are the keywords used to implement a SWITCH case in Java language?*
A) switch, case
B) default
C) break
D) All
7) A Java constructor is like a method without ___.*
A) statements
B) return type
C) argument list
D) None
8) What are the two possible Logical Operator types?*
A) Bitwise Logical
B) Boolean Logical
C) Arithmetic Logical
D) A and B
9) An Array in Java is a collection of elements of ___ data type.*
A) Same
B) Different
C) -
D) -
10) In Java language, an array index starts with ___.*
A) -1
B) 0
C) 1
D) Any integer
11) Who invented Java language?*
A) Dennis Ritchie
B) James Gosling
C) Larry Page
D) Serge Page
12) What is the original name of Java Programming language?*
A) J++
B) C++
C) OAK
D) TEAK
13) In Java programming language, the code is placed inside ___.*
A) Classes, Interfaces
B) Methods
C) Blocks
D) All the above
14) Which is the file extension used for a compiled Java class file?*
A) .j
B) .java
C) .class
D) .cls
15) What are the features of an Object Oriented Programming (OOPs)?*
A) Inheritance
B) Encapsulation
C) Polymorphism
D) All the above
16) The class that is being inherited or subclassed is called ___.*
A) Subclass
B) Superclass
C) -
D) -
17) In a Multi Level Inheritance Class-C inherits from Class-B and Class-B inherits from
Class-A. State TRUE or FALSE.*
A) TRUE
B) FALSE
C) -
D) -
18) An abstract class in Java can be created using the keyword ____.*
A) final
B) interface
C) abstract
D) static
19) When does Exceptions in Java arises in code sequence?*
A) Run Time
B) Compilation Time
C) Can Occur Any Time
D) None of the mentioned
20) Which of these methods is used to add elements in vector at specific location?*
A) add()
B) set()
C) AddElement()
D) addElement()
21) An interface in Java is like a 100% ____.*
A) abstract class
B) public class
C) inner class
D) anonymous class
22) Choose a correct statement about Java Interfaces?*
A) Interface contains only abstract methods by default.
B) A Java class can implement multiple interfaces
C) An Interface can extend or inherit another Interface.
D) All the above
23)All Interface methods in Java are ____ by default.*
A) public
B) abstract
C) public and abstract
D) None of the above
24) What will happen if two thread of the same priority are called to be processed
simultaneously?*
a) Anyone will be executed first lexographically
B) Both of them will be executed simultaneously
C) None of them will be executed
D) It is dependent on the operating system
25) In java multi-threading, a thread can be created by*
A)Extending Thread class
B) Implementing Runnable interface
C) Using both
D) None
1) What is the other name for Relational Operators in Java?*
A) Comparison operators
B) Conditional operators
C) A and B
D) None of the above
2) How many minimum number of operands are required to use Comparison operators
in Java?*
A) 1
B) 2
C) 3
D) 4
3) What are the types of data that can be used along with Relational operators in
Java?*
A) >, >=
B) <, <=
C) ==, !=
D) All the above
4) Which operator group has higher priority between (>, >=, <, <=) and (==, !=)?*
A) (>, >=, <, <=) has lower priority (==, !=)
B) (>, >=, <, <=) has higher priority (==, !=)
C) (>, >=, <, <=) has equal priority with (==, !=)
D) None of the above
5) A SWITCH case statement in Java is a ___ control statement.*
A) Iteration
B) Loop
C) Selection
D) Jump
6) What are the keywords used to implement a SWITCH case in Java language?*
A) switch, case
B) default
C) break
D) All
7) A Java constructor is like a method without ___.*
A) statements
B) return type
C) argument list
D) None
8) What are the two possible Logical Operator types?*
A) Bitwise Logical
B) Boolean Logical
C) Arithmetic Logical
D) A and B
9) An Array in Java is a collection of elements of ___ data type.*
A) Same
B) Different
C) -
D) -
10) In Java language, an array index starts with ___.*
A) -1
B) 0
C) 1
D) Any integer
11) Who invented Java language?*
A) Dennis Ritchie
B) James Gosling
C) Larry Page
D) Serge Page
12) What is the original name of Java Programming language?*
A) J++
B) C++
C) OAK
D) TEAK
13) In Java programming language, the code is placed inside ___.*
A) Classes, Interfaces
B) Methods
C) Blocks
D) All the above
14) Which is the file extension used for a compiled Java class file?*
A) .j
B) .java
C) .class
D) .cls
15) What are the features of an Object Oriented Programming (OOPs)?*
A) Inheritance
B) Encapsulation
C) Polymorphism
D) All the above
16) The class that is being inherited or subclassed is called ___.*
A) Subclass
B) Superclass
C) -
D) -
17) In a Multi Level Inheritance Class-C inherits from Class-B and Class-B inherits from
Class-A. State TRUE or FALSE.*
A) TRUE
B) FALSE
C) -
D) -
18) An abstract class in Java can be created using the keyword ____.*
A) final
B) interface
C) abstract
D) static
19) When does Exceptions in Java arises in code sequence?*
A) Run Time
B) Compilation Time
C) Can Occur Any Time
D) None of the mentioned
20) Which of these methods is used to add elements in vector at specific location?*
A) add()
B) set()
C) AddElement()
D) addElement()
21) An interface in Java is like a 100% ____.*
A) abstract class
B) public class
C) inner class
D) anonymous class
22) Choose a correct statement about Java Interfaces?*
A) Interface contains only abstract methods by default.
B) A Java class can implement multiple interfaces
C) An Interface can extend or inherit another Interface.
D) All the above
23)All Interface methods in Java are ____ by default.*
A) public
B) abstract
C) public and abstract
D) None of the above
24) What will happen if two thread of the same priority are called to be processed
simultaneously?*
a) Anyone will be executed first lexographically
B) Both of them will be executed simultaneously
C) None of them will be executed
D) It is dependent on the operating system
25) In java multi-threading, a thread can be created by*
A)Extending Thread class
B) Implementing Runnable interface
C) Using both
D) None