Ch1 Pyhton
Ch1 Pyhton
JAAMACADDA SIMAD
Faculty:
Program:
Class:
ID No. :
Phone No. :
Subject : Pearson Starting Out with Python 5rd Tony Gaddis (2021)
A3) CPU, main memory, secondary storage devices, input device, output device.
Q5) What part of the computer serves as a work area to store a program and its data while the
program is running?
Q6) What part of the computer holds data for long periods of time, even when there is no power to
the computer?
Q7) What part of the computer collects data from people and from other devices?
Q8) What part of the computer formats and presents data for people or other devices?
Q9) What fundamental set of programs control the internal operations of the computer’s hardware?
Q10) What do you call a program that performs a specialized task, such as a virus scanner, a file
compression program, or a data backup program?
Q11) Word processing programs, spreadsheet programs, email programs, web browsers, and game
programs belong to what category of software?
A12) a byte.
Q13) What do you call a tiny “switch” that can be set to either on or off?
A13) a bit.
Q14) In what numbering system are all numeric values written as sequences of 0s and 1s?
September 30, 2021
A14) binary.
Q16) What encoding scheme is extensive enough to represent the characters of many of the
languages in the world?
A16) Unicode.
Q17) What do the terms “digital data” and “digital device” mean?
A17) anything using binary numbers, any device that works with binary data.
Q18) A CPU understands instructions that are written only in what language?
Q19) A program has to be copied into what type of memory each time the CPU executes it?
Q20) When a CPU executes the instructions in a program, it is engaged in what process?
A21) assembly language: a low level language, substitutes for machine language, still very close in
nature to machine language.
Q22) What type of programming language allows you to create powerful and complex programs
without knowing how the CPU works?
Q23) Each language has a set of rules that must be strictly followed when writing a program. What is
this set of rules called?
A23) syntax.
A24) complier.
Q25) What do you call a program that both translates and executes the instructions in a high-level
language program?
Q26) What type of mistake is usually caused by a misspelled keyword, a missing punctuation
character, or the incorrect use of an operator?
Review Questions
Multiple Choice
5. The computer stores a program while the program is running, as well as the data that the program
is working with, in __________.
6. This is a volatile type of memory that is used only for temporary storage while a pro- gram is
running.
7. A type of memory that can hold data for long periods of time, even when there is no power to the
computer, is called __________.
8. A component that collects data from people or other devices and sends it to the computer is called
__________.
10. A __________ is enough memory to store a letter of the alphabet or a small number.
12. In the __________ numbering system, all numeric values are written as sequences of 0s and 1s.
13. A bit that is turned off represents the following value: __________.
a. 1 b. −1 c. 0 d. “no”
14. A set of 128 numeric codes that represent the English letters, various punctuation marks, and
other characters is __________.
15. An extensive encoding scheme that can represent characters for many languages in the world is
__________.
18. The tiny dots of color that digital images are composed of are called __________.
19. If you were to look at a machine language program, you would see __________.
20. In the __________ part of the fetch-decode-execute cycle, the CPU determines which operation it
should perform.
21. Computers can only execute programs that are written in __________.
23. The words that make up a high-level programming language are called __________.
24. The rules that must be followed when writing a program are called __________.
25. A(n) __________ program translates a high-level language program into a separate machine
language program.
True or False
False 1. Today, CPUs are huge devices made of electrical and mechanical components such as
vacuum tubes and switches.
True 2. Main memory is also known as RAM.
True 3. Any piece of data that is stored in a computer’s memory must be stored as a binary number.
False 4. Images, like the ones created with your digital camera, cannot be stored as binary numbers.
True 7. An interpreter is a program that both translates and executes the instructions in a
high- level language program.
False 8. A syntax error does not prevent a program from being compiled and executed.
False 9. Windows, Linux, Android, iOS, and macOS are all examples of application software.
False 10. Word processing programs, spreadsheet programs, email programs, web browsers, and
games are all examples of utility programs.
A1) The CPU is the most important component in a computer is because without it you would not be
able to run any type of software on the computer.
Q2) What number does a bit that is turned on represent? What number does a bit that is turned off
represent?
Q3) What would you call a device that works with binary data?
A3) The device that works with binary data is called Digital device.
Q4) What are the words that make up a high-level programming language called?
A4) The word that make up a high-level programming language are called Keywords or reserved words.
Q5) What are the short words that are used in assembly language called?
A5) The short words that are used in assembly language is called Mnemonics.
A6) A compiler is a program that translates a high-level language program into a separate machine
language.
An interpreter is a program that both translate and executes the instructions in a high-level language
program.
Q7) What type of software controls the internal operations of the computer’s hardware?
A7) The Operating systems is the software that controls the internal operations of the computer's
hardware.