Python Arithmetic Operations and Predefined Functions

Python Arithmetic Operations and Predefined Functions

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Understanding Code

Understanding Code

11th Grade

30 Qs

Intro to CS FINAL

Intro to CS FINAL

11th Grade

25 Qs

Penilaian Harian Bahasa Kotlin SMT 1 2023

Penilaian Harian Bahasa Kotlin SMT 1 2023

11th Grade

25 Qs

JavaScript Console & Graphics Review

JavaScript Console & Graphics Review

9th - 12th Grade

25 Qs

แบบทดสอบคำสั่งเลือกทำตามเงื่อนไข

แบบทดสอบคำสั่งเลือกทำตามเงื่อนไข

KG - 12th Grade

25 Qs

Python Basics 3

Python Basics 3

9th - 12th Grade

25 Qs

Ondas eletromagnéticas

Ondas eletromagnéticas

7th - 9th Grade

25 Qs

PRIMER LABORATORIO / II Serie

PRIMER LABORATORIO / II Serie

12th Grade

30 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?