The Python interpreter is a program that can read Python programming statements and execute them
T or F - Answers T
A Python variable name cannot begin with a digit
T or F - Answers T
In Python math expressions are evaluated from left to right, no matter what the operators are
T or F - Answers F
The % symbol is the percentage operator and is also known as the precedence operator
T or F - Answers F
Statements in the loop body of a WHILE statement will NOT be executed if the predicate initially
evaluates to FALSE
T or F - Answers T
Converting programming instructions to machine instructions is a function of - Answers compilers
A bit is - Answers an element of a byte and can be "off" or "on"
A cursor is a - Answers symbol that shows where the next character will be entered on the screen
The part of a record that is used to store individual facts or data items is called - Answers a field
Which of the following is NOT true of comments in Python
a) they can begin anywhere on a line
b) they are optional text included by the programmer
c) they translate into one machine language instruction
d) they are preceded by the symbol # - Answers c
Evaluating the expression [3 // 2 - 3.] yields the value - Answers -.5
Which of the following is NOT legal syntax of a floating point value
a) 3.1415
b) 31415
c) 31415.
d) 3.1415E-4 - Answers b
The predicate of a WHILE is - Answers evaluated before each iteration of the loop
The ____________ function reads a piece of data that has been entered at the keyboard and returns
that piece of data, as a string, back to the program - Answers input
Memory is said to be ______________ if data and programs are erased when the power to a
computer is turned off - Answers volatile
The line continuation character is a - Answers \
Which mathematical operator is used to raise 5 to the second power in Python - Answers **
In Python names of variables and names of functions are all generically known as - Answers
identifiers
The form of a program that we as programmers modify with an editor is called the _____________
program and might be stored in the file hurdles17.py - Answers source
After execution of the statement [ sold = 256.752 ] the variable [ sold ] will reference the numeric
literal value as a(n) __________ data type - Answers float
After execution of the statement [ price = int(68.549) ] the variable [ price ] will reference the value -
Answers 68
Where does a computer store a program and the data that the program is working with while the
program is running - Answers primary storage
Exactly 2^20 bytes is called a
a) Terabyte
b) Kilobyte
c) Gigabyte
, d) None of these - Answers d
What type of error is it when Reeborg performs the wrong task - Answers logic error
UNIX command to list the names of of all files in the current directory - Answers ls
UNIX command to remove the file boxes.wld - Answers rm boxes.wld
UNIX command to change current directory from home to OLA - Answers cd OLA
UNIX command to make a copy of the file hurdles.py called backup.py - Answers cp hurdles.py
backup.py
UNIX command to create a directory called unixstuff - Answers mkdir unixstuff
UNIX command to display contents of hurdles.py onto the screen a page at a time - Answers more
hurdles.py
A system or language that distinguishes between upper and lowercase letters is said to be
____________ - Answers case sensitive
What are three types of program maintenance - Answers corrective adaptive perfective
What will the following statements cause the computer to print
x = 99
y = 444
z=x
x=y
y=z
print(x)
print(y) - Answers 444
99
The main reason for using secondary storage is to hold data for long periods of time, even when the
power supply to the computer is turned off
T or F - Answers T
According to the behavior of integer division in Python when an integer is divided by an integer the
result will be a float
T or F - Answers F
Python allows programmers to break a statement into multiple lines
T or F - Answers T
In Python the assignment operator and the equality operator are represented the same way
T or F - Answers F
Reducing duplications of code is one of the advantages of using a loop structure
T or F - Answers T
Assuming [number] has an integer value the clause [if not (number>9):] is equivalent to the clause [if
(number<10): ]
T or F - Answers F
Python allows you to compare strings
T or F - Answers T
In Python an identifier cannot start with a digit
T or F - Answers T
Semantics is the term used when we refer to the meaning of a statement
T or F - Answers T
Both of the following [for] classes would generate the same number of loop iterations:
for num in range(4):