Zybooks Chapter 7 & 8 D278 Questions // // // // // //
With Answers
// // //
Programs solve - CORRECT ANSWERS(S)✔✔problems.
// // // //
Before writing a program, a programmer must first create an -
// // // // // // // // // //
CORRECT ANSWERS(S)✔✔algorithm to correctly solve the given
// // // // // // //
problem.
//
An algorithm is a sequence of steps that - CORRECT
// // // // // // // // //
ANSWERS(S)✔✔solves a problem, generating correct output for
// // // // // // //
any valid input values. Ensuring an algorithm's correctness is a
// // // // // // // // // //
key job for a programmer.
// // // // //
algorithm time efficiency: - CORRECT ANSWERS(S)✔✔The
// // // // //
number of calculations required to solve a problem. For the
// // // // // // // // // //
same problem, some algorithms may be much more time
// // // // // // // // //
efficient than others.
// // //
Simple programs are more likely to be - CORRECT
// // // // // // // //
ANSWERS(S)✔✔correct, and correctness is always most
// // // // // //
important.
//
, Efficient algorithms tend to be less - CORRECT
// // // // // // //
ANSWERS(S)✔✔simple, so programmers should consider
// // // // //
efficiency only when needed, like when dealing with very large
// // // // // // // // // //
data sets that result in slow program execution.
// // // // // // // //
An algorithm describes a - CORRECT ANSWERS(S)✔✔sequence of
// // // // // // //
steps to solve a computational problem or perform a calculation.
// // // // // // // // // //
An algorithm can be described in English, pseudocode, a
// // // // // // // // //
programming language, hardware, etc.
// // // //
A computational problem specifies an - CORRECT
// // // // // //
ANSWERS(S)✔✔input, a question about the input that can be
// // // // // // // // //
answered using a computer, and the desired output.
// // // // // // // //
Shortest path/Navigation Algorithm - CORRECT
// // // //
ANSWERS(S)✔✔Given a user's current location and desired
// // // // // // //
location, what is the fastest route to walk to the destination?
// // // // // // // // // // //
Binary Search/Search engine - Algorithm - CORRECT
// // // // // //
ANSWERS(S)✔✔Given a product ID and a sorted array of all in-
// // // // // // // // // // //
stock products, is the product in stock and what is the product's
// // // // // // // // // // //
price?
//
With Answers
// // //
Programs solve - CORRECT ANSWERS(S)✔✔problems.
// // // //
Before writing a program, a programmer must first create an -
// // // // // // // // // //
CORRECT ANSWERS(S)✔✔algorithm to correctly solve the given
// // // // // // //
problem.
//
An algorithm is a sequence of steps that - CORRECT
// // // // // // // // //
ANSWERS(S)✔✔solves a problem, generating correct output for
// // // // // // //
any valid input values. Ensuring an algorithm's correctness is a
// // // // // // // // // //
key job for a programmer.
// // // // //
algorithm time efficiency: - CORRECT ANSWERS(S)✔✔The
// // // // //
number of calculations required to solve a problem. For the
// // // // // // // // // //
same problem, some algorithms may be much more time
// // // // // // // // //
efficient than others.
// // //
Simple programs are more likely to be - CORRECT
// // // // // // // //
ANSWERS(S)✔✔correct, and correctness is always most
// // // // // //
important.
//
, Efficient algorithms tend to be less - CORRECT
// // // // // // //
ANSWERS(S)✔✔simple, so programmers should consider
// // // // //
efficiency only when needed, like when dealing with very large
// // // // // // // // // //
data sets that result in slow program execution.
// // // // // // // //
An algorithm describes a - CORRECT ANSWERS(S)✔✔sequence of
// // // // // // //
steps to solve a computational problem or perform a calculation.
// // // // // // // // // //
An algorithm can be described in English, pseudocode, a
// // // // // // // // //
programming language, hardware, etc.
// // // //
A computational problem specifies an - CORRECT
// // // // // //
ANSWERS(S)✔✔input, a question about the input that can be
// // // // // // // // //
answered using a computer, and the desired output.
// // // // // // // //
Shortest path/Navigation Algorithm - CORRECT
// // // //
ANSWERS(S)✔✔Given a user's current location and desired
// // // // // // //
location, what is the fastest route to walk to the destination?
// // // // // // // // // // //
Binary Search/Search engine - Algorithm - CORRECT
// // // // // //
ANSWERS(S)✔✔Given a product ID and a sorted array of all in-
// // // // // // // // // // //
stock products, is the product in stock and what is the product's
// // // // // // // // // // //
price?
//