C How to Program, 9/e Multiple Choice Test Bank
Error! Reference source not found.
1.1 Q1: Which of the following statements is true? ALL CHAPTERS
R
a. Hardware controls software.
b. Software controls hardware. PDF DOWNLOAD
c. C is an object-oriented programming language.
U
d. Both (b) and (c) are true.
ANS: b.
E
1.1 Q2: Which of the following statements a), b) or c) is false?
a. Decades ago, most computer applications ran on networked computers.
S
b. Today's applications can be written with the aim of communicating among the
world's computers via the Internet.
IS
c. A key intersection between computer science and data science is artificial
intelligence.
d. All of the above statements are true.
O
ANS: a. Decades ago, most computer applications ran on networked computers.
Actually, decades ago, most computer applications ran on "standalone" computers
(that is, not networked together).
N
Error! Reference source not found.
N
1.2 Q1: Which of the following statements is false?
a. Computers can perform calculations and make logical decisions phenomenally
faster than human beings can.
O
b. Computers process data under the control of sequences of instructions called
computer programs (or simply programs).
c. A computer consists of various physical devices referred to as hardware (such as
C
the keyboard, screen, mouse, solid-state disks, hard disks, memory,
d. Computing costs are rising dramatically, due to the increasing complexity of
D
hardware and software technologies.
ANS: d. Actually, computing costs are dropping dramatically, due to rapid
developments in hardware and software technologies.
E
Error! Reference source not found.
1.2 Q2: Every year or two, the capacities of computers have approximately
M
doubled inexpensively. This remarkable trend often is called .
a. the law of large numbers
b. the principal of least privilege
c. Moore's law
d. Wirth's law
ANS: c.
Error! Reference source not found.
1
,1.2 Q3: Which logical unit of the computer is the receiving section?
a. input unit
b. output unit
c. memory unit
R
d. central processing unit.
ANS: a.
U
1.2 Q4: Information in the memory unit is . It's typically lost when the
computer's power is turned off.
E
a. persistent
b. constant
S
c. sticky
d. volatile
IS
ANS: d.
1.2 Q5: A gigabyte is approximately one bytes.
a. thousand
b. million
O
c. billion
d. trillion.
N
ANS: c. N
1.2 Q6: The arithmetic and logic unit contains the mechanisms that allow
the computer, for example, to compare two items from the memory unit to determine
whether they're equal.
O
a. decision
b. calculation
c. addition
C
d. None of the above.
ANS: a.
D
1.2 Q7: Information on secondary storage devices is — it's preserved
even when the computer's power is turned off.
E
a. volatile
b. unstable
c. transient
M
d. persistent
ANS: d.
1.2 Q8: Secondary storage information takes much to access than
information in primary memory, but its cost per unit is much .
a. less time, less
b. longer, less
2
,c. less time, more
d. longer, more
ANS: b.
R
Error! Reference source not found.
1.3 Q1: A(n) is the smallest data item in a computer. It can have the value
0or 1.
U
a. bit
b. byte
E
c. field
d. record
S
ANS: a.
IS
1.3 Q2: Which of the following statements a), b) or c) is false?
a. A computer's character set represents every character as a pattern of 1s and
0s.
b. All Unicode® characters are composed of four bytes (32 bits).
O
c. Unicode contains characters for many of the world's languages.
d. All of the above statements are true.
N
ANS: b. Actually, Unicode® characters are composed of one, two, three or
four bytes (8, 16, 24 or 32 bits, respectively).
N
1.3 Q3: The most popular database model is the database, in which data
is stored in simple tables.
a. network
O
b. graph
c. relational
d. hierarchical
C
ANS: c.
D
1.3 Q4: Which one of the following statements is true?
a. a terabyte is larger than a petabyte.
b. a kilobyte is exactly 1000 bytes.
E
c. a gigabyte is 1024 megabytes.
d. an exabyte is 1024 zettabytes.
M
ANS: c.
Error! Reference source not found.
1.4 Q1: Which of the following statements a), b) or c) is false?
a. Any computer can directly understand only its own machine language,
defined by its hardware design.
b. Translator programs called assemblers convert assembly-language programs
3
, to machine language at computer speeds.
c. Interpreter programs, developed to execute high-level language programs directly,
avoid the delay of compilation, and run faster than compiled programs.
d) All of the above statements are true.
R
ANS: c. Actually, interpreter programs run slower than compiled
programs.
U
1.4 Q2: Which of the following statements is false?
a. With the advent of assembly languages, computer usage increased rapidly, but
E
programmers still had to use numerous instructions to accomplish even the simplest
tasks.
S
b. To speed the programming process, high-level languages were developed in
which single statements could be written to accomplish substantial tasks.
c. Translator programs called assemblers convert high-level-language source code
IS
into machine language.
d. High-level languages instructions look almost like every-day English and
contain commonly used mathematical notations.
O
ANS: c. Actually, those translator programs are compilers. Assemblers
convert assembly language programs into machine language.
N
Error! Reference source not found.
1.5 Q1: Windows is a(n) operating system—it's controlled by Microsoft
N
exclusively.
a. proprietary
b. private
O
c. open source
d. None of the above.
ANS: a.
C
1.5 Q2:
D
is by far the world's most widely used desktop operating system.
a. Linux
b. MacOS
E
c. Windows
d. none of the above
ANS: c.
M
1.5 Q3: With software development, individuals and companies contribute
their efforts in developing, maintaining and evolving software in exchange for the
right to use that software for their own purposes, typically at no charge.
a. object-oriented
b. high-level
4