Arithmetic operator

Arithmetic operator

10th Grade

8 Qs

quiz-placeholder

Similar activities

Python   Inputs

Python Inputs

9th - 12th Grade

11 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Dasar Pemrograman C++

Dasar Pemrograman C++

10th Grade

10 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

Python L1 Quiz 4: Lists

Python L1 Quiz 4: Lists

1st - 12th Grade

10 Qs

Arithmetic operator

Arithmetic operator

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Teacher Lhadon

Used 7+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the ** operator?

modulo

floor division

exponentiation

integer division

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the modulo operator give us as the output?

quotient

remainder

decimal

answer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is common in all these three operators (/,%,//)?W

division

addition

subtraction

multiplication

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What would be the output from the below statement:

print((7%3)+3)

5

3

4

5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What would be the output from the following statement?

print(10**3-1000)

-700

1

2000

0

6.

FILL IN THE BLANK QUESTION

1 min • 2 pts

Write the output from the following statement:

print(45%10*5)

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which operator should be placed in the blank to get the given output?

print((19 _ 5)*2)

Output: 6

/

//

**

%

8.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Karma runs the following code but she gets error. Help Karma fix the error by rewriting the code in the correct syntax.

Karma's code:

print(x)**2+2