Skip to content
VUBuddy

CS506 Midterm Past Papers Combined with Pics

Web Design and Development PDF 541 KBUpdated 23 Oct 2026
Midterm past paper CS506 Midterm Past Papers Combined with Pics PDF 541 KB
vubuddy.com
Type
Midterm past paper
Course
CS506 Web Design and Development
Size
PDF 541 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 541 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 38. Download the file for all 38 pages.

You can ---------to a network using sockets. Read Write

Read/Write

A class that is defined in another class is called ________. Private class Public class

Inner class

Derived class

Which block always execute whether exception occurs or not. Try Block

All of these

2nd phase of java programming Edit Load

Compile

Verify

1st phase of java programming

Edit

Load Compile Verify

3rd phase of java programming Edit

Load

Compile Verify

4th phase of java programming Edit Load Compile

Verify

5th phase of java programming Edit Load

Execute

Verify

Which database allows us to work having closed connection?

Mysql PostgreSQL

SQL

SQLite

Window Adaptor class implements WindowListener interface and provide the definition of all method inside ………………………

WindowListener interface

Inner Class Outer class Window adaptor class

Event handling is _______________ step process

Even handling is _______________ step process

Event handling is _______________ step process One Two

Three

Four

Event handlings steps

Step 1: Create components which can generate events (Event Generators) Step 2: Build component (objects) that can handle events (Event Handlers) Step 3: Register handlers with generators

Which of the following is not the method of ResultSetMetaData class

Previous()

isReadOnly() getColumnDisplay size() getColumnCount()

Java developed in __________ 1990

1995

1997 2000

Which of the following methods are invoked by the AWT to support paint and repaint operations? paint( )

repaint( )

draw() redraw( )

When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method Try Block

Throws Block

You must include a ___________ to declare an exception that might be thrown to another method.

try block

throws-clause

Aside from the Scanner class, which of the following classes can be used for text-file file input?

StringTokenizer

Aside from the Scanner class, which of the following class/es can be used for text file input

StringTokenizer

Which of the following statements is true regarding Vectors with no specified base type? A base type is needed, because Java needs to know how to allocate memory.

No base type is needed, because Java will use the Object class as a base type

If a base type is not specified the code will not compile. No base type is needed because Vectors default to storing String objects.

Which method(s) must a serializable class, implement?

It must always implement both readObject and writeObject

It must implement either readObject or writeObject, or both, depending upon the desired behavior No Need to implement any methods

A serializable class must implement the method(s) ........

readObject and writeObject

Either readObject or writeObject, or both, depending upon the desired behavior No need to implement any method None of the given option

Socket is a --------------communication channel between hosts. Uni-directional

Bi-directional

Multi-directional

Which of the following are passed as an argument to the paint () method? A Canvas object

A Graphics object

An Image object A paint object

The code below draws a line. What color is the line? g.setColor(Color.red.green.yellow.red); g.drawLine(0, 0, 100,100); Red Green Yellow

Black

setColor() is a method of ________ object. JPanel JFrame

Graphics

Image

previous() is a method of __________ object. Statement

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.