Aslam o alikum
Cs506 today is mine paper
Ye past sy mcq thy
Question No: 8 ( Marks: 1 ) -
Please choose one 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
Question No: 10 ( Marks: 1 ) -
Please choose one To create DataBaseMetaData object we write following line of code
► DataBaseMetaData db = con.getMeataData(); (Page 177)
► ResultSetMetaData rsmd = rs.getMetaData();
► ResultSetMetaData rsmd = rs.setMetaData();
► DataBaseMetaData db = con.setMeataData();
6 - Which of the following is modifier is provided by default if no access is written explicitly?
► public
► Private
► Protected
► Default
11 - Window frame and dialog use ______as their default layout.
► Border layout
► Flow layout
► GridBag layout
► Grid layout
29 - Which of the following is true about AWT and SWING components?
► AWT components create a process whereas SWING component creates a thread.
► AWT components create a thread whereas SWING component creates a process.
► Both AWT and SWING component creates a process.
► Both AWT and SWING component creates a thread.
31 - Which of the following is a general purpose container?
► JFrame
► Dialog
► JPanel
► JApplet
33 - Which of the following function will be used to register event handler with events generator (button)?
► addAction()
► addActionListener() (Page 123)
► addListener()
► registerListener()
39 - Adapter classes have been defined for listener interfaces except ______interface.
► MouseListener
► KeyListener
► WindowListener
► ActionListener
Question # 4 of 10
The collections API are defined in ______package?
► Java.io
► Java.util
► Java.sql (Page 180)
► Java.awt
Subjective
subjective mujy tu mushkil hi lag rha tha
ku k teayri koi ni thi
or wesy code sy related zeyda tha i think
or sachi mei hi mushkil tha paper :P
aik 2 nmber ka swal tha button bnaey howy thy 7 us ka pta ni kia krna tha .... mery khyal sy tu code btana tha us ka
aik 3 nmber ka swal tha agr window listener sary na likhny hou srf jo define krna wohi likhna ho tu error sy bachny k leay kia krna chaihy
aik code tha koi chota sa ..... class bnai howi thi 2 or btana tha B class cncrete ni agr tu phr kia implement ho ga is trha ka hi kuch tha ...... ye 5 nmber ka swal tha
or aik 5 nmber ka swal tah GUI sy related ...... picture di howi thi ...... or btana tha kon kon sy method use ho gy un mei
jesy
background is k leay kon sa method use ho ga
button k leay kon sa method use ho ga
2 or b thy un k leay b kon sa method use ho ga
wo yaad ni
or swal hi bht leghty thy ....
yaad rakhna mushkil tha
aik 2 nmber ka swal tha
paintChildren() is ka complete syntax btana tha
sql sy related b sawl thy
baki ab yaad ni thk sy
good luck
Regards: