
strings

Quiz
•
Computers
•
11th Grade
•
Hard
Divya Ghalagi
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
predict the output:
str="computer student"
print(len(str)
13
14
15
16
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of the following?
print('abcefd'.replace('cd','12'))
ablef2
abcefd
ablefd
abl2ed2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
given a string str="Togetherwithpython" what is the output of str.count("t") ?
3
2
none
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of the following code?
exam="rachana Sagar"
print("%s" %exam[4:8])
Sagar
anas
ana
Ra
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
suppose str="\t\tBookworld\n",what is str.strip()?
\t\tBookWorld\n
\t\tBookWorld
\t\tBookWORLD\n
BookWorld
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print('together with python 11',isalnum()). predict the output
True
False
None
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print('ccdcddcd'.find('c'))
4
0
Error
True
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Викторина по Python (Урок 1-2)

Quiz
•
5th - 11th Grade
15 questions
Python Fundamentals Quiz

Quiz
•
11th Grade
15 questions
CSE_CodeHS_intro_python_unit_3_5

Quiz
•
9th - 12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
10 questions
KS3 GCSE Computer Science (Programming / Python)

Quiz
•
7th - 11th Grade
12 questions
CS Python Fundamentals Quiz 2 Review & Practice

Quiz
•
9th - 12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade