python 2

python 2

12th Grade

15 Qs

quiz-placeholder

Similar activities

Magnetism and magnetic effect

Magnetism and magnetic effect

12th Grade

15 Qs

Work and Power Review

Work and Power Review

7th - 12th Grade

15 Qs

Horizontal Projectiles

Horizontal Projectiles

10th - 12th Grade

10 Qs

coulombs law

coulombs law

12th Grade

13 Qs

NCFE Physical Science Practice

NCFE Physical Science Practice

9th - 12th Grade

20 Qs

Scientific Notation and Metric Conversions Review

Scientific Notation and Metric Conversions Review

10th - 12th Grade

20 Qs

Using a Gyro Sensore

Using a Gyro Sensore

12th Grade

10 Qs

Newton's Law's

Newton's Law's

9th - 12th Grade

15 Qs

python 2

python 2

Assessment

Quiz

Physics

12th Grade

Hard

Created by

Basim Mb

Used 16+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can iterate over string

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can insert the new item into tuple

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image
What is the output of the following code?
0,1,2,3,4,5,6,7,8,9,10
0,1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9,10
1,2,3,4,5,6,7,8,9

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code will successfully print the value of exactly 5 times?
for x in range(0,4):
print(x)
for x in range(0,5):
print(x)
for x in range 5:
print(x)
for x in range[0,5]:
print(x)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
How many times will this loop run?
10
9
4
5

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image
How many times will 'hello' be printed using this code?
3
6
9
27

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
I want to print "Password matched" if the user enters the correct password, otherwise allow them to try again. What is wrong with the code above?
last line should be OUTSIDE the loop
wrong operator used
wrong password
for loop needed to be used

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?