Python Quiz : Loop

Python Quiz : Loop

Professional Development

13 Qs

quiz-placeholder

Similar activities

Moringa JavaScript Iteration

Moringa JavaScript Iteration

9th Grade - Professional Development

10 Qs

Tuples in Python

Tuples in Python

Professional Development

9 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

pyhthon condition statement

pyhthon condition statement

Professional Development

10 Qs

dataStructure

dataStructure

Professional Development

14 Qs

Python LIST

Python LIST

Professional Development

10 Qs

Jr cloud practitioner  (Python & BSM's)

Jr cloud practitioner (Python & BSM's)

Professional Development

10 Qs

Python Functions

Python Functions

Professional Development

10 Qs

Python Quiz : Loop

Python Quiz : Loop

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Ivy Professional School

Used 25+ times

FREE Resource

13 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • Ungraded

Full Name

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • Ungraded

Email ID

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • Ungraded

Student ID (Id No)

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is the correct code for creating a list of names?
Name_List = Apple, Banana, Grape, Apple, Banana, Banana
Name_List = ("Apple", "Banana", "Grape", "Apple", "Banana", "Banana")
Name_List = ["Apple", "Banana", "Grape", "Apple", "Banana", "Banana"]
Name_List = [Apple, Banana, Grape, Apple, Banana, Banana]

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

You are working on a program to process a list of numbers. Your goal is to print only the even numbers and skip the odd ones during the iteration. Which control statement is appropriate for achieving this in a Python loop?

continue

pass

break

skip

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What will be printed after running this FOR loop:

The number 6

The numbers 0 to 5

Error

The numbers 1 to 6

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What output will this code produce?

4

2

3

5

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?