num=5
print (num)
In Python, what will be the output when I run (execute) this code?
Variables - 1
Quiz
•
Computers
•
7th - 8th Grade
•
Medium
M Dwedari
Used 24+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num=5
print (num)
In Python, what will be the output when I run (execute) this code?
5
num
55
error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num=5
print ("num")
In Python, what will be the output when I run (execute) this code?
05
num
55
error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num=10
print (2 * num)
In Python, what will be the output when I run (execute) this code?
20
num * 2
10
num num
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
quantity=10
print ("2 * quantity")
In Python, what will be the output when I run (execute) this code?
20
2 * quantity
error
quantity
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
postcode="BL6 1AA"
print (postcode)
In Python, what will be the output when I run (execute) this code?
BL6 1AA
BL61AA
postcode
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
number1=10
number2=5
print (number1 + number 2)
In Python, what will be the output when I run (execute) this code?
number1 number2
number1number2
50
15
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num1=10
num2=5
print ("num1 + num2")
In Python, what will be the output when I run (execute) this code?
num1 + num2
num1num2
50
15
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num1=10
num2=5
print (num1 * num2)
In Python, what will be the output when I run (execute) this code?
num1 + num2
num1num2
50
15
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num1=10
num2=5
print (num1 / num2)
In Python, what will be the output when I run (execute) this code?
num1 + num2
2
50
15
12 questions
Year 7 Python
Quiz
•
7th Grade
14 questions
Python Data types & Exceptions
Quiz
•
1st - 10th Grade
10 questions
Python Programming Class Work
Quiz
•
7th Grade
7 questions
Pythonkod
Quiz
•
6th - 8th Grade
12 questions
PSeint Informatica
Quiz
•
8th Grade
14 questions
Python Basics - Year 8
Quiz
•
7th - 9th Grade
11 questions
Control Structures - Selection in Python
Quiz
•
8th Grade - University
8 questions
Quiz- Grade 7 & 8- Python (2nd term)
Quiz
•
7th 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
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary
Quiz
•
8th Grade
17 questions
guess the logo
Quiz
•
8th Grade
16 questions
Function or Non-Function?
Quiz
•
8th - 10th Grade