
PYTHON BASICS QUIZ-2

Quiz
•
Professional Development
•
Professional Development
•
Hard
Mrs KEERTHIKA
Used 1+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the value of the following Python expression?
4 + 3 % 5
7
2
4
1
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is used to define a block of code in Python language?
Indentation
Key
Brackets
All of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for function in Python language?
Function
def
fun
Define
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following character is used to give single-line comments in Python?
//
#
!
/*
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
1 2 3
Error
1 2
None of the mentioned
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following functions can help us to find the version of python that we are currently working on?
sys.version(1)
sys.version(0)
sys.version()
sys.version
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Python supports the creation of anonymous functions at runtime, using a construct called __________
pi
anonymous
lambda
none of the mentioned
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
NHIT - Dusra Kadam - Day 8

Quiz
•
Professional Development
15 questions
Simple Python Quiz

Quiz
•
Professional Development
20 questions
Basics of Python Programming Unit-1

Quiz
•
University - Professi...
20 questions
Python Code

Quiz
•
8th Grade - Professio...
15 questions
Ivy_Accenture_Data_Analytics_Using_R_Quiz-3

Quiz
•
Professional Development
20 questions
Typescript Basics

Quiz
•
Professional Development
15 questions
Pre - Qualifier Assessments - Python Training

Quiz
•
Professional Development
18 questions
Pre Test Python

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Professional Development
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development