python(strings)

Quiz
•
Computers
•
11th Grade
•
Hard
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
Similar Resources on Wayground
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
10 questions
Arrays

Quiz
•
10th - 12th Grade
10 questions
MOAC Excel 2016 Lesson 03

Quiz
•
8th - 12th Grade
14 questions
PYTHON DICTIONARIES

Quiz
•
11th Grade
10 questions
Python Review - Functions

Quiz
•
9th - 12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
13 questions
String Manipulation

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade