python(strings)

python(strings)

11th Grade

10 Qs

quiz-placeholder

Similar activities

Simple Easy Basic Lua Quiz

Simple Easy Basic Lua Quiz

4th Grade - Professional Development

10 Qs

Code.org Unit 8

Code.org Unit 8

10th - 12th Grade

12 Qs

Programming Quiz 1

Programming Quiz 1

11th Grade

11 Qs

Java Variables, Input and Output

Java Variables, Input and Output

10th - 12th Grade

15 Qs

Python String Data Structure

Python String Data Structure

10th - 12th Grade

12 Qs

Quiz sobre a aula passada!

Quiz sobre a aula passada!

9th - 12th Grade

9 Qs

CPro-Unit6-String

CPro-Unit6-String

10th Grade - University

6 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

python(strings)

python(strings)

Assessment

Quiz

Computers

11th Grade

Hard

Created by

PRIYANSHU XI-A

Used 50+ 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?