Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
12 views

Advanced Java Programming

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Advanced Java Programming

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

HAINDAVI DEGREE & PG COLLEGE

INTERNAL ASSESSMENT-Ⅰ

SEMESTER-Ⅰ

Paper-Ⅰ

Group: M.Sc. (computer science)-Ⅰ year Max.Marks:10

Sub: Advanced Java Programming Hall Ticket No:

Name:

SECTION-A

1
Ⅰ choose the correct answer 10 × =5M
2

1. Which of the following is NOT a part of the AWT class hierarchy? [ ]

a) Panel b) Checkbox c) JButton d) ScrollBar

2. In AWT, a container is used to: [ ]

a) Store images b) Handle events c) Hold and arrange components d) Draw shapes

3. Which AWT component allows a user to select only one option from a group? [ ]

a) Checkbox b) CheckBoxGroup c) TextField d) List

4. In Swing, which component is used to display hierarchical data? [ ]

a) JTable b) JTree c) JList d) JComboBox

5. What is the purpose of JColorChooser in Swing? [ ]

a) To select a font b) To pick a color c) To choose a layout d) To display progress

6. Which layout manager arranges components in a row or column? [ ]

a) BorderLayout b) GridLayout c) FlowLayout d) CardLayout

7. In AWT, which component is used to enter multi-line text? [ ]

a) TextField b) TextArea c) TextBox d) Panel

8. Which of these is a key difference between AWT and Swing? [ ]

a) AWT is platform-independent, Swing is not

b) Swing provides lightweight components, AWT does not


c) AWT uses MVC architecture, Swing does not

d) Swing components cannot be customize

9. In networking, the class used to create a server is: [ ]

a) Socket b) Server Socket c) URL Connection d) InetAddress

10. Which method is used to send data to a server in socket programming? [ ]

a) writeBytes() b) readLine() c) connect() d) getInputStream()

SECTION-B

1
Ⅱ Fill in the blanks 10 × =5M
2

1. AWT stands for __________.


2. The __________ class in AWT is used to create a multi-line text area.
3. Swing is part of the __________ package in Java.
4. The __________ component in Swing is used to display a table of data.
5. In networking, the __________ class is used to represent IP addresses.
6. A __________ in AWT allows the user to select only one option from a list.
7. __________ is a layout manager that places components in the five regions: North, South, East, West, and
Center.
8. In Swing, the __________ component is used for password input.
9. To open a connection to a URL, the __________ class is used.

10. The __________ method is used to start a server in socket programming.

You might also like