
Python Quiz 1

Quiz
•
Computers
•
Professional Development
•
Hard
Raphael Okai
Used 5+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to comment in Python?
// This is a comment
# This is a comment
<!-- This is a comment -->
/* This is a comment */
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
2.5
2
2.0
2.00
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
15
"555"
8
"333"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about Python variables?
Variables must be declared before they are used.
Variables can contain only letters.
Python variables are case-sensitive.
Python variables cannot be reassigned.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below python code:
-3
Error
2
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below python code:
Error
0o123123
0o270o27
0o27027
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below python code:
CodeCamp
Empty String
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
BPP-Functions-1

Quiz
•
Professional Development
30 questions
MB 500

Quiz
•
Professional Development
25 questions
DDC_Finals Quiz

Quiz
•
Professional Development
35 questions
Python

Quiz
•
Professional Development
30 questions
Blind Coding Round 1

Quiz
•
Professional Development
25 questions
Java Basics

Quiz
•
Professional Development
25 questions
C & Python

Quiz
•
Professional Development
35 questions
PCEP-Python Programming Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade