Python Day 2

Python Day 2

10th Grade

18 Qs

quiz-placeholder

Similar activities

Graphing Relationships

Graphing Relationships

10th Grade - University

15 Qs

Acid Base Salt Quiz

Acid Base Salt Quiz

10th Grade

20 Qs

How science works keywords

How science works keywords

9th - 11th Grade

19 Qs

IB SEHS Topic 6.1 Statistical Analysis

IB SEHS Topic 6.1 Statistical Analysis

10th - 12th Grade

14 Qs

Acids, Bases and Salts

Acids, Bases and Salts

10th Grade

15 Qs

Snakes

Snakes

5th Grade - University

15 Qs

Invasive Species Test March 13 2025

Invasive Species Test March 13 2025

5th Grade - University

13 Qs

ENV SCI Ch2 review

ENV SCI Ch2 review

9th - 12th Grade

15 Qs

Python Day 2

Python Day 2

Assessment

Quiz

Science

10th Grade

Medium

Created by

Nysa Pierre

Used 2+ times

FREE Resource

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()

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?