
Python Programming Quiz

Quiz
•
Other
•
12th Grade
•
Medium
Mamta Kaundal
Used 2+ times
FREE Resource
52 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
2variable
my_var
break
var-name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print(type("Hello"))
<class 'char'>
<class 'string'>
<class 'str'>
<class 'text'>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a keyword in Python?
def
class
return
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of 5 + 3 * 2 in Python?
16
11
13
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? a = 10 b = 5 a, b = b, a print(a, b)
10 5
5 10
5 5
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is immutable in Python?
List
Dictionary
Tuple
Set
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python statement? print(10 > 5 and 5 < 3)
True
False
Error
None
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Challenging Computer Science Questions

Quiz
•
12th Grade
50 questions
PSAS_KONSENTRASI KEAHLIAN AKUNTANSI_XI_YAESA YULIANI

Quiz
•
11th Grade - University
47 questions
Agriscience Unit 2

Quiz
•
9th - 12th Grade
50 questions
Harry Potter i Kamień Filozoficzny

Quiz
•
5th Grade - University
54 questions
Bài Quiz không có tiêu đề

Quiz
•
10th Grade - University
50 questions
Robotics 2 Certification Review

Quiz
•
12th Grade
50 questions
Law Chapter 6: How Contracts Come to an End (Test Review)

Quiz
•
9th - 12th Grade
50 questions
Computer Components

Quiz
•
9th - 12th Grade
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
Discover more resources for Other
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University