Skip to content
VUBuddy

CS506 Quiz May 2026

Web Design and Development PDF 15 KBUpdated 23 Oct 2026
Quiz CS506 Quiz May 2026 PDF 15 KB
vubuddy.com
Type
Quiz
Course
CS506 Web Design and Development
Size
PDF 15 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 15 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 3. Download the file for all 3 pages.

VU QUIZ REPORT

Subject: CS506

Quiz Completed: 18/05/2026, 21:19:58 Total Questions: 10

Which of the following classes provide definitions for all the methods (empty bodies) of their corresponding Listener interface?

  1. public classes
  2. inner classes
  3. adapter classes
  4. private classes

Correct answer: adapter classes

_________ is correct syntax to create a general purpose container “myPanel” having flow layout. A. JPanel myPanel = new JPanel (new FlowLayout);

B. JPanel myPanel = new JPanel (new FlowLayout());

C. JPanel myPanel = JPanel (FlowLayout()); D. JPanel myPanel = new JPanel (FlowLayout());

Which of the following classes is capable to instantiate?

  1. Interface class
  2. Concrete class
  3. None of the given
  4. Abstract class

Correct answer: Concrete class

Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?

  1. ExecuteUpdate(sql);
  2. executeQuery(sql);
  3. executeUpdate(sql);
  4. ExecuteQuery(sql);

Correct answer: executeUpdate(sql);

Which of the following is NOT true for java inner classes?

  1. Generally used as public utility classes
  2. Can have constructors
  3. Can have Methods
  4. Can have instance variables

Correct answer: Generally used as public utility classes

If the subclass overrides all the abstract methods of super class, then subclass is called ______. A. Base class B. Parent class

C. Concrete class

D. Abstract class

Which of the following methods is a correct registration method for Focus Listener interface?

  1. addFocusListener
  2. regFocusedListener
  3. addFocusedListener
  4. regFocusListener

Correct answer: addFocusListener

Which of the following statement is true about abstract class?

  1. A class without any abstract method can be declared as abstract class.
  2. A class must have at least one abstract method to be an abstract class.
  3. An instance of abstract class can be created.
  4. An abstract class must have all methods declared as abstract methods.

Correct answer: A class without any abstract method can be declared as abstract class.

AWT is also called ______.

A. Heavy weight components

B. Both Light weight and heavy weight components C. Neither Light weight nor heavy weight D. Light weight components

Which of the given methods is/are declared for “MouseListener” interface?

  1. MouseMoved
  2. MousePressed
  3. MouseDragged
  4. MouseKeyPressed

Correct answer: MousePressed

All CS506 files →
CS506 Web Design and Development All CS506 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.