
Python Fundamentals- 02
Authored by Sreelakshmi Sridhar
Other
5th Grade - University
Used 22+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
b = [11,13,15,17,19,21]
What is output for − print(b[::2])
[19,21]
[11,15]
[11,15,19]
[13,17,21]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When the given code is executed how many times ' 'you are learning python ' ' will be printed.
a = 0
while a<10:
print(''you are learning python'')
pass
9
10
11
Infinite number of times
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
6
33
123
Error. Mixing operators between numbers and strings are not supported
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
sampleList = ["Jon", "Kelly", "Jessa"]
sampleList.append("Scott")
print(sampleList)
[‘Jon’, ‘Kelly’, ‘Scott’, ‘Jessa’]
[‘Jon’, ‘Kelly’, ‘Jessa’, ‘Scott’]
[‘Jon’, ‘Scott’, ‘Kelly’, ‘Jessa’]
The program executed with errors
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following
x = 36 / 4 * (3 + 2) * 4 + 2
print(x)
182.0
37
117
The Program executed with errors
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
p, q, r = 10, 20 ,30
print(p, q, r)
10 20
10 20 30
30 20 10
Error: invalid syntax
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
valueOne = 5 ** 2
valueTwo = 5 ** 3
print(valueOne)
print(valueTwo)
10
15
25
125
Error: invalid syntax
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
30 questions
Creative Nonfiction First Quarter Exam
Quiz
•
11th - 12th Grade
30 questions
Economics 5th Grade
Quiz
•
4th - 5th Grade
28 questions
LATIHAN SOAL US 2020 Bagian 5
Quiz
•
6th Grade
29 questions
Stefan, wie geht's dir?
Quiz
•
1st - 8th Grade
27 questions
dukh ka adhikaar
Quiz
•
9th Grade
28 questions
COG 1 - Memory/Thinking Vocab ISC
Quiz
•
11th - 12th Grade
28 questions
Who is more likely to...
Quiz
•
5th - 6th Grade
29 questions
Personality Quiz
Quiz
•
4th Grade - 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 Other
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade
20 questions
Exponents
Quiz
•
6th Grade
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade