u u u u u
PYTHON [GLOBAL EDITION] BY TONY
u u u u u
GADDIS
u
Table of Contents
u u
1. Introduction to Computers and Programming u u u u
2. Input, Processing, and Output
u u u
3. Decision Structures and Boolean Logic
u u u u
4. Repetition Structures u
5. Functions
6. Files and Exceptions
u u
7. Lists and Tuples
u u
8. More About Strings
u u
9. Dictionaries and Sets u u
10. Classes and Object-Oriented Programming
u u u
11. Inheritance
12. Recursion
13. GUI Programming
u
14. Database Programming u
,Chapter 1 Introduction to Computers and Programming
u u u u u u
Review Questions
u u
Multiple Choice
u
1. A(n) is a set of instructions that a computer follows to perform a task.
u u u u u u u u u u u u
a. Compiler
b. Program
c. Interpreter
d. Programming language u
2. The physical devices that a computer is made of are referred to as
u u u . u u u u u u u u u
a. Hardware
b. Software
c. The operating system u u
d. Tools
3. The part of the computer that runs programs is called
u u u u . u u u u u
a. RAM
b. Second storage u
c. Main memory u
d. The CPU u
4. Today, CPUs are small chips known as
u u u .
u u u
a. ENIACs
b. Microprocessors
c. Memory chips u
d. Operating systems u
5. The computer stores a program while the program is running, as well as the data the the
u u u u u u u u u u u u u u u u
program is working with, in
u u u u . u
a. Secondary storage u
b. The CPU u
c. Main Memory u
d. The microprocessor u
6. This is a volatile type of memory that is used only for temporary storage while a program
u u u u u u u u u u u u u u u u
is running.
u u
a. RAM
b. Second storage u
c. The disk drive u u
d. The usb drive u u
7. A type of memory that can hold data for long periods of time, even when there is no
u u u u u u u u u u u u u u u u u
power to the computer, is called
u u u u . u u
a. RAM
b. Main memory u
c. Second storage u
d. CPU storage u
, 8. A component that collects data from people or other devices and sends it to the
u u u u u u u u u u u u u u
u computer is called u u .
a. An output device u u
b. An input device u u
c. A secondary storage device
u u u
d. Main memory u
9. A video display is a(n)
u u u u device.
a. Output
b. Input
c. Second storage u
d. Main memory u
10. A is enough memory to store a letter of the alphabet or a small number.
u u u u u u u u u u u u u
a. Byte
b. Bit
c. Switch
d. Transistor
11. A byte is made up of eight
u u u u u u .
a. CPUs
b. Instructions
c. Variables
d. Bits
12. In the u numbering system, all numeric values are written in u u u u u u u
u sequences of 0‟s and 1‟s. u u u u
a. Hexadecimal
b. Binary
c. Octal
d. Decimal
13. A bit that is turned off represents the following value:
u u u u u u u u u u
a. 1
b. -1
c. 0
d. “No”
14. A set of 128 numeric codes that represent the English letters, various punctuation marks,
u u u u u u u u u u u u u
u and other characters is
u u . u
a. Binary numbering u
b. ASCII
c. Unicode
d. ENIAC
15. An excessive encoding scheme that can represent characters for many languages in the
u u u u u u u u u u u u
u world is u .
a. Binary numbering u
b. ASCII
c. Unicode
d. ENIAC
2 Jun 28, 2021u u