b = [11,13,15,17,19,21]
What is output for − print(b[::2])
Python Fundamentals- 02
Quiz
•
Other
•
5th Grade - University
•
Hard
Sreelakshmi Sridhar
Used 22+ times
FREE Resource
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
27 questions
Lego Brick, Simple Machines, and Gear Ratio Test
Quiz
•
6th - 7th Grade
30 questions
BASIC QUESTIONS ON PYTHON
Quiz
•
1st - 5th Grade
27 questions
Vybrane slova po R
Quiz
•
3rd - 5th Grade
30 questions
APLIKASI KOMPUTER
Quiz
•
7th - 9th Grade
35 questions
python
Quiz
•
8th Grade
30 questions
Struktur Data Stack dan Queue
Quiz
•
University
28 questions
Quiz grupal
Quiz
•
University
35 questions
Fingerprints
Quiz
•
9th - 12th 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
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th 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
20 questions
Final Exam Vocabulary
Quiz
•
6th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade