Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 17 pages
Exam (elaborations)

CPS 150 Final Exam Review Study Guide Questions and Answers.

Document preview thumbnail
Preview 3 out of 17 pages

CPS 150 Final Exam Review Study Guide Questions and Answers. The if/then/else operation allows you to select exactly one of three alternatives to execute, based on the value of a condition... A.True B.False - Correct answer False Big-Oh (or "order of magnitude") notation is used to indicate exactly how long in seconds it will take an algorithm to run on any computer. A.True B.False - Correct answer False Two's complement representation is a signed integer representation that does not suffer from the problem of having two different representations for zero. A.True B.False - Correct answer True Once an algorithm

Content preview

CPS 150 Final Exam Review Study Guide Questions and Answers.
The if/then/else operation allows you to select exactly one of three alternatives to
execute, based on the value of a condition...
A.True
B.False - Correct answer False

Big-Oh (or "order of magnitude") notation is used to indicate exactly how long in
seconds it will take an algorithm to run on any computer.
A.True
B.False - Correct answer False

Two's complement representation is a signed integer representation that does not
suffer from the problem of having two different representations for zero.
A.True
B.False - Correct answer True

Once an algorithm has been developed, it may itself be used in the construction of
other algorithms.
A.True
B.False - Correct answer True

If an O(n^2) algorithm and an O(n) algorithm exist for the same task, then for large
enough n, the O(n) algorithm does more work and takes longer to execute,
regardless of any constant factors for peripheral work.
A.True
B. False - Correct answer False

Given a sorted list, the sequential search algorithm is more efficient than the binary
search.
A. True
B. False - Correct answer False

The sequential search and selection sort algorithms are different methods for
accomplishing the same task.
A.True
B.False - Correct answer False

Information is stored in the memory of a computer using the decimal numbering
system.
A.True
B.False - Correct answer False

If we were to run the sequential search algorithm many times, with random input
values occurring at various places in the list, and when looking for an item that is in

,the list, we would find the average number of comparisons done to be approximately
n/2.
A. True
B.False - Correct answer True

There can sometimes be more than one algorithm that correctly solves a given
problem.
A. True
B.False - Correct answer True

Algorithms usually contain a set of instructions to be executed in random order.
A. True
B. False - Correct answer False

The term "bit" is short for "binary digit"
A. True
B.False - Correct answer True

Sequential Search requires that the data be initially presented in sorted order.
A. True
B.False - Correct answer False

By following an algorithm, the value 555(3) can be converted to a decimal (base-10)
value.
A. True
B.False - Correct answer False

The discipline called computer science is concerned solely with the design and
manufacture of computational machines.
A. True
B.False - Correct answer False

The base of the hexadecimal number system is 16.
A.True
B.False - Correct answer True

Using a 4-bit wide representation and sign/magnitude notation, the largest possible
value we could store would correspond to +15 in base-10.
A.True
B.False - Correct answer False

All algorithms are already known; computer scientists simply select the correct
algorithm for each new problem.
A.True
B.False - Correct answer False

, A strictly black/white image has greater storage requirements than an image
represented using a gray scale.
A.True
B.False - Correct answer False

Sound is analog, not digital , in nature.
A.True
B.False - Correct answer True

The time in seconds an algorithm takes on a particular machine is the best way for
comparing two algorithms that do the same task.
A.True
B.False - Correct answer False

A(n)___ instruction carries out a single well-defined task.
a. hierarchal
b.sequential
c. conditional
d. iterative - Correct answer sequential

In computer science terminology, the machine, robot, person, or thing carrying out
the steps of the algorithm is called a(n)__
a. algorithmic agent
b.computing agent
c. computing representative
d. algorithmic representative - Correct answer computing agent

In the sequential search algorithm, the worst case occurs when the value being
searched for is the __ value in the list.
a. first
b.second
c.middle
d.last - Correct answer last

Which kind of operation is "Add water until the tip is full."?
a. recursive
b. conditional
c. sequential
d. iterative - Correct answer iterative

__schemes compress data in a way that does not guarantee that all of the
information in the original data can be fully and completely recreated.
a. randomized compression
b. repeat sampling
c. decompression
d. lossy compression - Correct answer losy compression

Document information

Uploaded on
February 8, 2025
Number of pages
17
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$18.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Excellentgrader
4.0
(23)
Sold
116
Followers
92
Items
6637
Last sold
2 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions