
Python data types
Authored by Sherif Abdelhamid
Others
University
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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?
Access all questions and much more by creating a free account
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
Respiratory Physiology Quiz
Quiz
•
University
20 questions
Reading day
Quiz
•
University
15 questions
HARI GURU NASIONAL 2024
Quiz
•
University
10 questions
Business Tax
Quiz
•
University
10 questions
Introduction To Graphic Design
Quiz
•
University
10 questions
quiz
Quiz
•
University
10 questions
Translation Exercise two
Quiz
•
University
10 questions
Exploring Patterns and Numbers
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Others
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University