Python

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Namal (ITNamal)
Used 14+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Python identifier?
1variable
_variable
variable name
variable-name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid naming convention for Python identifiers?
snake_case
PascalCase
camelCase
kebab-case
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum length of a Python identifier?
32 characters
64 characters
128 characters
There is no maximum length
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a reserved word in Python and can be used as an identifier?
if
for
and
while
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about Python identifiers?
They are case-sensitive.
They can start with a digit.
They can contain special characters like @ or #.
They can be a Python built-in function name.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a built-in data type in Python?
int
float
string
array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a tuple and a list in Python?
Tuples are mutable, and lists are immutable.
Tuples are ordered, and lists are unordered.
Tuples are enclosed in parentheses, and lists are enclosed in square brackets.
Tuples can contain elements of different data types, while lists can only contain elements of the same data type.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Programming II CSE A

Quiz
•
12th Grade - University
20 questions
Python 3 Review Part 1

Quiz
•
9th - 12th Grade
20 questions
Introduction to Python

Quiz
•
7th - 9th Grade
20 questions
Python Intermediate Quiz (Including pygame)

Quiz
•
3rd - 12th Grade
15 questions
Python Tuples Review

Quiz
•
11th Grade
19 questions
Lists and Tuples

Quiz
•
11th Grade
15 questions
Problem Solving using Python and R - UNIT II - Tuples

Quiz
•
12th Grade
21 questions
Python Concepts Quiz

Quiz
•
11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade