CS506 Midterm Solved Objective Papers Preparation
- Type
- Midterm past paper
- Course
- CS506 Web Design and Development
- Size
- PDF 491 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, 4 of 20. Download the file for all 20 pages.
CS506 Web Design and Development Solved Objective Midterm
Papers For Preparation of Midterm Exam
Q1. ( Marks: 1 ) - Please choose one
If we remove static from main then program _
Q2. ( Marks: 1 ) - Please choose one
If we remove String array from main then program
Q3. ( Marks: 1 )
Please choose one Java developed in
Fall 2008
Q1. Which of the following methods are invoked by the AWT to support paint and repaint operations? (1 marks)
Correct answer: paint( )
Q2. When defining a method you must include a (1 marks)
to declare any exception that might be thrown but is not caught in the method.
Correct answer: throws-clause
Q3. Aside from the Scanner class, which of the following classes can be used for text-file file input? (1 marks)
Q4. Which of the following statements is true regarding Vectors with no specified base type? (1 marks)
Q5. A serializable class must implement the method(s) (1 marks)
Q6. You can ---------to a network using sockets. (1 marks)
Correct answer: Read/Write
(Page 222)
Q7. Socket is a --------------communication channel between hosts. (1 marks)
Correct answer: Bi-directional
(Page 211)
Q8. Which of the following are passed as an argument to the paint ( ) method? (1 marks)
Correct answer: A Graphics object
Q9. The code below draws a line. What color is the line? g.setColor(Color.red.green.yellow.red); (1 marks)
g.drawLine(0, 0, 100,100);
Correct answer: Black
Q10. To create DataBaseMetaData object we write following line of code (1 marks)
(Page 177)
Related CS506 files
All CS506 files →- CS506 Midterm Past Papers Combined with Pics Midterm PDF 541 KB
- CS506 Midterm File 1 Midterm PDF 4 MB
- CS506 Midterm Subjective Set 2 by Waqar Siddhu Midterm PDF 805 KB
- CS506 Midterm File 5 Midterm PDF 1.8 MB
- CS506 Official Handouts Official handout PDF 5.6 MB Free
- CS506 Quiz 1 and 2 MCQs Spring 2023 by Waqas Qureshi MCQs PDF 7.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.