
Strings in python - Test
Authored by Sangeetha John
Computers
11th Grade
Used 95+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What letter will be printed on the screen after running this code:
e
x
t
Nothing prints
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the operator can be used in Strings?
+
*
Both of the above
None of the above
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Python accepts single ('), double (") and triple (''' or """) quotes to denote strings. Which of the following is NOT acceptable Python syntax?
print('Hello World')
print("Hello World")
print('Hello World")
print(""'Hello World'"")
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statement?
print("P" not in "APCSP")
True
False
Error
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statement?
print("A" in "APCSP")
True
False
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
For strings, the + operator represents
Concatenation
Addition
Appending
Recantation
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
data = "No Way!" The expression len(data) evaluates to:
7
9
8
6
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
45 questions
PAT Informatika Genap
Quiz
•
9th - 12th Grade
47 questions
Ulangkaji ASK T2 Bab 2 Algoritma
Quiz
•
1st - 12th Grade
52 questions
WEB ЖОБАЛАУ-10 СЫНЫП
Quiz
•
11th Grade
52 questions
Latihan ASAS GASAL 2425
Quiz
•
9th - 12th Grade
47 questions
IT Fundamentals Chapter 6
Quiz
•
8th - 12th Grade
51 questions
Testout IT Fundamentals Chapter 3
Quiz
•
11th - 12th Grade
46 questions
TIN HOC LƠP 4 HK1
Quiz
•
1st Grade - University
49 questions
Ôn tập trắc nghiệm tin học 11 HK2_2021
Quiz
•
11th 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