Strings in python - Test
Quiz
•
Computers
•
11th Grade
•
Hard
Sangeetha John
Used 92+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
48 questions
Algorithms
Quiz
•
9th - 11th Grade
50 questions
Algoritmika 1.
Quiz
•
10th Grade - University
50 questions
SOAL MS WORD
Quiz
•
9th - 12th Grade
50 questions
Rich Content and Design Principles Quiz
Quiz
•
11th Grade
50 questions
DDPTJKT - Latihan Soal PTS Genap
Quiz
•
10th Grade - University
45 questions
Introduction to Typing
Quiz
•
7th - 12th Grade
50 questions
PH INFORMATIKA KELAS 9 BAB 1
Quiz
•
9th - 12th Grade
45 questions
X TKJ-INSTALASI SISTEM OPERASI
Quiz
•
1st Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
13 questions
Halloween Movie Trivia
Quiz
•
9th - 12th Grade
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
