Search Header Logo

Test12

Authored by Rares Hampi

Information Technology (IT)

9th - 12th Grade

Used 5+ times

Test12
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of 5 | 2?

7

6

3

1

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of ~0?

0

-1

1

Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of this code?

[1, 2, 3]

[1, 2, 3, 4]

Error

None

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output?

True

False

Error

"False"

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator clears the lowest set bit in an integer x?

x & (x - 1)

x | (x - 1)

x ^ x

~x

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of:

abc

cba

bca

acb

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does dict.get("x", 0) do?

Raises KeyError if "x" not found

Returns 0 if "x" not found

Returns "x"

Adds "x" to the dict

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?