Strings in python - Test

Quiz
•
Computers
•
11th Grade
•
Hard
Sangeetha John
Used 90+ times
FREE Resource
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
Similar Resources on Wayground
50 questions
Quiz Pengembangan Perangkat Lunak

Quiz
•
10th Grade - University
50 questions
DPPL sumatif

Quiz
•
10th Grade - University
50 questions
KOD ARAHAN

Quiz
•
9th - 12th Grade
49 questions
Цикл For

Quiz
•
11th Grade
50 questions
BASIC JAVA

Quiz
•
11th Grade
55 questions
Science & Technology

Quiz
•
8th - 12th Grade
46 questions
TES SUMATIF TENGAH SEMESTER

Quiz
•
9th - 12th Grade
49 questions
Guess the Film - Multiple Choice Quiz

Quiz
•
6th Grade - University
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