0% found this document useful (0 votes)
3 views5 pages

Programming in Java - Unit 12 - Week 9

The document outlines the details of Week 9 assignments for the Programming in Java course on NPTEL, including submission deadlines and quiz questions. It provides a series of multiple-choice questions related to Java Swing components and their functionalities. The document indicates that the assignment submission has been completed successfully before the deadline.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Programming in Java - Unit 12 - Week 9

The document outlines the details of Week 9 assignments for the Programming in Java course on NPTEL, including submission deadlines and quiz questions. It provides a series of multiple-choice questions related to Java Swing components and their functionalities. The document indicates that the assignment submission has been completed successfully before the deadline.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

10/14/24, 8:18 AM Programming in Java - - Unit 12 - Week 9 :

eswardilleswar8888@[Link] 

([Link]

([Link]

NPTEL ([Link] » Programming in Java (course)

Course outline Week 09: Assignment 09


The due date for submitting this assignment has passed.
About NPTEL () Due on 2024-09-25, 23:59 IST.

How does an NPTEL


online course work?
Assignment submitted on 2024-09-25, 22:15 IST
() 1) Which of the following is a one-line input field that allows the user to choose a number or an object value from an 1 point
ordered sequence?
Week 0 : ()
a. Jtextarea
Week 1 : () b. Jtextfield
c. Jspinner
Week 2 : ()
d. Jslider

[Link] 1/5
10/14/24, 8:18 AM Programming in Java - - Unit 12 - Week 9 :

Yes, the answer is correct.


Week 3 : () Score: 1
Accepted Answers:
Week 4 : () c. Jspinner

2) What is true about the following code. 1 point


Week 5 : ()

Week 6 : ()

Week 7 : ()

Week 8 : ()

Week 9 : ()

Lecture 41 :
Demonstration-XV
(unit?
unit=82&lesson=83)

Lecture 42 : AWT a. Both “OK” and “Cancel” button is added, but only “Cancel” button is visble.
Programming--III (unit? b. Only “OK” button is added and visible, “Cancel” button is not added.
unit=82&lesson=84)
c. Only “Cancel” button will be added and visible, “OK” button is not added.
Lecture 43 : Swing d. Code throws an ERROR.
Programming - I (unit?
unit=82&lesson=85) Yes, the answer is correct.
Score: 1
Lecture 44 : Swing Accepted Answers:
Programming - II (unit? a. Both “OK” and “Cancel” button is added, but only “Cancel” button is visble.
unit=82&lesson=86)

Lecture 45 : 3) Which of the following is a container for other components and is used to build bespoke panels for organizing and 1 point
Demonstration-XVI arranging components?
(unit?
unit=82&lesson=87) a. Jpanel
b. Jframe
Feedback Form (unit?
unit=82&lesson=353) c. Jcombo

[Link] 2/5
10/14/24, 8:18 AM Programming in Java - - Unit 12 - Week 9 :

Week 09 : d. JBox
Programming
Yes, the answer is correct.
Assignment 1
Score: 1
(/noc24_cs105/progassi
Accepted Answers:
gnment?name=402)
a. Jpanel
Week 09 :
4) Which of the following component gives a drop-down list of options from which to choose? 1 point
Programming
Assignment 2
a. Jpanel
(/noc24_cs105/progassi
gnment?name=403) b. Jbutton
c. JComboBox
Week 09 :
Programming d. Jbox
Assignment 3
Yes, the answer is correct.
(/noc24_cs105/progassi Score: 1
gnment?name=404) Accepted Answers:
c. JComboBox
Week 09 :
Programming
Assignment 4 5) Which of the following Swing components inherently support the WindowListener interface? 1 point
(/noc24_cs105/progassi
gnment?name=405) a. Swing frames (JFrame)
b. Swing checkboxes (JCheckBox)
Week 09 :
Programming c. None of these
Assignment 5 d. Swing combo boxes (JComboBox)
(/noc24_cs105/progassi
gnment?name=406) Yes, the answer is correct.
Score: 1
Quiz: Week 09: Accepted Answers:
Assignment 09 a. Swing frames (JFrame)
(assessment?
name=440) 6) Which class in Swing provides a graphical way to display images, icons, or custom graphics? 1 point
Week 09 : Assignment
a. Jimage
Solution (unit?
unit=82&lesson=446) b. Jlabel
c. JImageIcon
Week 10 : ()
d. JDialog

[Link] 3/5
10/14/24, 8:18 AM Programming in Java - - Unit 12 - Week 9 :

Yes, the answer is correct.


Week 11 : () Score: 1
Accepted Answers:
Week 12 : () b. Jlabel

7) What is/are the way(s) to create a Frame in Java Swing? 1 point


Books ()
a. By creating the object of Frame class (association)
Text Transcripts ()
b. None of these
c. By importing a package named Jframe
d. By declaring a class with name JFrame

Yes, the answer is correct.


Score: 1
Accepted Answers:
a. By creating the object of Frame class (association)

8) Which method is used to set the graphics current color to the specified color in the graphics class? 1 point

a. public abstract void setFont(Font font)


b. public abstract void setColor(Color c)
c. public abstract void drawString(String str, int x, int y)
d. None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
b. public abstract void setColor(Color c)

9) When are the keyboard events fired? 1 point

a. When the user manually calls the button


b. When the user right clicks the mouse
c. When the user calls the modifier
d. When the user clicks a key

[Link] 4/5
10/14/24, 8:18 AM Programming in Java - - Unit 12 - Week 9 :

Yes, the answer is correct.


Score: 1
Accepted Answers:
d. When the user clicks a key

10) Which of the following function is used to specify the layout of a container. 1 point

a. UseLayeout()
b. setLayout()
c. layout()
d. DesignLayout()

Yes, the answer is correct.


Score: 1
Accepted Answers:
b. setLayout()

[Link] 5/5

You might also like