Python quiz 2

Python quiz 2

1st Grade

20 Qs

quiz-placeholder

Similar activities

ONLINE RETEACH_REVIEWER MAPEH 1

ONLINE RETEACH_REVIEWER MAPEH 1

1st - 5th Grade

25 Qs

Quizz ELITE de Noël

Quizz ELITE de Noël

1st - 5th Grade

20 Qs

Full Stack through java Quiz 18

Full Stack through java Quiz 18

1st Grade

20 Qs

WNBA Facts

WNBA Facts

KG - 10th Grade

23 Qs

Full Stack Quiz 16

Full Stack Quiz 16

1st Grade

20 Qs

Course d'Orientation

Course d'Orientation

1st Grade

20 Qs

Lớp 5 - Tuần 1

Lớp 5 - Tuần 1

1st - 5th Grade

15 Qs

SLOT KEBAJIKAN ( MENTAL HEALTH )

SLOT KEBAJIKAN ( MENTAL HEALTH )

1st Grade

20 Qs

Python quiz 2

Python quiz 2

Assessment

Quiz

Physical Ed

1st Grade

Medium

Created by

Gnaneshwar Reddy

Used 12+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Why do we need loops in programming?

For avoiding repeated code.

For iterations.

For traversals.

All are correct.

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do we differentiate the body of the loop from the rest of the code?

Writing loop above.

Using proper indentation.

All are correct.

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is a loop in python?

While

Do-while

If-else

Foreach

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following creates iterable elements?

If-else

Range

Count

None of these.

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Find the count of even numbers in the output of the code given below?

# Code snippet starts

 

for i in range(23,102,25):

    print(i, end = “-“)

    

print(“0″,end=” “)

2

1

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of the code given below?

# Code snippet starts

 

val = list(range(132,78,-12))

print(val)

 

# Code snippet ends

Range Error

[132, 120, 108, 96, 84]

Compilation error

None of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Find the output of the code given below?

# Code snippet starts

 

val = 500

 

while val>=230:

    val = val*2//7 

    

print(val)

 

# Code snippet ends

147

142

148

250

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?