CoSci MidTerm a
SQL (Structured Query Language)
an international standard language for processing a database
True|False: The six Waterfall Model phases for software development are:
1. Customer request 2.Analysis 3.Design 4.Implementation 5.Integration 6. Maintenance
In Python, one integer uses ________ bits of memory. (hint: a number)
32
In a computer, one word has ______ bits. (Hint: a number more than 24)
32
True|False: In scientific notation 3.78E9, the character E stands for ______________. (hint: a word)
Exponent
True | False: 1.23E5 actually means 12300.
False
True | False: Compiler languages are less efficient than interpreter languages.
False
True | False: Python is a compiler language of 3GL.
False
True | False: Python programs are more efficient than Java and C++ programs.
False
True | False: SQL is a procedural language of 4GL.
False
True|False: Caesar cipher replaces each character in plain text with a character a given distance away. Therefore, Caesar cipher is very secure to use today.
False
True|False: It is still possible that a for loop would become an infinite loop when running.
False
True|False: Python program files use .pyt as file type extension.
False
True|False: Python's short-circuit evaluation of logic expressions will make our programs run slower .
False
True|False: The following code when run would write only one line to the file "myfile.txt". f = open("myfile.txt", 'w') f.write("First line.\nSecond line.\n")
False
for eachPass in range(4): print("PY", end = " " ) The output of the above code will be as follows: PY PY PY
False
HTTPS stands for Hyper Text Transfer __________ Secure. (hint: P___ol)
Protocol
HTTP stands for Hyper Text _________ Protocol. (Hint: T_____r)
Transfer
True | False: 1 MB of storage contains about 1 million bytes.
True
True | False: Java, C++, Python, and C are high-level procedural languages of 3GL.
True
True | False: Python is a compiler language of 3GL.
True
True|False: ( X in listX ) is True if X is in listX, False otherwise.
True
True|False: Python's short-circuit evaluation of logic expressions will make our programs run much faster .
True
True|False: A logic condition is also called a boolean expression.
True
True|False: In Python, a string representation of an integer number must be converted to a number (by using function int ) before it can be used in any computation.
True
True|False: In Python, either '' or "" represents an empty string.
True
True|False: Python is a high-level, general-purpose programming language for solving problems on modern computer systems.
True
True|False: Python is an interpreted language, or interpreter language.
True
True|False: The following code will cause an error in Python. salary = 1,234.00
True
True|False: The statement a += 3 may be translated to only one machine instruction.
True