
Python Workshop
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
Sumit Anand
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a=(1,2,3,4), a[1:-1] is _________
a) Error, tuple slicing doesn’t exist
b) [2,3]
c) (2,3,4)
d) (2,3)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2, 33, 22, 24, 25], What is list1[:-1]?
a) Error
b) [2, 33, 22, 24]
c) 25
d) [25, 24, 22, 33, 2]
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the “hello” +10+20+30?
a) hello102030
b) hello
c) Error
d) hello60
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
>>>str1="helloworld"
>>>str1[::-1]
a) dlrowolleh
b) hello
c) world
d) helloworld
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following character is used to give single-line comments in Python?
a) //
b) %
c) #
d) /*
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the given code?
a) 10 20 10
b) 10
c) 20
d) 10 20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output ?
a) Numbers 1 to 10 in reverse order
b) Numbers 1 to 11 in reverse order
c) Numbers 1 to 10
d) Numbers 1 to 11
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
Pride Week Online Quiz 1
Quiz
•
Professional Development
12 questions
TRAZABILIDAD CoC Global GAP
Quiz
•
Professional Development
15 questions
DB Spezial Quiz für meine Lieben Azubi Kollegen <3
Quiz
•
Professional Development
14 questions
KΡΗΤΗ
Quiz
•
Professional Development
10 questions
9 - сынып БАҚ тест
Quiz
•
Professional Development
14 questions
Test_5
Quiz
•
Professional Development
10 questions
Suku Huaulu_Pekan Nusantara
Quiz
•
7th Grade - Professio...
13 questions
Cuisine française
Quiz
•
Professional Development
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
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
