python(strings)
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
PRIYANSHU XI-A
Used 52+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
14 questions
ITGS - IT Systems (Hardware)
Quiz
•
10th - 12th Grade
10 questions
TỪ BÀI TOÁN ĐẾN CHƯƠNG TRÌNH
Quiz
•
11th Grade
13 questions
ICT and Retail Industry
Quiz
•
8th - 12th Grade
10 questions
Computer Aided Design
Quiz
•
11th Grade
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
Podstawy Pythona
Quiz
•
9th - 12th Grade
11 questions
Quiz 1 - Hardware and Software
Quiz
•
9th - 12th Grade
10 questions
IT Quiz
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
