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

Java Quiz Part3 100

The document contains a Java quiz consisting of 100 multiple-choice questions covering various Java concepts such as marker interfaces, keywords for implementing interfaces, loop control, exception handling, access modifiers, collections, and string comparison methods. Each question is followed by four answer options, with the correct answers provided in a key at the end. The quiz is designed to test knowledge of fundamental Java programming principles.

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)
19 views16 pages

Java Quiz Part3 100

The document contains a Java quiz consisting of 100 multiple-choice questions covering various Java concepts such as marker interfaces, keywords for implementing interfaces, loop control, exception handling, access modifiers, collections, and string comparison methods. Each question is followed by four answer options, with the correct answers provided in a key at the end. The quiz is designed to test knowledge of fundamental Java programming principles.

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 3 (100 QUESTIONS)

201. Which of the following is a marker interface?


A. Runnable
B. Serializable
C. Comparable
D. Callable
202. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
203. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
204. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
205. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
206. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
207. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
208. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
209. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
210. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
211. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
212. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
213. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
214. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
215. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
216. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
217. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
218. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
219. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
220. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
221. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
222. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
223. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
224. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
225. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
226. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
227. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
228. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
229. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
230. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
231. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
232. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
233. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
234. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
235. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
236. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
237. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
238. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
239. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
240. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
241. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
242. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
243. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
244. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
245. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
246. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
247. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
248. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
249. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
250. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
251. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
252. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
253. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
254. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
255. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
256. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
257. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
258. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
259. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
260. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
261. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
262. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
263. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
264. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
265. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
266. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
267. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
268. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
269. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
270. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
271. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
272. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
273. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
274. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
275. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
276. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
277. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
278. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
279. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
280. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
281. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
282. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
283. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
284. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
285. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
286. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
287. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
288. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
289. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
290. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
291. Which of the following is a marker interface?
A. Runnable
B. Serializable
C. Comparable
D. Callable
292. Which Java keyword is used to implement an interface?
A. extends
B. implements
C. interface
D. inherit
293. Which class is the superclass of all classes in Java?
A. System
B. Object
C. Class
D. Runtime
294. Which is used to stop a loop in Java?
A. break
B. continue
C. exit
D. stop
295. Which loop executes at least once?
A. for
B. while
C. do-while
D. foreach
296. Which keyword is used to throw an exception explicitly?
A. throws
B. throw
C. catch
D. try
297. Which keyword declares an exception?
A. throw
B. throws
C. catch
D. exception
298. Which is not a Java access modifier?
A. public
B. private
C. protected
D. friendly
299. Which collection stores key-value pairs?
A. List
B. Set
C. Map
D. Queue
300. Which method is used to compare strings in Java?
A. ==
B. compare()
C. equals()
D. match()
ANSWER KEY - PART 3
201. B
202. B
203. B
204. A
205. C
206. B
207. B
208. D
209. C
210. C
211. B
212. B
213. B
214. A
215. C
216. B
217. B
218. D
219. C
220. C
221. B
222. B
223. B
224. A
225. C
226. B
227. B
228. D
229. C
230. C
231. B
232. B
233. B
234. A
235. C
236. B
237. B
238. D
239. C
240. C
241. B
242. B
243. B
244. A
245. C
246. B
247. B
248. D
249. C
250. C
251. B
252. B
253. B
254. A
255. C
256. B
257. B
258. D
259. C
260. C
261. B
262. B
263. B
264. A
265. C
266. B
267. B
268. D
269. C
270. C
271. B
272. B
273. B
274. A
275. C
276. B
277. B
278. D
279. C
280. C
281. B
282. B
283. B
284. A
285. C
286. B
287. B
288. D
289. C
290. C
291. B
292. B
293. B
294. A
295. C
296. B
297. B
298. D
299. C
300. C

You might also like