Strings in python - Test

Flashcard
•
Computers
•
11th Grade
•
Hard
Quizizz Content
Used 1+ times
FREE Resource
Student preview

50 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What letter will be printed on the screen after running this code:
Back
t
2.
FLASHCARD QUESTION
Front
Which of the operator can be used in Strings?
Back
Both of the above
3.
FLASHCARD QUESTION
Front
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'"")
Back
print('Hello World")
4.
FLASHCARD QUESTION
Front
What is printed by the following statement? print("P" not in "APCSP")
Back
False
5.
FLASHCARD QUESTION
Front
What is printed by the following statement? print("A" in "APCSP")
Back
True
6.
FLASHCARD QUESTION
Front
For strings, the + operator represents
Back
Concatenation
7.
FLASHCARD QUESTION
Front
What does the expression len(data) evaluate to when data = "No Way!"?
Back
7
Create a free account and access millions of resources
Similar Resources on Wayground
49 questions
ACP CS 1 December 2024 (Practice)

Flashcard
•
10th Grade
44 questions
HTML tags

Flashcard
•
9th - 12th Grade
42 questions
WEB DEV. 25 Exam Sample Questions

Flashcard
•
12th Grade
39 questions
021125 Project STEM Vocabulary and Concepts

Flashcard
•
9th - 12th Grade
48 questions
Python Review

Flashcard
•
University
47 questions
Basic Java with CodeHS

Flashcard
•
9th - 12th Grade
45 questions
APCSP Semester Review

Flashcard
•
8th - 9th Grade
41 questions
Computer Science Examination Paper A - Allowed Items

Flashcard
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade