Python Range() Function Quiz-8D

Quiz
•
Computers
•
8th Grade
•
Medium
Minu Chacko
Used 5+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax of the range() function?
range(stop, start, step)
range(stop, step, start)
range(start, stop, step)
range(start, stop)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default start value of the range() function if not specified?
-1
1
0
10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of range(1, 10)?
It will output a sequence of numbers from 0 to 9.
It will output a sequence of even numbers from 1 to 10.
It will output a sequence of numbers from 1 to 10.
It will output a sequence of numbers from 1 to 9.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of range(10)?
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
1, 2, 3, 4, 5, 6, 7, 8, 9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a Python code to print all the even numbers between 1 and 10 using the range() function.
for num in range(2, 10, 2): print(num)
for num in range(1, 11, 2): print(num)
for num in range(1, 10, 2): print(num)
for num in range(2, 11, 2): print(num)
Similar Resources on Wayground
10 questions
SLR 8 - Basic Programming Concepts - Part Two

Quiz
•
8th Grade
10 questions
Викторина по Python (Урок 3-4)

Quiz
•
5th - 11th Grade
10 questions
Python - Printing, Variables and Syntax

Quiz
•
8th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
10 questions
Basic Python Programming_Class VIII

Quiz
•
8th Grade
10 questions
CLASS 8 CODING

Quiz
•
8th Grade
10 questions
BASIC 256

Quiz
•
6th - 8th Grade
10 questions
Programming Basics Basics

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade