Search Header Logo

PYTHON_MODULE3

Authored by Sumathi K

Education

Professional Development

Used 1+ times

PYTHON_MODULE3
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

45 sec • 1 pt

1. What will be the output of above Python code?

str1="6/4"

print("str1")

1

6/4

1.5

str1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will result in an error?

str1="python"

print(str1[2])

str1[1]="x"

print(str1[0:9])

Both (b) and (c)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of below Python code?

str1="Information"

print(str1[2:8])

format

formatio

orma

ormat

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of below Python code?

str1="poWer"

str1.upper()

print(str1)

POWER

Power

power

poWer

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

str1="Stack of books"
print(len(str1))

13

14

15

16

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String can be a _________.

Letter

Digit

Whitespace & Symbol

All of the above 

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A string can be assign by enclosing ______ quote.

Single

Double

Triple

All of the above

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?