Programming Logic and Design Unit 1
Test Verified Answers
Which of the following pairs of steps in the programming process is in the correct
order?
a. code the program, translate it into machine language
b. test the program, translate it into machine language
c. put the program into production, understand the problem
d. code the program, plan the logic - ANSWER-a. code the program, translate it into
machine language
When you write a program that will run in a GUI environment as opposed to a
command-line environment, ____________.
a. you do not need to plan the logic
b. the logic is very different
c. users are more confused
d. some syntax is different - ANSWER-d. some syntax is different
The term eof represents ____________.
a. the logical flow in a program
b. a standard input device
c. a generic sentinel value
d. a condition in which no more memory is available for storage - ANSWER-c. a
generic sentinel value
A programmer's most important task before planning the logic of a program is to
____________.
a. code the problem
b. understand the problem
c. train the users of the program
d. decide which programming language to use - ANSWER-b. understand the
problem
The most important task of a compiler or interpreter is to ____________.
a. execute machine language programs to perform useful tasks
b. translate English statements into a language such as Java
c. translate programming language statements into machine language
d. create the rules for a programming language - ANSWER-c. translate programming
language statements into machine language
Computer programs also are known as ____________.
a. data
b. hardware
c. information
d. software - ANSWER-d. software
Test Verified Answers
Which of the following pairs of steps in the programming process is in the correct
order?
a. code the program, translate it into machine language
b. test the program, translate it into machine language
c. put the program into production, understand the problem
d. code the program, plan the logic - ANSWER-a. code the program, translate it into
machine language
When you write a program that will run in a GUI environment as opposed to a
command-line environment, ____________.
a. you do not need to plan the logic
b. the logic is very different
c. users are more confused
d. some syntax is different - ANSWER-d. some syntax is different
The term eof represents ____________.
a. the logical flow in a program
b. a standard input device
c. a generic sentinel value
d. a condition in which no more memory is available for storage - ANSWER-c. a
generic sentinel value
A programmer's most important task before planning the logic of a program is to
____________.
a. code the problem
b. understand the problem
c. train the users of the program
d. decide which programming language to use - ANSWER-b. understand the
problem
The most important task of a compiler or interpreter is to ____________.
a. execute machine language programs to perform useful tasks
b. translate English statements into a language such as Java
c. translate programming language statements into machine language
d. create the rules for a programming language - ANSWER-c. translate programming
language statements into machine language
Computer programs also are known as ____________.
a. data
b. hardware
c. information
d. software - ANSWER-d. software