What is the output of the following program?
print ("My\nname\nis\nBond. ", end= "")
print ("James Bond")
Mod 2 quiz 1
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Scott Freeman
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
print ("My\nname\nis\nBond. ", end= "")
print ("James Bond")
My
name
is
Bond. James Bond
My
name
is
Bond.
James Bond
My
name
is
Bond.
James
Bond
error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
print (sep="&", "fish", "chips")
fish & chips
& fish chips
fish chips &
error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following codes will cause an error
print('Greg\'s book.')
print("'Greg's book.'")
print('"Greg\'s book."')
print("Greg\'s book.")
print ('"Greg's book.''')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of literals are the followings examples
"Hello" and "007"
Integer
String
Float
Boolean
5.
MATCH QUESTION
1 min • 1 pt
Match the following literals
Float
528
Boolean
2.0
Integer
"1.5"
String
False
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the base 10 value when the binary is 1011
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the expected value of the following code?
print((2**4), (2*4), (2*4))
8.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the expected value of the following code?
print((-2/4), (2/4), (2//4),(-2//4))
9.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the expected value of the following code?
print((2%-4), (2%4), (2**3**2))
13 questions
Python Iteration
Quiz
•
10th Grade
14 questions
For Loops (Java)
Quiz
•
9th - 12th Grade
12 questions
Python Programming - Iteration
Quiz
•
9th Grade
12 questions
Java Strings
Quiz
•
9th - 12th Grade
12 questions
Python Print Statement
Quiz
•
6th - 10th Grade
10 questions
1.2 Basic String Manipulation
Quiz
•
9th Grade
10 questions
KS4 Programming Techniques (1)
Quiz
•
8th - 10th Grade
14 questions
year 8 lesson 2 quiz - python
Quiz
•
8th - 10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University