0% found this document useful (0 votes)
3 views16 pages

Java Quiz Part1 100

The document contains a Java quiz consisting of 100 questions covering various topics such as JVM, OOP concepts, data types, exception handling, and collections. Each question is multiple-choice with four options provided. An answer key is included at the end of the document.

Uploaded by

Jatin Yadav
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views16 pages

Java Quiz Part1 100

The document contains a Java quiz consisting of 100 questions covering various topics such as JVM, OOP concepts, data types, exception handling, and collections. Each question is multiple-choice with four options provided. An answer key is included at the end of the document.

Uploaded by

Jatin Yadav
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JAVA QUIZ PART 1 (100 QUESTIONS)

1. What is JVM in Java?


A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
2. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
3. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
4. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
5. Which keyword is used to create object?
A. new
B. class
C. this
D. object
6. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
7. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
8. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
9. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
10. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
11. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
12. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
13. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
14. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
15. Which keyword is used to create object?
A. new
B. class
C. this
D. object
16. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
17. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
18. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
19. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
20. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
21. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
22. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
23. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
24. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
25. Which keyword is used to create object?
A. new
B. class
C. this
D. object
26. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
27. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
28. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
29. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
30. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
31. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
32. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
33. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
34. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
35. Which keyword is used to create object?
A. new
B. class
C. this
D. object
36. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
37. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
38. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
39. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
40. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
41. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
42. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
43. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
44. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
45. Which keyword is used to create object?
A. new
B. class
C. this
D. object
46. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
47. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
48. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
49. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
50. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
51. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
52. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
53. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
54. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
55. Which keyword is used to create object?
A. new
B. class
C. this
D. object
56. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
57. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
58. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
59. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
60. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
61. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
62. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
63. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
64. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
65. Which keyword is used to create object?
A. new
B. class
C. this
D. object
66. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
67. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
68. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
69. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
70. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
71. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
72. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
73. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
74. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
75. Which keyword is used to create object?
A. new
B. class
C. this
D. object
76. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
77. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
78. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
79. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
80. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
81. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
82. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
83. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
84. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
85. Which keyword is used to create object?
A. new
B. class
C. this
D. object
86. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
87. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
88. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
89. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
90. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
91. What is JVM in Java?
A. Java Virtual Machine
B. Java Variable Method
C. Just Virtual Memory
D. None
92. Which keyword is used to inherit a class in Java?
A. extends
B. implements
C. inherit
D. super
93. Which data type is 8 bytes in Java?
A. int
B. long
C. float
D. double
94. Which method is the entry point of Java program?
A. start()
B. run()
C. main()
D. execute()
95. Which keyword is used to create object?
A. new
B. class
C. this
D. object
96. Which is not an OOP concept?
A. Encapsulation
B. Inheritance
C. Compilation
D. Polymorphism
97. Which package contains Scanner class?
A. [Link]
B. [Link]
C. [Link]
D. [Link]
98. Which exception occurs when dividing by zero?
A. NullPointerException
B. ArithmeticException
C. IOException
D. ClassNotFoundException
99. Which collection does not allow duplicates?
A. List
B. Set
C. ArrayList
D. Vector
100. Which keyword is used to handle exceptions?
A. catch
B. handle
C. throws
D. error
ANSWER KEY - PART 1
1. A
2. A
3. B
4. C
5. A
6. C
7. B
8. B
9. B
10. A
11. A
12. A
13. B
14. C
15. A
16. C
17. B
18. B
19. B
20. A
21. A
22. A
23. B
24. C
25. A
26. C
27. B
28. B
29. B
30. A
31. A
32. A
33. B
34. C
35. A
36. C
37. B
38. B
39. B
40. A
41. A
42. A
43. B
44. C
45. A
46. C
47. B
48. B
49. B
50. A
51. A
52. A
53. B
54. C
55. A
56. C
57. B
58. B
59. B
60. A
61. A
62. A
63. B
64. C
65. A
66. C
67. B
68. B
69. B
70. A
71. A
72. A
73. B
74. C
75. A
76. C
77. B
78. B
79. B
80. A
81. A
82. A
83. B
84. C
85. A
86. C
87. B
88. B
89. B
90. A
91. A
92. A
93. B
94. C
95. A
96. C
97. B
98. B
99. B
100. A

You might also like