
Python Basics Quiz

Quiz
•
Information Technology (IT)
•
University
•
Easy
Rajni Khyriem
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 sec • 2 pts
What is an identifier in Python?
A type of operator
A name used to identify variables and functions
A built-in function
A reserved keyword
2.
MULTIPLE CHOICE QUESTION
5 sec • 2 pts
Which of the following is a valid identifier in Python?
1st_variable
my-variable
my_variable
class
3.
MULTIPLE CHOICE QUESTION
5 sec • 2 pts
What will happen if you try to use a keyword as an identifier?
It will be ignored by the interpreter
It will create a new variable
It will result in a SyntaxError
It will work without issues
4.
MULTIPLE CHOICE QUESTION
5 sec • 2 pts
Which of the following statements is true about variables in Python?
You must declare the datatype before using a variable
Variable names cannot contain underscores
Variables can only hold integer values
Python infers the datatype based on the assigned value
5.
MULTIPLE CHOICE QUESTION
5 sec • 2 pts
What is the output of the expression '5 + 3'?
5 + 3
Error
53
8
6.
MULTIPLE CHOICE QUESTION
5 sec • 2 pts
Which operator is used for exponentiation in Python?
+
//
**
^
7.
MULTIPLE CHOICE QUESTION
5 sec • 2 pts
What does the 'not' operator do in Python?
It performs addition
It assigns a value
It negates a boolean value
It checks for equality
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
10 questions
C++ Basics Quiz

Quiz
•
University
8 questions
Intro to JS: Variables & Values

Quiz
•
11th Grade - University
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
5 questions
Fundamentos de programación

Quiz
•
12th Grade - University
12 questions
eXtensible Markup Language

Quiz
•
12th Grade - University
10 questions
Java Quiz 1 in tamil theme

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University