Name:
Class:
Date:
Page 1
Indicate whether the statement is true or false.
1. The main reason why high-level langauges were a vast improvement over machine and assembly langagues is because
they allow the programmer to use instructions that more closely resemble the English language.
a.
True
b.
False
2. The selection structure is also referred to as an iteration.
a.
True
b.
False
3. A compiler translates instructions line by line as the program is running.
a.
True
b.
False
4. The repetition structure has a true path and a false path.
a.
True
b.
False
5. There is one universal machine language used by computers.
a.
True
b.
False
6. Assembly language requires a programmer to enter the program using 1s and 0s.
a.
True
b.
False
7. An interpreter translates all of a program’s high-level instructions into machine language before executing the program.
a.
True
b.
False
8. Mnemonics are a special number system used by assembly languages.
a.
True
b.
False
9. There are two digits in the machine language system.
a.
True
b.
False
10. In object-oriented programming, an object can be used in more than one program; often with little to no modification.
a.
True
b.
False
Indicate the answer choice that best completes the statement or answers the question.
11. What are program instructions written in 1s and 0s called?
Name:
Class:
Date:
Page 2
a.
assembly language
b.
machine code
c.
procedure-oriented code
d.
object-oriented language
12. The choice of whether to turn left or right at a fork in the road is an example of which type of structure?
a.
mnemonic
b.
sequence
c.
decision
d.
iteration
13. With whom should a programmer have extensive interaction before converting a solution to a problem into a computer
program?
a.
user
b.
language developer
c.
compiler vendor
d.
system engineer
14. What type of structure is the following set of statements an example of?
if timeofday is greater than noon
set afternoon access permissions
else
set regular access permissions
end if
a.
iteration
b.
sequence
c.
repetition
d.
selection
15. What type of structure is the following set of statements an example of?
while not end of file
read a line
end while
a.
selection
b.
repetition
c.
decision
d.
sequence
16. Which of the following translates program instructions line by line as the program is running?
a.
assembler
b.
algorithm
c.
interpreter
d.
compiler
17. C++, Visual Basic, C#, Python, and Java are all examples of what kind of language?
a.
assembly
b.
machine
c.
programming
d.
mnemonic
18. C++, Visual Basic, Java, and C# are examples of what type of language that can be used to create both procedure-
oriented and object-oriented programs?
a.
assembly
b.
machine
c.
compiler
d.
high-level
19. What do programs written in assembly language require to convert the assembly language instructions into machine
language?
a.
interpreter
b.
compiler
c.
assembler
d.
converter
20. An example of an instruction written in machine language would be ____.
Name:
Class:
Date:
Page 3
a.
sum = num1 + num2
b.
0000 0101 1100 0000
c.
ADD bx, ax
d.
repeat 5 times
21. What is the name for the basic structure that controls the overall flow of a program’s logic?
a.
procedure
b.
control
c.
directional
d.
algorithmic
22. Which statement is an example of a repetition structure?
a.
if (Ginger is on the bench)
b.
repeat (2 times)
c.
sit down
d.
walk forward
23. Which of the following translates all of a program’s high-level instructions before running the program?
a.
heuristic
b.
GUI
c.
interpreter
d.
compiler
24. What is the output of the following algorithm if AMOUNT is equal to $200?
If AMOUNT is greater than $500
print “That’s too much.”
Else if AMOUNT is greater than $200
print “Still too much”
Else if AMOUNT is greater than $100
print “That’s about right”
Else
print “Amount is too low.”
End if
a.
That’s too much
b.
That’s about right
c.
Still too much
d.
Amount is too low
25. After coding a program, the programmer should perform which task before releasing it to the user?
a.
ask the user to approve the machine code
b.
write a user manual
c.
assemble the program with an interpreter
d.
test the program with sample data
26. Which type of structure do all programs use?
a.
sequence
b.
selection
c.
repetition
d.
variable
27. Which of the following is an example of an instruction written in assembly language?
a.
sum = num1 + num2
b.
0000 0101 1100 0000
c.
MUL bx, ax
d.
repeat 5 times
28. Which of the following is a language typically used to create procedure-oriented programs?
a.
C#
b.
Python
c.
COBOL
d.
Java
29. Which structure do you use every time you drive your car and approach an intersection?
a.
iteration
b.
sequence
c.
repetition
d.
selection
Name:
Class:
Date:
Page 4
30. With what type of program does the programmer focus on structures that represent screen elements such as check
boxes and buttons or structures that represent real world items such as an employee or time card?
a.
assembly language
b.
machine language
c.
procedure-oriented
d.
object-oriented
31. Which type of structure makes a decision based on one or more conditions?
a.
looping
b.
selection
c.
iteration
d.
question
32. In a computer program, which type of logic structure directs the computer to process the program instructions one
after another, in the order listed in the program?
a.
sequence
b.
selection
c.
repetition
d.
variable
33. An accountant that is part of a programming team working on a program that requires accounting experience is an
example of which of the following?
a.
drag
b.
subject matter expert
c.
top-level coordinator
d.
engineer
34. What are program instructions that utilize mnemonics called?
a.
assembly code
b.
machine language
c.
procedure-oriented language
d.
object-oriented code
35. What is another name for a repetition structure?
a.
loop structure
b.
sequence structure
c.
decision structure
d.
algorithmic structure
36. How many different states do the switches in machine language have?
a.
1
b.
2
c.
8
d.
16
37. Which of the following is a set of step-by-step instructions that accomplish a task?
a.
algorithm
b.
mnemonic
c.
heuristic
d.
loop
38. Give at least three examples of a procedure-oriented language, and at least three examples of an object-oriented
language.
39. Is it necessary for the programmer to meet with the user? Why or why not? Explain your answer.
40. In your own words, describe the terms programs, programmers, and programming languages. What are the key
differences?
41. What are the primary differences between procedure-orinted programs and object-oriented programs?
Name:
Class:
Date:
Page 5
42. What is the role of a subject matter expert on a programming team?
43. What is the primary difference between a compiler and an interpreter?
44. What characterisitics do both computer programmers and software engineers share?
45. What are the three basic logic structures used by computer programs? Describe each.
Name:
Class:
Date:
Page 6
Name:
Class:
Date:
Page 7
Name:
Class:
Date:
Page 8