6
Post-Lecture Questionnaire
Today’s date:
Your name:
Your unix username:
In the questions below, please write a number between 1 and 10 that best reflects your confidence in being able to use the symbol to write a Java program that displays a text string in a browser window. The number 1 means that you have no confidence, and the number 10 means that you have total confidence. You may enter any number between 1 and 10 that gives your estimate of your confidence at this moment. For the hard copy version, you may simply circle a number.
Question 1
How confident are you that you understand and can use the following symbol (period) now to write a Java program?
.
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 2
How confident are you that you understand and can use the following symbol (semi-colon) now to write a Java program?
;
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 3
How confident are you that you understand and can use the following symbol (opening brace) now to write a Java program?
{
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 4
How confident are you that you understand and can use the following symbol (closing brace) now to write a Java program?
}
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 5
How confident are you that you understand and can use the following symbol (equal sign) now to write a Java program?
=
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 6
How confident are you that you understand and can use the following symbol now to write a Java program?
add(myLabel)
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 7
How confident are you that you understand and can use the following symbol now to write a Java program?
class
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 8
How confident are you that you understand and can use the following symbol now to write a Java program?
extends
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 9
How confident are you that you understand and can use the following symbol now to write a Java program?
getContentPane()
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 10
How confident are you that you understand and can use the following symbol now to write a Java program?
import
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 11
How confident are you that you understand and can use the following symbol now to write a Java program?
init()
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 12
How confident are you that you understand and can use the following symbol now to write a Java program?
JApplet
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 13
How confident are you that you understand and can use the following symbol now to write a Java program?
java.awt.Color
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 14
How confident are you that you understand and can use the following symbol now to write a Java program?
javax.swing.JApplet
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 15
How confident are you that you understand and can use the following symbol now to write a Java program?
javax.swing.JLabel
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 16
How confident are you that you understand and can use the following symbol now to write a Java program?
JLabel
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 17
How confident are you that you understand and can use the following symbol now to write a Java program?
JLabel(“This is my first program.”)
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 18
How confident are you that you understand and can use the following symbol now to write a Java program?
myLabel
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 19
How confident are you that you understand and can use the following symbol now to write a Java program?
MyProgram
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 20
How confident are you that you understand and can use the following symbol now to write a Java program?
new
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 21
How confident are you that you understand and can use the following symbol now to write a Java program?
public
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 22
How confident are you that you understand and can use the following symbol now to write a Java program?
setBackground(Color.YELLOW)
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Question 23
How confident are you that you understand and can use the following symbol now to write a Java program?
void
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
Please enter the correct answer for the below multiple-choice questions. Make the best choice that you can at this point in your learning. For the hard copy version, you may simply circle the best choice that you can make.
1. Which of the following lines most likely would be used to create a shorthand notation for the compiler to locate the JFrame class, which is built-in to Java?
a. import ../class/JFrame;
b. access JFrame.class;
c. import javax.swing.JFrame;
d. import java.awt.JFrame.class;
e. append javax.swing.JFrame;
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
2. Which of the following lines most likely would be used to construct an instance of the JButton class?
a. JButton = new JButton(“Hello”);
b. myButton = new JButton(“Click Me”);
c. Button = new JButton(“Hello”);
d. myButton = JButton.class(“Hello”);
e. myButton = new JButton(“Click Me”).
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
3. Which of the following lines most likely would be used to add a JCheckBox object to a content pane?
a. getContentPane.Add(myJCheckBox);
b. container.Add(JCheckBox.Object);
c. add(container.JCheckBox);
d. getContentPane().add(myBox);
e. Add(myJCheckBox);
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
4. Which of the following lines most likely overrides a method that is contained in the Applet class?
a. public Void stop{} { lines of Java code here }
b. public void Stop(){ lines of Java code here }
c. public void stop() {lines of Java code here }
d. Public Void Stop() ( lines of Java code here )
e. Public void stop() { lines of Java code here }
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
5. Which of the following sequences is correct?
a. declare a JTextField object, construct a JTextField object, add a JTextField object to a container.
b. construct a JTextField object, declare a JTextField object, add a JTextField object to a container.
c. declare a JTextField object, add a JTextField object to a container, construct a JTextField object.
d. add a JTextField object to a container, declare a JTextField object, construct a JTextField object.
e. add a JTextField object to a container, construct a JTextField object, declare a JTextField object.
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
6. Given the line, public class MyTextArea extends JTextArea {, which of the
following statements is correct?
a. JTextArea is a subclass of MyTextArea.
b. MyTextArea is a superclass of the extends class.
c. JTextArea is a superclass of MyTextArea.
d. MyTextArea is a subclass of the JText class.
e. JTextArea is a class of MyTextArea.
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
7. Which one of the below lines declares myList as a potential instance of the JList class?
a. myList JList;
b. JList myJList;
c. JList myList;
d. myJList JList;
e. JList myList.
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
8. Given the following line in a program: public class MyJSlider extends JSlider { …
which one of the below would be the name of the file that contains this program for compilation?
a. MyJslider.java
b. JSlider.java
c. MyJSlider.javax
d. myJSlider.java
e. MyJSlider.java
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
9. Which of the following lines would most likely add a JScrollPane object to a JPanel object?
a. JPanel.add(JScrollPane);
b. JPanel.add(myJScrollPane);
c. myJPanel.add(JScrollPane);
d. JScrollPane.add(JPanelObject);
e. myJPanel2.add(myJScrollPane1);
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident.
Enter a number here:
10. A Java JApplet program has two methods written in the class. The methods are not nested. What is the total number of braces, { and } added together, that are needed for this program.
a. 9
b. 6
c. 3
d. 4
e. 2
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident
Enter a number here:
11. A programmer intends to use the TableColumn class, which is located in the table package. Which statement below is correct to use in the program?
a. import javax.swing.table.TableColumn
b. javax.swing.table.TableColumn;
c. import javax.swing.TableColumn;
d. import javax.swing.table.TableColumn;
e. import TableColumn;
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident
Enter a number here:
12. Which of the following most likely would be used to make a JButton object red?
a. JButton.setIt(RED);
b. myJButton.setBackground(RED.Color);
c. myJButton.setBackground(RED);
d. myJButton.setBackground(Color.RED);
e. MyJButton.setBackground(Color.RED);
Enter a letter here:
How confident are you that you selected the correct answer?
Not at all confident. 1 2 3 4 5 6 7 8 9 10 Totally confident
Enter a number here:
The below questions are based on the design of the Java programming language and associated conventions of the language. Classification refers to keyword, class, object, method, separator, and operator. Give the most informed rating that you can at this point in your understanding of Java.
1. How similar to each other are the following two items in terms of classification?
(1) import (2) new
Classification: Not Similar 1 2 3 4 5 6 7 8 9 10 Highly Similar
Enter a number here:
2. How similar to each other are the following two items in terms of classification?
(1) myLabel (2) JLabel
Classification: Not Similar 1 2 3 4 5 6 7 8 9 10 Highly Similar
Enter a number here:
3. How similar to each other are the following two items in terms of classification?