
Strings, Strings, Strings
Authored by Jennifer Brockman
Computers
9th - 12th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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”?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
22 questions
Programming Review
Quiz
•
9th - 12th Grade
20 questions
Keyboarding Skills Review
Quiz
•
10th - 12th Grade
18 questions
SEMI-Grier Unit 3.01-3.03
Quiz
•
9th - 12th Grade
20 questions
Key Applications 2
Quiz
•
9th - 12th Grade
20 questions
Spreadsheet Overview (Basic)
Quiz
•
9th - 11th Grade
19 questions
Computer Languages
Quiz
•
12th Grade
19 questions
Unit 1 Digital Information Review
Quiz
•
9th - 12th Grade
20 questions
MSEXCEL QUIZ NO. 2
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade