Python Arithmetic Operations and Predefined Functions

Python Arithmetic Operations and Predefined Functions

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

AP CSP Unit 7: Parameters, Returns, and Libraries

AP CSP Unit 7: Parameters, Returns, and Libraries

9th - 12th Grade

26 Qs

CHAPTER - 4  Python libraries

CHAPTER - 4 Python libraries

12th Grade

27 Qs

Java Swing/AWT Graphics

Java Swing/AWT Graphics

9th - 12th Grade

27 Qs

REVIEW MATERI SPREADSHEET PTS GENAP

REVIEW MATERI SPREADSHEET PTS GENAP

10th Grade

25 Qs

Java GUI and more

Java GUI and more

9th Grade

30 Qs

JavaScript Basics & Graphics Test

JavaScript Basics & Graphics Test

9th - 12th Grade

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

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?