Search Header Logo

String Manipulation in Python RK Quiz 7

Authored by Reshma Kamthe

Computers

11th Grade

Used 7+ times

String Manipulation in Python RK Quiz 7
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output when the following Python code is executed?

a = 3

b = '5'

c = '2'

print(a * b + c)

17

352

5552

Error message

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the content of variable c after the following Python code is executed?

a = 34

b = 0.56 - 7.5j

c = a + b

34.56

34.56 - 7.5j

27.06

Error message

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code?

print('Hello' + "world!")

Helloworld!

Hello world!

'Hello' "world!"

Error message

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What are the names of the two types of mode that are used in Python? Select two.

Interactive mode

Scratch mode

Imperial mode

Script mode

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

a=[1,2,3]

b=a.append(4)

print(a)

print(b)

[1,2,3,4]

[1,2,3,4]

[1, 2, 3, 4]

None

Syntax error

[1,2,3]

[1,2,3,4]

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the code given below?


message="welcome to Mysore"

word=message[-7:]

if(word=="mysore"):

print("got it")

else:

message=message[3:14]

print(message)

got it

lcome to Myso

lcome to Mys

come to Myso

come to Mys

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

changing the value of a variable

reassign
comment
modulo
boolean

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?