
Midterm Exam - Visual Programming
Authored by Naif atafi
Instructional Technology
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
OPEN ENDED QUESTION
10 sec • 1 pt
The BorderLayout manager decomposes the frame into five regions. Give the names of these regions: North, West, Center, East, South.
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In FlowLayout manager, components are placed: a) From top-to-bottom, left-to-right order. b) From bottom-to-top, right-to-left order. c) Random order. d) None of the above.
From top-to-bottom, left-to-right order.
From bottom-to-top, right-to-left order.
Random order.
None of the above.
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
We can access the content pane by calling the frame’s ____________method.
getPane( )
getAccessPane( )
accessPane( )
getContentPane( )
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
A ____________object allows the user to enter multiple lines of text.
JLabel
JTextArea
JTextField
JScrollPane
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which method can change the text in a Label called L1?
L1.changeText( )
L1.putText( )
L1.setText( )
L1.writeText( )
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which is the container that doesn't contain title bar and MenuBars but it can have other components like buttons, textfields etc?
Panel
Frame
Menu
Window
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The ____ method is used to specify the layout of a container.
useLayout
putLayout
drawLayout
setLayout
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?