You are on page 1of 1

USN

DAYANANDA SAGAR COLLEGE OF ENGINEERING


(An Autonomous Institute Affiliated to VTU, Belagavi)
Shavige Malleshwara Hills, Kumaraswamy Layout, Bengaluru-560078
Department of Computer Science & Engineering
Continuous Internal Assessment– 1
Course: Advanced Java Course Code: 17CS5DEADJ
Semester & Sec: V Maximum
marks: 50

Q.No Question Marks CO LL


1. 10
a. Advanced Java is focused on _________
1. To build stand-alone applications 2. To learn fundamentals 3. For developing general
application 4. To build web based and enterprise applications
b. The life cycle of an Applet is
1. Init(), Start(), Stop(), Destroy() 2. Stop() and destroy(), init() and stop() 3.none
c. Event is an
1. Change in the state of the source 2.change in program 3.change in components 4.change in
container.
d. Why ShowStaus () method is used?
1. To print output 2.To display the message 3.To give feedback about applet 4.None
e. The method used to receive data from HTML applet tag?
1.getParameter(); 2.getmethod(); 3.getdata();4.gettag();
f. ______object creates an event and _____object receives the event in delegation event model.
1. Data and source 2.Source and listener 3.Events and listener 4.Interface and listener
g. Two key features of swings
1. Lightweight and PLAF 2.To create buttons and frames 3.To display data in components
4.Portable and easy to build.

h. What is the difference between keywords extend and implements?


1. Class extends another class to inherit all its members whereas,
class implements an interface to inherit all it methods and implement them according to its
requirement.
2. Both are same
3. Extend is used when methods need to be override whereas implement is used when
methods need to be inherited
4. None of the above
i. _______method is used to output to the console in an Applet.
1.drawstring(); 2.draw(); 3.output(); 4.showstaus();
j. An applet is an
1. Container 2.Component 3.Event 4.Stand –alone program.
2. Give the syntax of an applet tag in HTML along with how parameters are passed from 10 C01 L2
HTML to an applet?
3. What is Java Swing used for? Develop a simple swing application. 10 CO3 L4
4. Design an applet to demonstrate AppletContext and showDocument( ). Upon execution, it 10 CO2 L3
must obtain the current applet context and uses that context to transfer control to a file called
Test.html.
OR
5. Explain Delegation Event Model with an example program by implementing the 10 CO2 L4
MouseListener and the MouseMotionListener interfaces.

6. Explain the two key items of swing GUI (components and containers). 10 C04 L3
OR
7. Create a swing Applet. 10 CO3 L3

You might also like