What is the output of this code?
my_name = "Sandy"
print(my_name[2])
LO13 Lesson 7
Quiz
•
Computers
•
10th Grade
•
Medium
Samantha Cassia
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
my_name = "Sandy"
print(my_name[2])
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
my_name = "Sandy"
print(my_name[-2])
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
my_name = "Sandy"
print(my_name[0:5])
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
my_name = "Sandy"
print(my_name[:])
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
my_name = "Sandy"
print(my_name[:5])
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
my_name = "Sandy"
print(my_name[1:4])
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The len() method in the below example is used to
find the length of a list.
compare two integers.
find the length of a string.
find the length of a program.
10 questions
Python: Functions and Parameters
Quiz
•
9th - 12th Grade
12 questions
Project-Stem Unit 1 python coding
Quiz
•
9th - 12th Grade
12 questions
Python Programming Basics
Quiz
•
7th - 11th Grade
12 questions
Java Strings
Quiz
•
9th - 12th Grade
12 questions
N5 SDD - Python input and output
Quiz
•
7th - 11th Grade
11 questions
J277 Programming - Data Types
Quiz
•
9th - 11th Grade
15 questions
Python Casting and Input
Quiz
•
8th - 11th Grade
10 questions
KS4 Programming Techniques (1)
Quiz
•
8th - 10th 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
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
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