C How to Program With Case Studies Introducing Applications and Systems Programming, 9th Edition By Paul Deitel
Email: richard@qwconsultancy.com
C How to Program, 9/e Multiple Choice Test Bank
1 of 11
Error! Reference source not found. 1.1 Q1: Which of the following statements is true? a. Hardware controls software. b. Software controls hardware. c. C is an object-oriented programming language. d. Both (b) and (c) are true. ANS: b.
1.1 Q2: Which of the following statements a), b) or c) is false? a. Decades ago, most computer applications ran on networked computers. b. Today's applications can be written with the aim of communicating among the world's computers via the Internet. c. A key intersection between computer science and data science is artificial intelligence. d. All of the above statements are true. 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).
Error! Reference source not found. 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. 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 the keyboard, screen, mouse, solid-state disks, hard disks, memory, d. Computing costs are rising dramatically, due to the increasing complexity of 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 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. .
C How to Program, 9/e Multiple Choice Test Bank
2 of 11
1.2 Q3: Which logical unit of the computer is the receiving section? a. input unit b. output unit c. memory unit d. 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. a. persistent b. constant c. sticky d. volatile ANS: d. 1.2 Q5: A gigabyte is approximately one ________ bytes. a. thousand b. million c. billion d. 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 determine whether they're equal. a. decision b. calculation c. addition d. 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. a. volatile b. unstable c. transient 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 .
C How to Program, 9/e Multiple Choice Test Bank
3 of 11
c. less time, more d. 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 0 or 1. a. bit b. byte c. field d. record ANS: a. 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). c. Unicode contains characters for many of the world's languages. d. All of the above statements are true. 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. a. network b. graph c. relational d. hierarchical ANS: c. 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. c. a gigabyte is 1024 megabytes. d. 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? 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 .
C How to Program, 9/e Multiple Choice Test Bank
4 of 11
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. ANS: c. Actually, interpreter programs run slower than compiled programs. 1.4 Q2: Which of the following statements is false? a. With the advent of assembly languages, computer usage increased rapidly, but programmers still had to use numerous instructions to accomplish even the simplest tasks. 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 into machine language. d. High-level languages instructions look almost like every-day English and contain commonly used mathematical notations. ANS: c. Actually, those translator programs are compilers. Assemblers convert 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. a. proprietary b. private c. open source d. None of the above. ANS: a. 1.5 Q2: ________ is by far the world's most widely used desktop operating system. a. Linux b. MacOS c. Windows d. none of the above ANS: c. 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 c. open-source .