Which component of a computer is used to hold a running program and its data?
The Main memory.
How many bits make up a byte?
8
Which of the following is a program is a program that translates high-level language to a low-level language?
A Complier.
Which of the following statements reads a number from the keyword?
1 number = keyboard.nextInt();
What is displayed to the screen when the following statement is executed?
1
System.out.println("Hello World!");
Hello World!
If you compile a Java source file containing a definition of class called MyApp, what is the name of the file that contains the results?
MyApp.class
What is the relationship between a class and an object?
A class is a blueprint for creating objects.
What is inheritance?
A way of organizing classes by identifying common attributes.
What is an algorithm?
A set of directions for solving a problem.
Which of the following kinds of errors is a grammatical mistake in a program?
A syntax error.