0% found this document useful (0 votes)
37 views2 pages

Department of Computer Science & Engineering Continuous Internal Assessment - 1

This document contains a continuous internal assessment for an Advanced Java course. It includes 10 multiple choice questions testing concepts like applet display methods, event handling, and AWT components. It also includes coding assignments like creating an applet that scrolls a message and a Swing application using JFrame and JLabel. The coding questions assess different core Java concepts.

Uploaded by

SHREYAS L
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Department of Computer Science & Engineering Continuous Internal Assessment - 1

This document contains a continuous internal assessment for an Advanced Java course. It includes 10 multiple choice questions testing concepts like applet display methods, event handling, and AWT components. It also includes coding assignments like creating an applet that scrolls a message and a Swing application using JFrame and JLabel. The coding questions assess different core Java concepts.

Uploaded by

SHREYAS L
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

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: A,B,C & D Maximum
marks: 50

Q.No Question Marks CO LL


a. Which of these functions is called to display the output of an applet?
1. display() 2. paint() 3. displayApplet() 4. PrintApplet()
b. Which of these methods can be used to output a string in an applet?
1. display() 2.print() 3. drawString() 4. transient()
c. Which method is called only once during the run time of your applet? 
1.stop() 2. paint() 3. init() 4. destroy()
d. Which is a special type of program that is embedded in the webpage to generate the dynamic
content?
1.Package 2. Applet 3. Browser 4. None of the above
e. Which method is first Called for any applet when it starts its execution? 
1. void init() 2. void destroy() 3. boolean isActive() 4. None of the above
f. Which of these packages contains all the classes and methods required for even handling in
Java?
1 1.java.applet 2. java.awt 3. java.event 4. java.awt.event
10
g. Which of these methods are used to register a keyboard event listener?
1.KeyListener() 2. addListener() 3. addKeyListener() 4. eventKeyboardListener()

h. Which of these class is super class of all the events?


1. EventObject 2. EventClass 3. ActionEvent 4. ItemEvent
i. Which is a component in AWT that can contain another components like buttons, textfields,
labels etc.?
1. Window 2. Container 3. Panel 4. Frame
j. Give the abbreviation of AWT?
1.Applet Windowing Toolkit 2. Abstract Windowing Toolkit 3. Absolute Windowing
Toolkit 4. None of the above.

2 Create an applet that sets the background color to yellow and foreground color to red and 10 CO1 4
displays a message “Welcome to CSE, DSCE”, that scrolls right to left across applet
window.

3 Create a Swing application using JFrame and JLabel Components to display a message. 10 CO3 4
4 a Explain the Delegation Event Model 5 CO2 3
b Explain the ActionEvent Class in detail 5 CO2 3
OR
5 Describe an applet and applet architecture. Write the code snippet for applet lifecycle. 10 CO1 3

6 Describe the two key features of Swings. CO3 2


Explain Components and Containers in detail. CO3 3
OR
7 Explain briefly JLabel and ImageIcon with various Constructors and methods defined in the 10 CO3 3
JLabel and ImageIcon class. Write a Java Swing Program to demonstrate JLabel and
ImageIcon.

You might also like