comp sci test
what symbol(s) used to begin. multi line comment?
"""
What is the modulus operator?
%
ARPANET was decommissioned in ___.
1990
The expression int(23.67) converts to which of the following values?
23
x=5 x = float(input("Enter a number.")) print(x)
5.0
x=int(3.14) y=float(5) print(x+y)
8.0
Which sign is used to assign values to variables?
=
Which of the following methods translates the source program by getting a file containing the machine code?
Compilation
The instruction list is the ___.
Alphabet
A(n) expression with the value true/false is ___.
Boolean
___ Permitted a scalable distributed mechanism for resolving hierarchical host names into internet addresses.
DNS
integers are real numbers that are typically displayed with a decimal point.
False
Who created Python?
Guido van Rossum
What is computer software?
Programs and Code
Any data read by the input() function is considered the ______ data type.
String
A set of rules used to determine if a certain string of words form a sentence is known as the ___.
Syntax
Comments are a way to document code?
True
Python is a case sensitive programming language
True
The print() function outputs to you console window whatever you tell it to display.
True
___ Was selected to be the first node on ARPANET.
UCLA
When do statements under the if-else clause execute?
When the if condition is false.
Tim Burners Lee invented the ___.
World Wide Web
What will display after the following line of code is executed? print("your new number is", 5+15+5)
Your new number is 25
Which character is allowed within variable names?
_ (underscore)
What is a variable?
a name that represents a value stored in memory.
What is the smallest piece of information a computer can hold
bit
** means
exponent
All of the following are numeric variable data types in Python except...
hexadecimal
You use a(n) ___ statement to write a binary decision structure.
if-else
what are the four basic functions of computers
input, memory, processing, output.
Python is ______ language.
interpreted.
python is used extensively for all except
mobile apps
Python is extensively used for all of the following except.
mobile apps.
Which of the following must be enclosed in either single or double quotation marks?
string literals
in the statement print(money) what is money?
the argument
The condition (vr < 10 or vr > 10) cal be rewritten more clearly as which of the following?
vr != 10
Will print('Howdy') and print ("Howdy") print the same?
yes
