Skip to content
VUBuddy

CS506 Quiz 2 by VU Topper RM

Web Design and Development PDF 913 KBUpdated 23 Oct 2026
Quiz CS506 Quiz 2 by VU Topper RM PDF 913 KB
vubuddy.com
Type
Quiz
Course
CS506 Web Design and Development
Size
PDF 913 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 913 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 2, 3, 4 of 27. Download the file for all 27 pages.

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

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

Correct answer: Generally used as public utility classes Page 121

Which of the following statement regarding Java is false?

  1. Java uses an interpreter
  2. Java is case sensitive language
  3. Java is a programming language
  4. A Java program compiles into machine language Page 8

Correct answer: A Java program compiles into machine language Page 8

Bytecodes are put in memory by ________________ . A. Editor B. Compiler

C. Class loader Page 11

D. Bytecode verifier

_________ is correct syntax to get component area of “myFrame” top level container. A. Container c = myFrame.getContentArea();

B. Container c = myFrame.getContentPane(); Page 92

C. Container c = myFrame.getComponentPane(); D. Container c = myFrame->getComponentArea();

____________ in a collection class creates a collection with no elements. A. Class B. Array C. Function

D. Constructor Page 45

Which of the following is a valid variable name in Java?

  1. 1xu
  2. Long
  3. vu.506
  4. Number Of Student Google

Correct answer: Number Of Student Google

Which one of the following blocks always executes irrespective of exception occurrence?

  1. Try block
  2. Catch block
  3. Switch block
  4. Finally block Page 72

Correct answer: Finally block Page 72

CmdArgs java class is compiled. If the command “java CmdArgs CS506” run in cmd, then what will be output of given code. Public class CmdArgs{ public static void main(String[] args)

System.out.println(" First argument " + args[0]);

A. CS506 B. args[0]

C. Syntax error Google

D. do not show any output

Window, frame and dialog use ________ as their default layout. A. Flow layout B. Grid layout

C. Border layout Google

D. GridBag layout

The classes which contain the word _____ in their names are byte oriented streams. A. Byte B. Writer

C. Stream Page 71

D. Reader

Which one of the following methods is not a method of MouseListener interface?

  1. Moved Page 113
  2. Clicked
  3. Pressed
  4. Released

Correct answer: Moved Page 113

Interface imposes _______________ structure on any class that uses interface. A. Code

B. Design Page 85

C. Inheritance D. Implementation

Java core language is _______ than C++.

A. Simpler Page 5

B. Difficult C. Complex D. Less secure

Which of the following is the correct java code statement that is used to establish the connection?

  1. Connection con = driverManager.getConnection(conURL)
  2. connection Con = driverManager.getConnection(conURL)
  3. connection Con = driverManager.getConnection(conURL)
  4. Connection con = DriverManager.getConnection(conURL) Google

Correct answer: Connection con = DriverManager.getConnection(conURL) Google

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.