wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java Coffee

Total questions: 17

Worksheet time: 15mins

Name
Class
Date
1.

What is a Compiler?

a)

Rules of the language, for example, print or write is used to produce

and output.

b)

these are program statements that carry out tasks that the

program has to perform, for example, print this word or add these two

numbers.

c)

this acts a compiler, but it translates one (1) program statement at

a time, this executes the statement as soon as it is translated.

d)

it is a program that translates a program written in a high-level

language into a low-level language before executing the program statements.

2.

What is Algorithm?

a)

It is a problem-solving technique used in solving programming problems. It is a

step-by-step problem-solving process in which a solution is arrived at in a finite amount of time.

b)

It is a sequence of statements intended to accomplish a task. It is a set

of instructions for a computer to follow.

c)

It is a process of planning and creating a program.

3.

These are two common low-level language that deal with a computer's hardware components.

a)

Machine Language

b)

Java Language

c)

C Language

d)

Assembly Language

4.

What is Syntax?

a)

it is a program that translates a program written in a high-level

language into a low-level language before executing the program statements.

b)

errors that occur when the syntax of the program is correct but

the expected output is not.

c)

rules of the language, for example, print or write is used to produce

and output.

d)

the process of locating and correcting the errors of a program.

5.

Which is not part of the problem-solving process in the programming environment?

a)

Problem Analysis

b)

Algorithm Design

c)

Coding

d)

Execution

e)

All of the above

6.

What is debugging?

a)

these are program statements that carry out tasks that the

program has to perform, for example, print this word or add these two (2)

numbers.

b)

errors that occur when the syntax of the program is correct but

the expected output is not.

c)

the process of locating and correcting the errors of a program.

d)

rules of the language, for example, print or write is used to produce

and output.

7.

The difference between Algorithm and Program.

4 lines
8.

What is programming?

a)

the process of locating and correcting the errors of a program.

b)

It is a process of planning and creating a program.

c)

it is a program that translates a program written in a high-level

language into a low-level language before executing the program statements.

d)

these are program statements that carry out tasks that the

program has to perform, for example, print this word or add these two (2)

numbers.

9.
Imagine a car as a computer, and its engine as a program. Which of the following is an input for the engine program?
a)
gas pedal
b)
driver's seat
c)
steering wheel
d)
windshield wipers
10.
A good algorithm must be: 
a)
replacable
b)
simple 
c)
open-ended
d)
detailed
11.
What is wrong with the following "code" for opening a bottle?
1. Grip cap with index finger and thumb
2. Remove cap
3. Twist counter-clock-wise until seal is broken
a)
to many steps
b)
not specific 
c)
function doesn't apply to every bottle 
d)
instructions are out of sequence
12.
How can the following instruction be made more specific? "Meet Joe at the corner of Main Street and First Avenue."
a)
describe how you first met Joe
b)
list all the streets that intersect with First Avenue
c)
describe current weather conditions 
d)
set an exact time for the meeting
13.
A computer program is best described as a series of ___________.
a)
Instructions
b)
Questions
c)
Answers
d)
Numbers
14.
Which terms best describes each step in a computer program?
a)
Vague
b)
Confusing
c)
Random
d)
Specfic
15.
A person who writes code and communicates instructions to a computer.
a)
Code
b)
Programmer
c)
Command
d)
Program
16.
A sequence of logical instructions or steps needed to finish a task.
a)
Bugs
b)
Loops
c)
Algorithm
17.
A sequence of instructions written in a code that a computer can interpret and execute.
a)
Program
b)
Syntax
c)
Programmer