Which of the following expressions will result in “crying”?
Let sentence = "There's no crying in baseball"
Strings, Strings, Strings
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Jennifer Brockman
Used 11+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following expressions will result in “crying”?
Let sentence = "There's no crying in baseball"
print(sentence[10:16])
print(sentence[11:17])
print(sentence[11:16])
print(sentence[10:17])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following expressions will print “phone”?
Let sentence = "E.T. phone home"
print(sentence[4:9])
print(sentence[4:10])
print(sentence[5:9])
print(sentence[5:10])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following expressions will print “N”?
word = "MONEY"
print(word[3])
print(word[2])
print(word[4])
print(word[1])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following string operation is illegal? Assume that word = "goose".
word[0] = "M"
word = word[2] + word[-1]
word = "moose"
word = word + "aloose"
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write 2 expressions that will each get the last character in a string. Assume that word is a string variable. Separate the commands with "and".
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the program?
This program will cause an error.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following if statements checks if the string variable quote contains the word “big”?
24 questions
Python 7. Arrays and Strings
Quiz
•
9th Grade
21 questions
Python Strings
Quiz
•
11th Grade
20 questions
Python Basics Review (TSK)
Quiz
•
9th - 12th Grade
20 questions
Python Lists and Strings
Quiz
•
9th Grade
25 questions
Program Development - Python: Strings
Quiz
•
9th - 10th Grade
20 questions
GCSE Working with strings
Quiz
•
9th Grade
20 questions
Python String
Quiz
•
12th Grade
20 questions
Control Statements in Python
Quiz
•
11th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University