Skip to content
VUBuddy

CS506 Quiz 1 by VU Topper RM

Web Design and Development PDF 1.4 MBUpdated 23 Oct 2026
Quiz CS506 Quiz 1 by VU Topper RM PDF 1.4 MB
vubuddy.com
Type
Quiz
Course
CS506 Web Design and Development
Size
PDF 1.4 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.4 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 57. Download the file for all 57 pages.

To ensure that array accesses only with the allocated memory, the JVM performs _______________ verification during runtime. A. consistent B. static C. fixed.

D. dynamic ok

Java program is compiled into ___________________. A. Machine code B. Source code C. Native code

D. Byte code ok

Java programs are crafted in the Editor, whereas they are saved in

A. usb B. disk C. primary memory

D. external file

The output of given someTest function is ____________ . public void someTest( ) { int x; System.out.println(x); } A. x B. syntax error

C. compile time error

D. run time error

In Java, static methods have direct access to _______. A. Both static and instance members B. Instance variables C. Instance methods

D. Static variables and methods ok

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 ok

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 ok

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 ok

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

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.