
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
31 questions
Quiz 7.1

Quiz
•
Professional Development
27 questions
Python Quiz

Quiz
•
Professional Development
25 questions
C Language Test 3

Quiz
•
Professional Development
29 questions
AI Selection Test

Quiz
•
Professional Development
26 questions
Python Data Structures

Quiz
•
University - Professi...
30 questions
A+ 1102 Day 3c Identify the basics of scripting

Quiz
•
Professional Development
25 questions
C Language Test - 2

Quiz
•
Professional Development
25 questions
Python - Strings

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade