Python Arithmetic Operations and Predefined Functions

Python Arithmetic Operations and Predefined Functions

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

1.2 Memory and storage

1.2 Memory and storage

11th Grade

25 Qs

Rec Quiz

Rec Quiz

10th Grade

25 Qs

Feb 20, 2025 AP CompSci - 1st Period

Feb 20, 2025 AP CompSci - 1st Period

12th Grade - University

25 Qs

CS API Test

CS API Test

12th Grade

27 Qs

AP Computer Science Unit 2

AP Computer Science Unit 2

11th - 12th Grade

26 Qs

P5.js Review - Part 2

P5.js Review - Part 2

10th Grade

26 Qs

CPP Mid Term SPOT test

CPP Mid Term SPOT test

5th Grade - University

25 Qs

JavaScript Basics & Graphics Test

JavaScript Basics & Graphics Test

9th - 12th Grade

25 Qs

Python Arithmetic Operations and Predefined Functions

Python Arithmetic Operations and Predefined Functions

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Joan Goldberg

Used 93+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is x?

x = 2**3

syntax error

6

8

2**3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is x?

x=5/2

syntax error

1

2

2.5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is x?

x = 5//2

syntax error

1

2

2.5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is x?

x = 5%2

syntax error

1

2

2.5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is x?

x = 5\2

syntax error

1

2

2.5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which python statement correctly finds the average of three numbers?

average = firstNum + secondNum + thirdNum / 3

average = firstNum + secondNum + thirdNum / (3)

average = (firstNum + secondNum + thirdNum) / 3

average = (firstNum + secondNum + thirdNum) // 3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the python operator %?

division

exponentiation

modulus

floor division

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?