python(strings)

python(strings)

11th Grade

10 Qs

quiz-placeholder

Similar activities

CWA Java

CWA Java

10th - 12th Grade

13 Qs

Python Strings

Python Strings

11th Grade

8 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

Python Input/Output

Python Input/Output

9th - 12th Grade

10 Qs

Programming Basics Basics

Programming Basics Basics

8th Grade - University

10 Qs

String Manipulation

String Manipulation

9th - 11th Grade

13 Qs

STRING

STRING

11th - 12th Grade

13 Qs

Unit 7 quiz on strings AP CSP

Unit 7 quiz on strings AP CSP

9th - 12th Grade

14 Qs

python(strings)

python(strings)

Assessment

Quiz

Computers

11th Grade

Hard

Created by

PRIYANSHU XI-A

Used 49+ times

FREE Resource

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

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?