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
51 questions
EINSTEIN 2ND PERIODICAL TEST

Quiz
•
9th Grade - University
50 questions
VBA SET 1 G

Quiz
•
9th - 12th Grade
50 questions
Assessment

Quiz
•
9th - 12th Grade
50 questions
Unit Review: Chapters 1-7

Quiz
•
9th - 12th Grade
55 questions
CS QUIZ

Quiz
•
11th Grade
51 questions
Computer Science 11

Quiz
•
11th Grade
51 questions
24-25 G11 EOS 1 review

Quiz
•
11th Grade
45 questions
រំឮកមេរៀនPython

Quiz
•
11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade