Search Header Logo

Python Day 2

Authored by Nysa Pierre

Science

10th Grade

Used 2+ times

Python Day 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of a conditional statement?

To perform arithmetic operations

To assign values to variables

To compare two values

To execute code based on a condition

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is wrong with the following code?



There is no space after the word print.

There are no speech marks “ “ around the text in the brackets.

Print should start with a big P

There should be no brackets ( ).

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Look at the flowchart below. What is the output for Price?

13

10

12

3

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following character is used to give single-line comments in Python?

a) //

b) #

c) !

d) /*

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is printed?

21

a * b

multiply (3, 7)

12

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is printed?

2 4 6

1 2 3 4 5 6 7 8

0 2 4 6 8

4 6 8

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to convert user input to an integer in Python?

int_input()

input()

int(input())

read_int()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?