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