python(strings)

python(strings)

11th Grade

10 Qs

quiz-placeholder

Similar activities

Peer-to-peer & Client-server

Peer-to-peer & Client-server

11th Grade

10 Qs

Do you know alot about Roblox?

Do you know alot about Roblox?

2nd Grade - University

10 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

Computing figures

Computing figures

4th - 12th Grade

14 Qs

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

EmTech Q2 Post Test 2

EmTech Q2 Post Test 2

11th Grade

15 Qs

Keyboarding Terms

Keyboarding Terms

9th - 12th Grade

10 Qs

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

python(strings)

python(strings)

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

PRIYANSHU XI-A

Used 52+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

example = "helle"

print(example.rfind("e") )

-4

4

3

1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

example="helloworld"

print(example[::-1].startswith("d"))

dlrowolleh

True

c) -1

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the “hello” +1+2+3?

hello123

hello

Error

hello6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

print("D", end = ' ')

print("C", end = ' ')

print("B", end = ' ')

print("A", end = ' ')

DCBA

A,B,C,D

D C B A

D

C

B

A

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Say s=”hello” what will be the return value of type(s)?

STRING

bool

str

String

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is “Hello”.replace(“l”, “e”)?

Heeeo

Heelo

Heleo

none

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

print("abcdef".find("cd") == "cd" in "abcdef")

True

False

error

none

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?