Python Basic Programming Quiz

Quiz
•
Computers
•
11th Grade
•
Medium
Rakesh Kumar
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a program defined as, according to the sources?
A mathematical equation
A compiler for various languages
An ordered set of instructions or commands to be executed by a computer
A graphical user interface
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who created Python and in what year, as stated in the sources?
Bill Gates in 1980
Steve Wozniak in 1995
Guido van Rossum in 1991
Dennis Ritchie in 1972
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python is described as being case sensitive. What does this imply for its keywords?
Keywords can be written in any case (e.g., false or False)
Keywords are always written in uppercase
Keywords must be written exactly as given (e.g., False not false)
Case sensitivity only applies to variable names, not keywords
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid rule for naming an identifier in Python?
The name should begin with an uppercase or lowercase alphabet
It can be of any length
It must begin with a digit
It should not be a keyword
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an invalid identifier name in Python based on the rules provided?
marksMaths
_Percentage
1st_Room
total_Marks
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A fixed value that cannot be changed during program execution
An identifier whose value can change
A special symbol used for mathematical operations
A reserved word with specific meaning to the interpreter
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a variable is used in a Python program before it has been assigned a value?
The interpreter automatically assigns it a default value of None
It results in a logical error, but the program continues to run
The program prompts the user to enter a value for it
It will lead to an error
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Variables Quiz

Quiz
•
11th Grade
20 questions
Java OOP Connections

Quiz
•
10th - 12th Grade
20 questions
Python -Iteration (loops)

Quiz
•
7th - 12th Grade
20 questions
Python เบื้องต้น ม.5

Quiz
•
11th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
20 questions
CS Python Fundamentals Unit 3 Review

Quiz
•
9th - 12th Grade
25 questions
Intro to CS Unit 3 Review

Quiz
•
9th - 12th Grade
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 Computers
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
20 questions
Points, Lines & Planes

Quiz
•
9th - 11th Grade