Strings in python - Test

Flashcard
•
Computers
•
11th Grade
•
Hard
Wayground 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
36 questions
Java Script TEST

Flashcard
•
12th Grade
42 questions
Get the Picture Chapter 6

Flashcard
•
12th Grade
37 questions
World War I

Flashcard
•
10th Grade
39 questions
ASK TINGKATAN 3 BAB 4 (4.2)

Flashcard
•
9th Grade
48 questions
Spanish Vocabulary Flashcards

Flashcard
•
10th Grade
37 questions
German 1 IK 1.1 Wer bin ich? German Greetings and Common Phrases

Flashcard
•
9th - 12th Grade
32 questions
Python For Loops

Flashcard
•
10th Grade
45 questions
APCSP Semester Review

Flashcard
•
8th - 9th Grade
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