String Manipulation in Python RK Quiz 7

String Manipulation in Python RK Quiz 7

11th Grade

40 Qs

quiz-placeholder

Similar activities

SKT5 : Bab 3 : c) Standard Library, Subaturcara, Tatasusunan

SKT5 : Bab 3 : c) Standard Library, Subaturcara, Tatasusunan

10th - 12th Grade

35 Qs

Python Test 2

Python Test 2

7th - 12th Grade

44 Qs

Python Test

Python Test

8th - 12th Grade

40 Qs

Python

Python

11th Grade

40 Qs

TUPLES IN PYTHON VAISHALI LAMBA

TUPLES IN PYTHON VAISHALI LAMBA

11th - 12th Grade

43 Qs

Python Basics and Syntax

Python Basics and Syntax

9th - 11th Grade

35 Qs

Class 11Loops and Conditional Formatting

Class 11Loops and Conditional Formatting

11th - 12th Grade

41 Qs

PLTW CSP Fall Exam 2024

PLTW CSP Fall Exam 2024

9th - 12th Grade

38 Qs

String Manipulation in Python RK Quiz 7

String Manipulation in Python RK Quiz 7

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Reshma Kamthe

Used 7+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?