Python - MP2 Test

Python - MP2 Test

10th Grade

14 Qs

quiz-placeholder

Similar activities

Python Code Quiz

Python Code Quiz

10th Grade

10 Qs

Programming Constructs_Y10

Programming Constructs_Y10

9th - 12th Grade

10 Qs

Python End of Topic Quiz

Python End of Topic Quiz

8th Grade - University

15 Qs

Python User Input Quiz

Python User Input Quiz

6th Grade - University

10 Qs

Kisi Kisi Asesment Formatif Pemrograman Terstruktur

Kisi Kisi Asesment Formatif Pemrograman Terstruktur

10th Grade

16 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

XI 1 Ulangan Harian 1 INFORMATIKA Bahasa C

XI 1 Ulangan Harian 1 INFORMATIKA Bahasa C

10th Grade

10 Qs

Python - MP2 Test

Python - MP2 Test

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Allyson Smith

Used 5+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to take user input in Python and store it in a variable named `name`?

`name = input("Enter your name: ")`

`input("Enter your name: ") = name`

`name = input()`

`input() = name`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid conditional statement in Python?

if x = 5:

if x == 5:

if (x == 5)

if x := 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

`Smaller`

`Greater`

`Error`

`None`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the following loop execute?

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

1 2 3 4

0 1 2 3 4

1 2 3 4 5

0 1 2 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

15

5

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of an extended for loop in Python?

`for i in range(10):`

`for i in range(0, 10, 2):`

`for i in [1, 2, 3]:`

`for i in "hello":`

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?