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
52 questions
WEB ЖОБАЛАУ-10 СЫНЫП

Quiz
•
11th Grade
50 questions
Python_ Aplicações Informáticas_AEPAP

Quiz
•
11th Grade
51 questions
Python_Programming

Quiz
•
10th - 12th Grade
50 questions
Tryout Bag. 3.1

Quiz
•
9th - 12th Grade
48 questions
STARTER - 1D Array Test

Quiz
•
9th - 12th Grade
53 questions
Python повторение

Quiz
•
11th Grade
50 questions
CS1: Unit 1-4 Review

Quiz
•
9th - 12th Grade
55 questions
ÔN TẬP GIỮA KỲ II

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade