
Python Basics Quiz
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Easy
Rajni Khyriem
Used 6+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
15 questions
Java_MCQ_3
Quiz
•
University
15 questions
Questionário sobre Inteligência Artificial
Quiz
•
University
12 questions
PYTHON APTITUDE
Quiz
•
University
15 questions
Grade 6 - Living with AI
Quiz
•
6th Grade - University
15 questions
Qual a sua próxima certificação?
Quiz
•
University
12 questions
COMPILADOR-TECNM
Quiz
•
University
15 questions
Chapter 3 : SQL Command
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
