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