
Python Quiz 1 : Variable, Data Types, Slicing
Authored by Kundan Kumar
Computers
University
Used 4+ 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
Which of the following is a valid Python variable name?
2value
_value
value-name
value name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the result of 3 / 2 in Python 3?
int
float
complex
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will "Python" * 2 produce?
['Python', 'Python']
"Python2"
"PythonPython"
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following code return?
dep
depen
depend
depende
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Negative Indexing: If s = "Freedom", what is s [-2]?
r
e
o
m
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does this produce?
"abc"
"ace"
"bdf"
"fed"
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of:
True
False
Depends on Python version
Error
Answer explanation
True, because integers between -5 and 256 are interned
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
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
20 questions
Network topologies
Quiz
•
8th Grade - University
18 questions
CIS2303 Week 4_5 Ch_3
Quiz
•
University
20 questions
Software Engineering Quiz 1
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
20 questions
Round 1 ( RHA Learner Contest )
Quiz
•
University
11 questions
Determining System Requirements
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