
Python Programming Quiz
Quiz
ā¢
Computers
ā¢
Professional Development
ā¢
Practice Problem
ā¢
Medium
SI HACKATHON
Used 1+ times
FREE Resource
Enhance your content in a minute
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min ⢠1 pt
Sanya is trying to output the string "May the odds favor you" in Python. How can she do it?
print("May the odds favor you")
echo("May the odds favor you")
System.out("May the odds favor you")
printf("May the odds favor you")
2.
MULTIPLE CHOICE QUESTION
1 min ⢠1 pt
Avni is trying to create a variable in Python with a value 22.6. How should she do it?
int a = 22.6
a = 22.6
Integer a = 22.6
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min ⢠1 pt
Myra is learning Python and wants to know how to add a single-line comment in her code. What should she use?
/* This is a comment */
!! This is a comment
// This is a comment
# This is a comment
4.
MULTIPLE CHOICE QUESTION
1 min ⢠1 pt
Aanya is trying to represent 261500000 as a floating number in Python for her programming assignment. How should she do it?
2.615E8
261500000
261.5E8
2.6
5.
MULTIPLE CHOICE QUESTION
1 min ⢠1 pt
Kabir is learning about complex datatypes in Python. He wants to select the correct example of a complex datatype. Which one should he choose?
3 + 2j
-100j
5j
All of the above are correct
6.
MULTIPLE CHOICE QUESTION
1 min ⢠1 pt
Eshaan is trying to create a multi-line string in Python for his project. What is the correct way of doing it?
str = ""My name is Kevin and I live in New York""
str = """My name is Kevin and I live in New York"""
str = "My name is Kevin and I live in New York"
All of the above
7.
MULTIPLE CHOICE QUESTION
1 min ⢠1 pt
Advait is working on a project in Python and needs to convert the uppercase letters in a string to lowercase. How can he achieve this?
lowercase()
capitalize()
lower()
toLower()
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
60 questions
Exploring Python Fundamentals
Quiz
ā¢
Professional Development
60 questions
Diagnostic Associate Diploma Graphic Design - Exam 5
Quiz
ā¢
Professional Development
60 questions
Word11
Quiz
ā¢
Professional Development
60 questions
Programación
Quiz
ā¢
KG - Professional Dev...
60 questions
Overall programming tests
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 Computers
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...
