Search Header Logo

WORKSHEET ON TEXT HANDLING IN PYTHON - 3

Authored by RANJITA SARKAR

Computers

11th - 12th Grade

Used 1+ times

WORKSHEET ON TEXT HANDLING IN PYTHON - 3
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

30 sec • 1 pt

What will be the output of the following Python code?print('{0:.2}'.format(1/3))

a) 0.333333

b) 0.33

c) 0.333333:.2

d) Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print('{0:.2%}'.format(1/3))

a) 0.33

b) 0.33%

c) 33.33%

d) 33%

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print('ab12'.isalnum())

a) True

b) False

c) None

d) Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print('ab,12'.isalnum())

a) True

b) False

c) None

d) Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print('ab'.isalpha())

a) True

b) False

c) None

d) Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print('a B'.isalpha())

a) True

b) False

c) None

d) Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?print('0xa'.isdigit())

a) True

b) False

c) None

d) 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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?