Python - Loops, Patterns & List manipulations

Quiz
•
Computers
•
11th Grade
•
Medium
Rajath Vijayakumar
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following correctly represents a Python for loop syntax?
for i in range(10):
foreach i in range(10):
for (i = 0; i < 10; i++):
for i to 10:
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following code snippet print?
1 2 3
0 1 2 3
0 1 2
1 2
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
0 0, 1 1, 2 2
0 0, 0 1, 1 0, 1 1, 2 0, 2 1
0 1, 1 2
Error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times will the following loop execute?
2
3
5
6
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to skip the current iteration in a loop?
break
continue
pass
None of the above
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What pattern is printed by this code?
None of the above
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following will generate the pattern below?
Both a and b
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
ASCII + Binary Representations

Quiz
•
5th - 12th Grade
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
15 questions
KS4 - Python Turtle

Quiz
•
9th - 11th Grade
20 questions
OCR GCSE CS MCQs 2.3 Defensive Design

Quiz
•
10th - 11th Grade
20 questions
AP CA A Unit 4 Review

Quiz
•
11th - 12th Grade
20 questions
List Manipulations

Quiz
•
11th Grade
12 questions
Python Loops

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade