python(strings)

Quiz
•
Computers
•
11th Grade
•
Hard
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
Similar Resources on Wayground
10 questions
APCSA - Unit 3

Quiz
•
9th - 12th Grade
12 questions
Programming - Output

Quiz
•
KG - 12th Grade
10 questions
Python Workshop Week 1 Review

Quiz
•
9th - 12th Grade
15 questions
Python Programming Random Quiz

Quiz
•
11th Grade
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
10 questions
Quiz Tipe Data

Quiz
•
9th - 12th Grade
10 questions
Python Review - Functions

Quiz
•
9th - 12th Grade
15 questions
Python

Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade