Unit Test — Unit test Answers

1 verified answers
1
Free Preview

Which pseudocode represents the flowchart?

Question illustration
A
Input lengthInput widthCalculate volume =length ´ width ´ heightPrint volume
B
Input lengthInput widthInput heightCalculate volume =length ´ width ´ height
C
Input lengthInput widthInput heightPrint volume
D
Input lengthInput widthInput heightCalculate volume =length ´ width ´ heightPrint volume
2
Free Preview

Which is true regarding pseudocode?

A
It uses simple words and symbols to communicate the design of a program.
B
It compiles and executes code.
C
It expresses only complex processes.
D
It gives a graphical representation of a set of instructions to solve a problem.
3

What are the three types of programming design?

A
top-down, structured, objectified
B
top-down, structured, object-oriented
C
simple, structured, objectified
D
simple, structured, bottom-up
4

A programmer is responsible for solving a problem and making a presentation that includes his solution. He does not have much room to show the steps, so he uses mostly words and a few symbols. For this presentation he decides to use

A
a flowchart because pseudocode is harder to write and understand.
B
pseudocode because it gives a summary of the process with concise words and symbols.
C
a flowchart because it requires special training to understand.
D
pseudocode because it uses pre-defined shapes to show the steps.
5

What is one characteristic of a logic problem?

A
a problem that can have three solutions
B
a problem that can be solved in a methodical manner
C
a problem that can have ill-defined steps
D
a problem that can be solved using a chart
6

What is one purpose of an algorithm?

A
to reduce error
B
to show how to use a computer
C
to eliminate step-by-step instructions
D
to eliminate smaller tasks
7

Which set of steps would help track accounts payable at a business?

A
Calculate payment amounts that are due, determine due dates for payments, identify if there is an early payment discount, and identify vendors to whom payments are due.
B
Calculate payment amounts that are due, extend due dates for payments, determine if there is an early payment discount, and identify invoices that are paid in full.
C
Calculate payment amounts that have been made, determine due dates for payments, identify if there is an early payment discount, and identify customers with payments due.
D
Calculate payment amounts that have been made, extend due dates for payments, identify if there is an early payment discount, and calculate the tax owed by each customer.
8

Which is a characteristic of an effective problem statement?

A
It is based on research.
B
It contains outside information.
C
It contains technical language.
D
It is reviewed by competitors.
9

Which statement is true?

A
A problem statement ensures that the final design benefits the business.
B
A problem statement ensures that the final design will be acceptable to competitors.
C
A problem statement gives a plan that does not directly address the problem.
D
A problem statement offers many ways to solve a given problem.
10

Why does a business need to use effective strategies to find a solution for a problem?

A
to thoroughly understand the problem
B
to find several solutions to a problem
C
to properly diagram the flow of information to solve the problem
D
to find a solution that cannot be replicated
11

Which of the following explains why computers can be used in accounts payable?

A
Computers can use random steps to identify the due dates of payments.
B
Computers can be automated to process invoices without direction.
C
Computers can find the due dates of payments differently each month.
D
Computers can identify criteria related to payments and take specified action.
12

Which of the following gives one reason that explains why computers can solve logic problems?

A
Computers can executes steps repeatedly without error.
B
Computers follow instructions in a random sequence.
C
Computers evaluate criteria without direction.
D
Computers are a good option for solving all problems.
13

Which programming language was released first?

A
FORTRAN
B
BASIC
C
Perl
D
Pascal
14

Which programming language uses objects?

A
C++
B
ALGOL
C
Pascal
D
BASIC
15

Which statement about symbols of a flowchart is true?

A
An oval represents an input or output operation.
B
A diamond represents the start and end of a program.
C
A rectangle represents a process to be carried out.
D
A parallelogram represents a decision or branching point.
16

Which is true regarding a problem statement?

A
It provides a vision of the unsolved problem.
B
It is not usually necessary for a successful software development effort.
C
It describes how to increase profits and decrease expenses.
D
It clearly describes the issues that contribute to a problem.
17

What is one strategy that programmers use to solve logic problems?

A
create a new programming language
B
delete all algorithms from their programs
C
break the problem into steps
D
write a program with random instructions
18

Which statement best describes the problem statement below?Vision: We want to decrease errors in our billings to clients.Issue: Clients complain that they receive multiple bills for the same month. We have one software that keeps track of services made to clients, another software that keeps track of the charges of those services, and another software that bills the clients.Method: Print out services and charges, and enter these values into a billing software.

A
This problem statement is a clear, well-defined problem statement.
B
This problem statement does not clearly define the issues.
C
This problem statement will help stakeholders participate in addressing the problem.
D
This problem statement does not provide a useful statement of method.
19

How does the use of modules provide flexibility in a structured programming design?

A
Modules enable multiple programmers to work on a program at the same time
B
Modules enable a linear approach to software development
C
Modules ensure the reuse of code variables.
D
Modules ensure that a program will be completed on time.
20

Which of the following is a unique feature of Object-oriented programming?

A
They have syntax.
B
They are web-based.
C
They use objects that contain data and functions.
D
They are interpreted by compilers into binary machine language.

Did you find these answers helpful?