
Python Basics Quiz
Authored by Rajni Khyriem
Information Technology (IT)
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1
Quiz
•
University
10 questions
Refresh Python
Quiz
•
University
10 questions
QUIZ 2 PLC
Quiz
•
10th Grade - University
12 questions
Fundamentals
Quiz
•
7th Grade - University
12 questions
CLC Unit 2 Lesson 11,12 and 13 Quiz
Quiz
•
University
12 questions
CLC Lesson 7 Quiz
Quiz
•
University
10 questions
Data Management and Storage
Quiz
•
University
14 questions
Google sheets
Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University