Search Header Logo

Python IT T

Authored by PRAVEEN SHARMA

Professional Development

Professional Development

Used 1+ times

Python IT T
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression: 7 | 3?

4
7
3
10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators has the highest precedence in Python?

**

and

%

+

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression: 15 // 4 + 2?

3

5.75

5
6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what does the expression

not (True and False)

evaluate to?

False
None

ERROR

True

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about the expression 5 & 3?

The result of the expression 5 & 3 is 8.
The result of the expression 5 & 3 is 1.
The result of the expression 5 & 3 is 2.
The result of the expression 5 & 3 is 0.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following expression evaluate to:

'Hello' * 2 == 'HelloHello'

?

Type Error

Hello * 2 == 'Hello'
HelloHelloHello
True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given x = 5, which of the following is correct for x += 10?

x is now 10.
x is now 5.
x is now 20.
x is now 15.

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?

Discover more resources for Professional Development