Skip to content
VUBuddy

CS506 Quiz 2 Set 2 by VU Topper RM

Web Design and Development PDF 1.3 MBUpdated 23 Oct 2026
Quiz CS506 Quiz 2 Set 2 by VU Topper RM PDF 1.3 MB
vubuddy.com
Type
Quiz
Course
CS506 Web Design and Development
Size
PDF 1.3 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.3 MB

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 56. Download the file for all 56 pages.

Which of the following syntaxe is used to get ResultSetMetaData object?

  1. ResultSet md = rs.getMetaData();// where rs is ResultSetMetaDta object
  2. ResultSetMetaData md = st.getMetaData();// where st is Statement object
  3. ResultSetMetaData md = rs.getMetaData();// where rs is ResultSet object
  4. ResultSetMetaData md = con.getMetaData();// where con is Connection object

Correct answer: ResultSetMetaData md = rs.getMetaData();// where rs is ResultSet object

AWT is a GUI package used in java, AWT stands for_____. A. Apache Windows Toolkit

B. Abstract Windowing Toolkit Page 99

C. Application Windowing Tools D. Application Windows Template

_________ is required in order to get an object from collection. A. Up-casting

B. Down casting Page 61

C. Implicit casting D. None of the given options

The following is an example of ___________.BufferedReader br = new BufferedReader(fr); A. File stream B. Node stream

C. Filter stream Google

D. Byte oriented stream

Which of the following functions will be used to register an event handler with an events generator, where the event generator is a button?

  1. addAction()
  2. addListener()
  3. registerListener()
  4. addActionListener() Google

Correct answer: addActionListener() Google

Array List can store objects of________.

A. Same types only Google

B. Different types only C. Can’t store objects D. Both same and different types

It is verified by ______ that not all bytecodes violate java security restrictions. A. Editor B. Compiler C. Class loader

D. Bytecode verifier Page 12

Which of the following stream rea/write data in the form of bytes?

  1. FileReader
  2. FileWriter
  3. PrintWriter
  4. FileInputStream Page 71

Correct answer: FileInputStream Page 71

An applet can be defined as:

A. Small program written in Java and included in HTML page

B. A small program written in JSP and included in HTML page C. A small program written in Serverlet and included in HTML page D. A small program written in JSF and included in HTML page

Q1. Vu-Topper RM (1 marks)

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 ok

Correct answer: Generally used as public utility classes Page 121 ok

Q2. Vu-Topper RM (1 marks)

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

Q3. Vu-Topper RM (1 marks)

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

C. Class loader Page 11

D. Bytecode verifier

Q4. Vu-Topper RM (1 marks)

_________ 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();

Q5. Vu-Topper RM (1 marks)

____________ in a collection class creates a collection with no elements. A. Class

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.