Programming Midterm Study Guide
1. True or False; 1,500 is a valid integer literal in Python.:
False
2. True or False; A variable associates a name with a value,
making it easy to remember and use the value later in a
program.: True
3. True or False; A while loop can be used for a count-
controlled loop.: True
4. True or False; An algorithm describes a process that ends
with a solution to a problem.: True
5. True or False; Computer scientists refer to the process of
planning and organizing a program as software
development.: True
6. True or False; Conditional iteration requires that a condition
be tested within the loop to determine whether the loop
should continue.: True
, 7. True or False; Each individual instruction in an algorithm is
well defined.: -
False
8. True or False; If A is True, what will the statement "not A"
return?: False
9. True or False; In Python, % is the exponentiation operator.:
False
10. True or False; In Python, = means equals, whereas ==
means assignment.-
: False
11. True or False; In Python, a floating-point number must be
written using scientific notation.: False
12. In Python, what data type is used to represent real
numbers between
-10^308 and 10^308 with 16 digits of precision?: float
13. In Python, what does the "%" operator do in the
expression 6 % 4?: It returns a remainder or modulus.
1. True or False; 1,500 is a valid integer literal in Python.:
False
2. True or False; A variable associates a name with a value,
making it easy to remember and use the value later in a
program.: True
3. True or False; A while loop can be used for a count-
controlled loop.: True
4. True or False; An algorithm describes a process that ends
with a solution to a problem.: True
5. True or False; Computer scientists refer to the process of
planning and organizing a program as software
development.: True
6. True or False; Conditional iteration requires that a condition
be tested within the loop to determine whether the loop
should continue.: True
, 7. True or False; Each individual instruction in an algorithm is
well defined.: -
False
8. True or False; If A is True, what will the statement "not A"
return?: False
9. True or False; In Python, % is the exponentiation operator.:
False
10. True or False; In Python, = means equals, whereas ==
means assignment.-
: False
11. True or False; In Python, a floating-point number must be
written using scientific notation.: False
12. In Python, what data type is used to represent real
numbers between
-10^308 and 10^308 with 16 digits of precision?: float
13. In Python, what does the "%" operator do in the
expression 6 % 4?: It returns a remainder or modulus.