Python Day 2

Python Day 2

10th Grade

18 Qs

quiz-placeholder

Similar activities

10 Psychology Statistics

10 Psychology Statistics

10th Grade

16 Qs

Interpreting Graphs

Interpreting Graphs

9th - 11th Grade

15 Qs

Learn About Snakes

Learn About Snakes

KG - 12th Grade

15 Qs

Paper 2 - Predicted Code

Paper 2 - Predicted Code

10th Grade

20 Qs

Accuracy, Precision & Percent Error

Accuracy, Precision & Percent Error

9th - 10th Grade

16 Qs

Specific Heat

Specific Heat

9th - 10th Grade

15 Qs

Tools of Environmental Science

Tools of Environmental Science

9th - 12th Grade

20 Qs

Variables in RobotC

Variables in RobotC

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?