
Python Basics Quiz

Quiz
•
Other
•
Professional Development
•
Hard
geet s
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of the following Python expression? 4 + 3 % 5
7
1
2
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to define a block of code in Python language?
Brackets
All of the mentioned
Indentation
Key
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet? print(3 ** 2)
8
5
6
9
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What arithmetic operators cannot be used with strings in Python?
–
*
+
All of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? print(5 // 2)
None of the mentioned
2
3
2.5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in Python code?
{This is comment}
#This is comment
/*This is comment*/
//This is comment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output the type of a variable or object in Python?
print(type(x))
print(typeof(x))
print(type x)
print(typeof x)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Paperless

Quiz
•
Professional Development
15 questions
Python Loops

Quiz
•
Professional Development
15 questions
Python Basics Quiz

Quiz
•
Professional Development
12 questions
GenAI Workshop - Repaso 1

Quiz
•
Professional Development
10 questions
Quiz Pemrograman dan AI

Quiz
•
Professional Development
10 questions
Ứng dụng Python phân tích dữ liệu và xây dựng mô hình_buổi 1

Quiz
•
Professional Development
15 questions
Quiz-1

Quiz
•
University - Professi...
10 questions
Howbury School

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