Python Day 6

Python Day 6

University

5 Qs

quiz-placeholder

Similar activities

UNIT-1 PYTHON BASICS

UNIT-1 PYTHON BASICS

University

10 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

Python For

Python For

University

10 Qs

Quiz 2

Quiz 2

University

10 Qs

Java Static

Java Static

University

10 Qs

Python

Python

University

10 Qs

Java Control Flow statements

Java Control Flow statements

University

10 Qs

Java Loops

Java Loops

University

10 Qs

Python Day 6

Python Day 6

Assessment

Quiz

Computers

University

Hard

Created by

Ninitha C

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct output of the following code. for i in range(10,15): print(i)
10 11 12 13 14 15
10 11 12 13 14
11 12 13 14 15
11 12 13 14

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following:- x = "123" for i in x: print("a")
x 1 a
1 2 3
x 1 2 3
a a a

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 'abcd' for i in range(len(x)): print(i)
1234

0123

abcd
error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Each repetition is called ... of loop
counter
iteration
number of loops
starting value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(1,100): if i%2!=0: print(i) Output?
prints all even numbers
prints all odd numbers
prints all even,odd numbers