Strings, Strings, Strings

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Jennifer Brockman
Used 12+ 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”?
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
JAVA string

Quiz
•
12th Grade
20 questions
3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023

Quiz
•
12th Grade
19 questions
Java Basic 1 - Quiz

Quiz
•
8th Grade - University
22 questions
Strings in python -1

Quiz
•
11th Grade
20 questions
Python Basics ;)

Quiz
•
11th Grade
23 questions
GCSE Python Programming Basics

Quiz
•
11th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
18 questions
Coding Unit 2 Review

Quiz
•
9th - 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
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade