python(strings)

python(strings)

11th Grade

10 Qs

quiz-placeholder

Similar activities

Printers

Printers

9th - 12th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

Quiz #2 ETEC 486 | Spr. 16

Quiz #2 ETEC 486 | Spr. 16

KG - University

10 Qs

HARD DISK DRIVE

HARD DISK DRIVE

11th - 12th Grade

10 Qs

Chapter 8 Week 1

Chapter 8 Week 1

9th - 12th Grade

11 Qs

System Software

System Software

11th Grade

10 Qs

Debugging Challenge 2

Debugging Challenge 2

7th - 12th Grade

15 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?