1.
The programs that computer executes are called
A. 
B. 
C. 
Integrated development environment
D. 
2.
The ENIAC computer was build from which components:
A. 
B. 
C. 
D. 
3.
The Java code on the Internet and that are run by Web browsers are called:
A. 
B. 
C. 
D. 
4.
The free Java modules that perform various specific tasks and that make Java arich and portable language are called:
A. 
B. 
C. 
D. 
5.
Which one of the following statements is true about a Java compiler?
A. 
It translates the object code into the source code.
B. 
It translates the library code into the virtual machine code.
C. 
It translates the source code into the virtual machine code.
D. 
It translates the virtual machine code into the source code.
6.
Which one of the following programs can execute Java class files?
A. 
B. 
C. 
D. 
7.
Is there anything wrong with this code?System.out.print("3 + 3 =")System.out.println(3 + 3);
A. 
B. 
C. 
D. 
8.
Java can be used to develop rich applications for the Web that are called
A. 
B. 
C. 
D. 
9.
A major difference between C++ and Java is that:
A. 
C++ is a high-level, while Java is a low-level language
B. 
C++ is designed for consumers, while Java is designed for commerce
C. 
C++ is object-oriented, while Java is not
D. 
C++ is not portable, while Java is portable
10.
An example of a Java integrated development environment is:
A. 
B. 
C. 
D. 
11.
A Java class with the name Printer has to be saved using the source file name:
A. 
B. 
C. 
D. 
12.
This statement starts the declaration of a class in Java:
A. 
Public static void main(String[] args)
B. 
C. 
System.out.println("Hello, World!");
D. 
13.
This Java statement prints a blank line:
A. 
Public static void main(String[] args)
B. 
C. 
D. 
14.
Which Java statement does not contain an error?
A. 
B. 
C. 
D. 
15.
In order to run Java programs on a computer, the computer needs to have softwarecalled a(n):
A. 
B. 
C. 
D. 
16.
The Java statement "public static void main(String[] args)" declares a :
A. 
B. 
C. 
D. 
17.
What is the output of the following code snippet?System.out.print("Hello");System.out.println("Good Day!");
A. 
B. 
C. 
D. 
No output due to compilation errors
18.
What is the purpose of the following algorithm?num = 0Repeat the following steps for 100 timesinput var1if var1 > numnum = var1print num
A. 
To find the highest among 100 numbers
B. 
To print out the 100 numbers
C. 
To find the smallest among 100 numbers
D. 
To search for a particular number among 100 numbers
19.
Consider the following pseudocode. What does it produce?Create a list of consecutive integers from two to n: (2, 3, 4, ..., n).Initially, let p equal 2.Repeat following steps until p2 is greater than n.Strike from the list all multiples of p less than or equal to n.Find the first number remaining on the list greater than p; replace p with thisnumber.
A. 
All even numbers from 2 to n
B. 
All Fibonacci numbers from 2 to n
C. 
All prime numbers from 2 to n
D. 
All factorial numbers from 2 to n
20.
What operation is least efficient in an ArrayList?
A. 
Add element to the middle of the list
B. 
C. 
D. 
21.
Which data structure would best be used for keeping track of bank customerswaiting for a teller?
A. 
B. 
C. 
D. 
22.
What must be included in a LinkedList class node?I a reference to the next nodeII a reference to the previous nodeIII a data element
A. 
B. 
C. 
D. 
23.
Assuming that staff is a LinkedList object, what is the content and iteratorposition in the staff object?public static void main(String[] args){LinkedList staff = new LinkedList();staff.addLast("Diana");staff.addLast("Tom");staff.addLast("Harry");staff.addLast("Romeo");// | in the comments indicates the iterator positionListIterator iterator = staff.listIterator(); // |DTHRiterator.next();iterator.next();iterator.add("Juliet");iterator.add("Nina");iterator.previous();iterator.remove();…}
A. 
B. 
C. 
D. 
24.
Which method in the ListIterator class cannot be called twice in a row?
A. 
B. 
C. 
D. 
25.
Why is it important to understand the underlying implementations of data structuretypes?(e.g. HashSet, TreeSet, ArrayList, LinkedList, etc.)
A. 
It helps you choose a better coding implementation
B. 
It helps you choose a data structure with best efficiency in all operations
C. 
It helps you choose a data structure with best efficiency in operations you need
most
D. 
Nothing, because we do not know about implementation details