Quiz 4
Quiz 4
1. When Eclipse launches, the Welcome page displays. Once this page is closed you cannot return
to the resources available on this page. True or False?
True
False (*)
2. Eclipse provides an edit area to help you navigate a hierarchy of information. True or False?
True
False (*)
3. Eclipse provides views to help you navigate a hierarchy of information. True or False?
True (*)
False
4. Tabs are used when more than one file is open in the edit area. True or False?
True (*)
False
5. A perspective is described as:
Mark for Review
o A combination of views and editors (*)
o A combination of views and windows
o A combination of editor tabs
o None of the above
6. The ______________ is the location onto which you will store and save your files.
o Perspective
o Workspace (*)
o Editor
o None of the above
7. A workspace can have one or more stored projects. True or false?
True (*)
False
9. In Eclipse, when you run a Java Application, the results may be displayed in the Console View.
True or False?
True (*)
False
Quiz 2 Sectiunea 4
Sectiunea 4
2. When importing another package into a class you must import the entire package as well as the
package classes that will be called. True or False?
True
False (*)
4. A counter used in a For loop cannot be initialized within the For loop statement. True or False?
True
False (*)
1.Which of the two diagrams below illustrate the
general form of a Java program?
Example A
Example B (*)
3. Which of the two diagrams below illustrate the correct syntax for variables used in an if-else
statement?
Example A (*)
Example B
5. The syntax below represents a valid initialization of a For loop counter. True or False?
public class ForLoop {
public static void main (String args[])
{
for (int i=10; i <20; i++)<
{System.out.println("i: "+i); }
}
}
True (*)
False
7.In a For loop, the counter is automatically incremented after each loop iteration. True or False?
True
False (*)
8. In an if-else construct, the condition to be evaluated must be contained within parentheses. True
or False?
True (*)
False
Quiz 3 Sectiunea 4
1. The six relational operators in Java are:
>,<,=,!,<=,>=
>,<,=,!=,=<,=>
>,<,=,!=,<=,>=
>,<,==,!=,<=,>= (*)
Sectiunea 4
False (*)
3 (*)
int (*)
Rectangle
Object
18.Which line of Java code properly calculates the volume of a cone using
double V=1/3*3.14*r(2)*h;
Sectiunea 4