
Python Concepts for Grade 11
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Medium
Aghata Dhiwi Ashita
Used 34+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: if 5 > 3: print('A') else: print('B')?
5
C
A
B
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a for loop to iterate through a list named 'numbers'?
for number in range(numbers):
for each number in numbers:
while number in numbers:
for number in numbers: print(number)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: x = 10; while x > 0: print(x); x -= 1?
0
10 9 8 7 6 5 4 3 2 1
-1
11
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Define a function named 'greet' that takes a name as a parameter and prints 'Hello, {name}'?
def greet(): print('Hello, World')
def greet(name): print('Hi, ' + name)
def greet(name): print(f'Hello, {name}')
def greet(name): return 'Hello, ' + name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'break' statement in a loop?
To skip the current iteration of the loop.
To pause the loop for a specified time.
To continue to the next iteration of the loop.
To exit a loop prematurely.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a string contains the substring 'Python' using a conditional statement?
if my_string.has('Python')
if 'Python' in my_string:
if 'Python' is in my_string
if my_string.contains('Python')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a for loop that prints all even numbers from 0 to 20.
for (let i = 1; i < 20; i++) { printf(i); }
for (let i = 0; i <= 20; i++) { if (i % 2 === 0) { printf(i); } }
for (let i = 0; i < 20; i += 2) { printf(i); }
for (let i = 0; i <= 20; i++) { if (i % 2 !== 0) { printf(i); } }
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
20 questions
Math G7 Chapter 3 Mastering Significant Figures and Estimation
Quiz
•
7th Grade - University
20 questions
Quiz tentang Blok Scratch
Quiz
•
9th Grade - University
16 questions
Quiz on Design Brief
Quiz
•
11th Grade
10 questions
Animation Techniques Quiz
Quiz
•
10th Grade - University
20 questions
Atividade Avaliativa Robótica /Aula Projetos
Quiz
•
9th - 12th Grade
20 questions
IoT 1.2
Quiz
•
11th Grade
10 questions
Quiz di Coding su Python
Quiz
•
9th - 12th Grade
16 questions
HTML Level 1
Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Thanksgiving Trivia
Quiz
•
11th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
