Unit Test — Unit test Answers

5 verified answers1 views
2
Free Preview

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
3

Which programming language was released first?

A
FORTRAN
B
BASIC
C
Perl
D
Pascal
4

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.
6

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.
7

Which programming language uses objects?

A
C++
B
ALGOL
C
Pascal
D
BASIC
8

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
9

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.
10

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
11

What happens in the process represented by the pseudocode below?get(answer)if(answer is yes)then(multiply 4 and 9)if(answer is no)then(do nothing)

A
The computer multiplies 4 and 9 if the answer is yes.
B
The computer multiplies 4 and 9 if the answer is no.
C
The computer always multiplies 4 and 9.
D
The computer always does nothing.
12

Which uses flowcharts to communicate?

A
incremental project design
B
solution modeling
C
programming code
D
writing the problem statement
13

Which shape denotes a process to be carried out in a flowchart?

A
an oval
B
a parallelogram
C
a rectangle
D
a diamond
14

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.
15

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.
16

Why is it important to begin development of a software solution with a programming design in place?

A
A programming design summarizes the results of a software development process.
B
A programming design summarizes the marketability of a software solution and the strategy for product placement.
C
A programming design communicates decisions about the programming approach and saves time, money, and effort.
D
A programming design communicates decisions about the approach for hiring contractors and saves time, money, and effort.
17

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.
18

Which statement is true?

A
Bill Gates and Guido van Rossum cofounded Microsoft.
B
Bjarne Stroustrup published the first reference guide for C++.
C
Paul Allen developed object-oriented programming.
D
John McCarthy led a team that developed FORTRAN.
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 task is most suitable for creating an algorithm?

A
saving time writing a report
B
explaining how to set up a mobile phone for use
C
choosing photos to put on a website
D
finding the best of three suggested routes to drive to a concert

Did you find these answers helpful?