BADM211 Exam 1 – Questions With Reviewed
Solutions
Save
Practice questions for this set
Learn 1 /7 Study with Learn
Assuming dataframe df is properly defined, what line of code would output
the first 10 rows of data?
Choose an answer
1 df.head(11) 2 df.head(9)
3 df.head(10) 4 df.head()
Don't know?
Terms in this set (14)
Both "=" and "==" perform False
the same function in
Python
True or False?
, What is the output of the 211
following lines of code:
word = "BADM"
word = 211
print(word)
A.) "BADM"
B.) 211
C.) "BADM 211"
D.) "BADM_211"
Which of the following is Double String
not a valid variable type
in Python?
A.) String
B.) Boolean
C.) DoubleString
D.) Integer
What will be the result of 6.0
the following code?
A.) 6
B.) 6.0
C.) [3.0, 3.0]
What will be the output 100100100
of the following Python
expression?
a = "100"
print(a * 3)
A.) 300
D.) "100100100"
B.) 100*3
C.) SyntaxError
Solutions
Save
Practice questions for this set
Learn 1 /7 Study with Learn
Assuming dataframe df is properly defined, what line of code would output
the first 10 rows of data?
Choose an answer
1 df.head(11) 2 df.head(9)
3 df.head(10) 4 df.head()
Don't know?
Terms in this set (14)
Both "=" and "==" perform False
the same function in
Python
True or False?
, What is the output of the 211
following lines of code:
word = "BADM"
word = 211
print(word)
A.) "BADM"
B.) 211
C.) "BADM 211"
D.) "BADM_211"
Which of the following is Double String
not a valid variable type
in Python?
A.) String
B.) Boolean
C.) DoubleString
D.) Integer
What will be the result of 6.0
the following code?
A.) 6
B.) 6.0
C.) [3.0, 3.0]
What will be the output 100100100
of the following Python
expression?
a = "100"
print(a * 3)
A.) 300
D.) "100100100"
B.) 100*3
C.) SyntaxError