Python Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
mari renga
Used 14+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
what is the output of print str * 2 if str = 'Hello World!'?
Hello World!Hello World!
Hello World! * 2
Hello World!
None of the above
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
what is the result of the following operation in Python:
3+ 2 * 2
10
12
9
7
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If you executed name = 'Lizz' , what would be the output of print (name[0:2])?
Li
Zz
Lizz
L
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If you executed var = '01234567' , what would be the result of print(var[::2])?
0246
01234
1234
7531
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
what is the result of the following operation '1'+'2'
3
1
2
12
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given myvar = 'hello', how would you convert myvar into uppercase?
len(myvar)
upper(myvar)
myvar.upper()
myvar.upper(myvar)
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
which of the following are valid ways to specify the string literal foo'bar in Python:
"""foo'bar"""
'foo\'bar'
foo'bar
foo"bar
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Pengenalan Container Registry

Quiz
•
Professional Development
10 questions
DemoQuiz

Quiz
•
Professional Development
10 questions
5. Control statement

Quiz
•
Professional Development
8 questions
OWA Part 1

Quiz
•
Professional Development
6 questions
Excel Shortcuts Quiz

Quiz
•
Professional Development
10 questions
T&P Test on MCQs

Quiz
•
Professional Development
10 questions
MATERIAL DIDACTICO - TEST JAVA- KHIPU

Quiz
•
Professional Development
6 questions
Python Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development