
Python Basics for Grade 11
Quiz
•
Others
•
11th Grade
•
Medium
Charu Yadav
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A variable in Python is a named location used to store data values.
A variable in Python is a type of snake
A variable in Python is a programming language
A variable in Python is a mathematical equation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Name the different data types in Python.
array
integer, float, string, list, tuple, dictionary, set, boolean, None
double
char
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the 'for' loop in Python.
A 'for' loop in Python iterates over a single element only
A 'for' loop in Python iterates over a sequence or iterable object and executes a block of code for each item in the sequence.
A 'for' loop in Python does not support iteration
A 'for' loop in Python can only be used with integers
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a string variable in Python?
For example: my_string = 'Hello, World!'
my_string = 'Hello, Python!'
my_string: 'Hello, World!'
string my_string = 'Hello, World!'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'while' loop in Python?
To skip a block of code
To terminate the program
To execute a block of code only once
To repeatedly execute a block of code as long as a specified condition is true.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between '==' and '!=' in Python?
'==' is for strings and '!=' is for integers in Python.
'==' checks for identity and '!=' checks for membership in Python.
'==' is used for assignment and '!=' is used for comparison in Python.
'==' is the equality operator and '!=' is the inequality operator in Python.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the 'range()' function used for in Python?
The 'range()' function is used to convert a string to uppercase in Python.
The 'range()' function is used to calculate the square root of a number in Python.
The 'range()' function is used to generate a sequence of numbers in Python.
The 'range()' function is used to sort a list of elements in Python.
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
EXERCISE 2 FLOWER CLASS
Quiz
•
11th Grade
10 questions
Speed and Velocity 7
Quiz
•
7th Grade - University
15 questions
PAMSI
Quiz
•
9th - 12th Grade
11 questions
Compare/Contrast Day 9
Quiz
•
1st Grade - University
10 questions
Aprendiendo Ingles
Quiz
•
11th Grade
10 questions
ESGRIMA BÍBLICO
Quiz
•
9th - 12th Grade
10 questions
Post Test
Quiz
•
11th Grade
10 questions
kiểm tra 15 phút 11
Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Others
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
