Search Header Logo

Operators

Authored by MOHAMED A

Computers

University

Used 3+ times

Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output of the given code :

a = 0

a += 2

print(a)

4

0

2

error

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Select output of the given code :

print(3//4)

0

1.5

0.4

1

3.

MULTIPLE CHOICE QUESTION

20 sec • 3 pts

What is the output of the given code :

print(3**4)

27

81

36

error

4.

MULTIPLE SELECT QUESTION

20 sec • 5 pts

Which of the following are valid variable names ?

_foo

bank - balance

3_num

num_students

5.

MULTIPLE CHOICE QUESTION

20 sec • 3 pts

a = 50
b = "60"
print(a<b)

True

False

Error

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

a = 30
b = 21
print(a>b)

true

false

Error

7.

MULTIPLE CHOICE QUESTION

10 sec • 4 pts

a = 30
b = 30
print(a>=b)

false

true

error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?