Python Programming Worksheet

Python Programming Worksheet

2nd Grade

21 Qs

quiz-placeholder

Similar activities

CodeMonkey

CodeMonkey

1st Grade - Professional Development

20 Qs

Module 4: Best Match

Module 4: Best Match

1st - 4th Grade

20 Qs

GRADE 2 ACTIVITIES USING KEYBOARD

GRADE 2 ACTIVITIES USING KEYBOARD

2nd Grade

20 Qs

Scratch - Conditional Statement

Scratch - Conditional Statement

1st - 5th Grade

25 Qs

FS Key Computer Lab Rules Refresher

FS Key Computer Lab Rules Refresher

2nd - 5th Grade

16 Qs

MOUSE-AN INPUT DEVICE

MOUSE-AN INPUT DEVICE

2nd Grade

18 Qs

Microsoft 98-365 Server Admin Part 2

Microsoft 98-365 Server Admin Part 2

KG - Professional Development

22 Qs

Basic 2

Basic 2

2nd Grade

20 Qs

Python Programming Worksheet

Python Programming Worksheet

Assessment

Quiz

Computers

2nd Grade

Easy

Created by

Khoa Nguyen Hoang Dang

Used 2+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the "or" operator used in a "if" statement?

It checks if both conditions are true

It checks if either of two conditions is true

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

When the program is run, what will happen?

5.5

a//b

2

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be displayed when you run the program?

20

1.25

Syntax error

9

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the "and" operator used in a "if" statement?

It checks if either of two conditions is true

It checks if both conditions are true

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do we change variable x from float to integer?

By using the int() function

By using the float() function

By using the str() function

By using the bool() function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Python "if" statement's purpose?

to display data on screen

to get user input

To decide what to do and run code conditionally

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement checks if a number is even?

if number mod 2 == 0:

if number % 2 == 0:

if number // 2 == 0:

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?