Operators in Python

1

minute

00

second

What does the '+' operator do in Python?

Text

A

Subtracts two numbers

B

Adds two numbers

C

Multiplies two numbers

D

Divides two numbers

1 / 12
volgende
Slide 1: Quizvraag
newEditorInformatics PracticesSecondary Education

In deze les zitten 12 slides, met interactieve quizzen.

Dit is niet okΓ©

Onderdelen in deze les

1

minute

00

second

What does the '+' operator do in Python?

Text

A

Subtracts two numbers

B

Adds two numbers

C

Multiplies two numbers

D

Divides two numbers

Which operator checks equality in Python?

A

!=

B

<

C

>

D

==

What is the result of 5 > 3?

A

False

B

None

C

0

D

True

Which operator performs logical AND?

A

or

B

not

C

and

D

&&

What does '!=' mean in Python?

A

Not equal to

B

Equal to

C

Less than

D

Greater than

Which operator multiplies in Python?

A

x

B

/

C

*

D

#

What is the result of 2 + 2?

A

22

B

5

C

4

D

2

What does 'or' do in Python?

A

Bitwise AND

B

Logical disjunction

C

Comparison

D

Logical conjunction

Which operator is for floor division?

A

//

B

%

C

/

D

**

What does '<' represent in Python?

A

Equal to

B

Less than

C

Greater than

D

Not equal to

What is the output of 10 % 3?

A

1

B

3

C

0

D

10

Which operator is used for exponentiation?

A

^

B

sqrt

C

**

D

*