
Python data types
Quiz
•
Others
•
University
•
Easy
Sherif Abdelhamid
Used 10+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume the variable x has been initialized to an integer value (e.g., x = 3). What does the following statement do?
x = x + 2
This would fail as it is a syntax error
Produce the value "false" because "x" can never equal "x+2"
Retrieve the current value for x, add two to it and put the sum back into x
Create a function called "x" and put the value 2 in the function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of x after the following statement executes:
x = 1 + 2 * 3 - 8 / 4
5.0
4
15
3.0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following elements of a mathematical expression in Python is evaluated first?
*
/
()
+
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a Python reserved word?
iterate
continue
break
else
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a bad Python variable name?
Spam
_spam
23spam
SPAM23
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character represents a comment in Python code?
*
#
&
$
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Python code needed to ask a user for input?
input("what is your name?")
input="what is your name?"
(input)=what is your name?
input=what is your name?
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Speed and Velocity 7
Quiz
•
7th Grade - University
11 questions
Compare/Contrast Day 9
Quiz
•
1st Grade - University
10 questions
Made in Heaven
Quiz
•
University
15 questions
TFN PREFINALS REVIEWER
Quiz
•
University
20 questions
SCIENTIFIC INQUIRY
Quiz
•
7th Grade - University
10 questions
Business Communication Quiz
Quiz
•
University
15 questions
CODE 4 KITSW ROUND - 4
Quiz
•
University
10 questions
Open Day Questions
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Others
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
