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
17 questions
High and low level languages

Quiz
•
10th - 12th Grade
13 questions
Binary Number System

Quiz
•
9th - 12th Grade
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
11 questions
Python Code Quiz

Quiz
•
8th - 12th Grade
20 questions
Unit 5 Quiz - Loops & Lists (code.org)

Quiz
•
10th - 12th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
20 questions
Java Casting & Booleans

Quiz
•
10th - 12th 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
19 questions
Handbook Overview

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

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade