
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
13 questions
Python Programming Quiz

Quiz
•
University
11 questions
IT01

Quiz
•
University
10 questions
Contadores y Acumuladores

Quiz
•
University
15 questions
Python quiz

Quiz
•
University
10 questions
Cuestionario I Big data: Conceptos

Quiz
•
University
14 questions
Introduction to Databases Quiz

Quiz
•
10th Grade - University
10 questions
QUIZ 2 PLC

Quiz
•
10th Grade - University
10 questions
Quiz 2

Quiz
•
University
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 Information Technology (IT)
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University