
Ch. 11 Exam Review
Quiz
•
Information Technology (IT)
•
8th Grade
•
Easy
Ashley Brown
Used 50+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes the index value used to access the very last character in a string?
One less than the length of the string
One more than the length of the string
Equal to the length of the string
Equal to the length of the string divided by two
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is displayed on the output screen when the following code is run? value = "TRUSTWORTHY" print(value[1])
U
T
R
IndexError: string index out of range
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is displayed on the output screen when the following code is run? value = "LOYAL" print(value[5])
IndexError: string index out of range
Y
A
L
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is displayed to the screen when the following code is run? value = "HELPFUL" value = "FRIENDLY" print(value)
HELPFUL
FRIENDLY
Nothing is shown at all
Error: strings are immutable and can't be changed
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of calling the len() function and passing in a string?
To chop off the string after a certain length
To extend the string to a specific length
To return the number of characters in the string
This is an error; len() will not work with strings at all
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with the following statement? print("Yogi Berra said \"A nickle ain't worth a dime anymore.\"")
Nothing is wrong; this quote will print to the screen normally
The double quotes will be silently ignored and the remainder of the text printed to the screen without quotes
Runtime exception - the quote does not match the person that actually said it
Syntax error - you can't directly place a double quote character inside a double-quoted string
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What escape sequence is used to embed a new line character within a string value?
\n
\t
%newline
\CR\
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
24 questions
Тест з програмування в Lazarus
Quiz
•
8th Grade
25 questions
Informatika Kelas VIII No 1-20
Quiz
•
8th Grade
30 questions
Exploring Computer Hardware Basics
Quiz
•
8th Grade
21 questions
квиз Компьютерная грамотность
Quiz
•
6th - 8th Grade
30 questions
Grade 8 Arduino Assessment
Quiz
•
8th Grade
23 questions
DBMS - Chapter 2 -MS Access Quiz
Quiz
•
8th Grade
23 questions
Scratch Programming Fundamentals Quiz
Quiz
•
8th Grade
23 questions
Cybersecurity Quiz for 8th Graders
Quiz
•
8th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
20 questions
Figurative Language Review
Quiz
•
8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
22 questions
Newton's Laws of Motion
Lesson
•
8th Grade
24 questions
3.1 Parallel lines cut by a transversal
Quiz
•
8th Grade
12 questions
Phases of Matter
Quiz
•
8th Grade