CH 1 & 2 Flashcards
T/F | Comments in Python begin with the # character.
T
T/F | All programs are normally stored in ROM and are loaded into RAM as needed for processing.
F
T/F | The CPU understands instructions written in a binary machine language.
T
T/F | RAM is a volatile memory used for temporary storage while a program is running.
T
T/F | The Python language uses a compiler which is a program that both translates and executes the instructions in a high-level language.
F
T/F | IDLE is an alternative method to using a text editor to write, execute, and test a Python program.
True **
T/F | According to the behavior of integer division, when an integer is divided by an integer, the result will be a float.
F
T/F | Python allows programmers to break a statement into multiple lines.
T
T/F | A flowchart is a tool used by programmers to design programs
T
T/F | In Python, math expressions are always evaluated from left to right, no matter what the operators are.
F
T/F | Computer programs typically perform three steps: input is received, some process is performed on the input, and output is produced.
T
T/F | In Python, print statements written on separate lines do not necessarily output on separate lines.
T
T/F | The \t escape character causes the output to skip over to the next horizontal tab.
T
T/F | Since a named constant is just a variable, it can change any time during a program’s execution.
F
Where does a computer store a program and the data that the program is working with while the program is running?
a. in main memory
b. in the CPU
c. in secondary storage
d. in the microprocessor
a. in main memory