What is an algorithm?
a step-by-step process that will eventually solve a problem
What technology replaced the vacuum tube as the mechanism for implementing electronic switches in computer hardware?
Transistor
What is the result of 4 % 10?
4
Which statement can be used to stop a loop and jump to the next statement after the loop?
Break
What string method can you use to locate the lowest index in a string named s where substring "findme" is found?
s.find("findme")
What is the difference between syntax and semantics?
Syntax is the rules for forming legal statements
Semantics is the meaning of statements
Who is credited as having created the World Wide Web in 1992?
Tim Berners-Lee
What is the result of float(int(5.6))?
5.0
What is NOT a Boolean or logical operator used in the Python language from these (and, or, not xor)?
xor
What effect does the following print statement have?
print("Rambo" * 3)
Prints RamboRamboRambo
What term describes the process of substituting a simple process for a complex process in a program to make the program easier to understand and maintain?
Abstraction
What kind of programming language is Python?
An interpreted language
What is the order of mathematical operations?
PEMDAS
In evaluating a loop, you find the following statement: "value += 2". What happens to the value variable upon each iteration of the loop?
The variable is increased by 2 each iteration through the loop.
What does a mode string of 'w' indicate when opening a file in Python?
The file will be opened for write access
How is data stored in a computer?
Binary data
What is the decimal number 98 in binary?
1100010
Which of the following would be considered a float in Python? -1, 2.718, 3, or '42'
2.718
Assuming that the value of x is 8, and the value of y is 12, what is the value of the following expression? (x - y)**2 > y
What file access method can be used to read a single line of input and return the line as a string, including the newline character?
readline()
What in a computer is known as the processor?
CPU
What is the value of the binary number 10010110 in base-10?
150
What comparison operator can be used to test whether an expression does NOT equal another expression?
!=
What keyword is used for an definite loop, and a indefinite loop, respectively?
for and while
What happens if you attempt to access a string using an index equal to the string's length?
Index out of range error