python(strings)

python(strings)

11th Grade

10 Qs

quiz-placeholder

Similar activities

Python Ch. 1 & 2

Python Ch. 1 & 2

9th - 12th Grade

10 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

11th - 12th Grade

15 Qs

10 CS // Pseudocode

10 CS // Pseudocode

9th - 11th Grade

10 Qs

Website Development 1 - Recall

Website Development 1 - Recall

11th Grade

10 Qs

Java Strings

Java Strings

9th - 12th Grade

12 Qs

Website Development - Lesson 2 Retrieval

Website Development - Lesson 2 Retrieval

11th Grade

10 Qs

Programming Basics Basics

Programming Basics Basics

8th Grade - University

10 Qs

Python Variables

Python Variables

7th - 12th Grade

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