- Type
- Quiz
- Course
- CS506 Web Design and Development
- Size
- PDF 846 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2 of 2. Download the file for all 2 pages.
Q1. In the context of Java Thread, sleep() method throws __________ exception.
Correct answer: Interrupted
Q2. Which of the following method allows any other thread of same priority to execute?
Correct answer: yield()
Q3. Which of the following objects is passed as an argument to paintComponent() method?
Correct answer: Graphics object
Q4. If a JPanel has a triangle drawn on it then which of the following methods will display it?
Correct answer: paintComponet( )
Q5. Which of the following method needs to override while handling threads in java?
Correct answer: run()
Q6. Which of the following statement is correct to assign maximum priority to thread “t2”?
Correct answer: t2.setPriority(Thread.MAX_PRIORITY);
Q7. Which of the following methods is called only once during the life cycle of an Applet?
Correct answer: destroy()
Q8. Which of the following methods of Graphics object is used to draw rectangle?
Correct answer: drawRect(10,10,20,20);
Q9. Choose correct integer value for predefined Thread Priority "Thread.NORM_PRIORITY" in Java.
Correct answer: 5
Q10. In _____________ state, thread is assigned a processor to run.
Correct answer: running
Related CS506 files
All CS506 files →- CS506 Highlighted Handouts Set 2 Highlighted PDF 15.6 MB
- CS506 Midterm Subjective Set 2 by Waqar Siddhu Midterm PDF 805 KB
- CS506 Solved Quiz 1 by VUBuddy Quiz PDF 596 KB
- CS506 Quiz 3 by VU Sparky Quiz PDF 2.4 MB
- CS506 Grand Quiz Combined Quiz PDF 4.1 MB
- CS506 Quiz 2 Lectures 36-41 by Junaid Quiz PDF 1.1 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.