CS 506 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

No Comments
CS 506 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Q#1:
Which function invoked Ist?
(1)Paint() (2) paintChildren() (3)paintBorder() (4)paintContent()

Q#2:
Socket is a ……..communication chanel between
(1)uni directional (2)bi directional (3)multidirectional (4)none of above

Q#3:
Which method invoke by AWT repaint?
(1)paint() (2)repaint() (3)draw() (4)redraw

Q#4:
A variable declare static in class is 
(1)instant variable (2)class variable (3)constant variable (4) Globel variable

Q#5:
An exception in java is represented
(1)operation (2)function (3)object (4)primitive data type

Q#6:
Exception handle code is written in
(1)try block (2)catch block (3)finally block

Q#7:
Category of unchecked exception is
(1) IO exception (2)AWT exception (3)classNoFound (4)Null pointer

Q#8:
Window fram dialog use……defult layout.
(1) Flow layout (2)borderlayout (3)gridlayout() (4)gridbridge

Q#9:
This() is used to.
(1) invoked constructor of another class
(2) invoked constructor of same class
(3) invoked constructor of super class from subclass.
(4) invoked constructor of sub class from superclass.

Q#10:
Which pakeg used by database?
(1) Java.IO (2)java.sql (3)java.AWT (4)java.swing

Bus yahi MCQ note kiya…..:(

QUTION#1 (2)

Concider code
Arraylist al=new ArrayList();
Person p= new Person();
Al add(p);
What will be the ayntax to get an object from the first index of arrayList?(2)

QUESTION#2 (2):
Write four types of JDBC driver? (2)

QUESTION#3:
Write dow the gnarl syntax for the registryevent handler genratorwhen u are working in GUI? (2)

QUESTION#3:
How can GUI component handle its own event (3)

QUESTION#4:
What is the difference between paint() and repaint()? (3)

QUESTION#5:
What are steps to write an applets in java? (5)

QUESTION#6:
You are require to write code for a GUI hasd program which will display a button and two labels.first label would contain text"here I am" and second lable would be empty .By cliking the 1ST lable will be shift to the second lable first lable would became empty.by clicking the second button the text for will shift on the first and so on.(5)
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment