logo

APSU Notes


Quiz 1

Question 1

Which component of a computer is used to hold a running program and its data?

The Main memory.

Question 2

How many bits make up a byte?

8

Question 3

Which of the following is a program is a program that translates high-level language to a low-level language?

A Complier.

Question 4

Which of the following statements reads a number from the keyword?

1
number = keyboard.nextInt();

Question 5

What is displayed to the screen when the following statement is executed?

1
System.out.println("Hello World!");

Hello World!

Question 6

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

Question 7

What is the relationship between a class and an object?

A class is a blueprint for creating objects.

Question 8

What is inheritance?

A way of organizing classes by identifying common attributes.

Question 9

What is an algorithm?

A set of directions for solving a problem.

Question 10

Which of the following kinds of errors is a grammatical mistake in a program?

A syntax error.