Indexing and Slicing in Python

Quiz
•
Computers
•
4th Grade - University
•
Medium
Opuere Falabi
Used 61+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
word = "hello"
print(word)
The result will be ___________
result
"hello"
word
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
word = "hello"
word[0]
What is the output of the code above?
"h"
"e"
"l"
"o"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Run the code below
word = "hello"
word[3]
el'
'lo'
h
'l'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
alpha = 'abcdef'
alpha[0:3]
'abc'
'abcd'
'abcde'
none
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
alpha = 'abcdef'
alpha[0:4]
'ab'
'abc'
'abcd'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
alpha = 'abcdef'
alpha[2:4]
'cd'
b'cd'
'abcd'
'cde'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
alpha = 'abcdef'
alpha[2:]
'cdf'
'ef'
'def'
'cdef'
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Pascal Assessment

Quiz
•
3rd - 4th Grade
10 questions
Study Guide - More Advanced Java

Quiz
•
11th - 12th Grade
15 questions
Javascript

Quiz
•
10th - 12th Grade
10 questions
Mastering Python String Techniques

Quiz
•
9th - 12th Grade
14 questions
Python Basics - Year 8

Quiz
•
7th - 9th Grade
10 questions
String and Math Methods AP CSA

Quiz
•
10th Grade
7 questions
Python Data Types and Arithmetic Quiz

Quiz
•
8th Grade
10 questions
Python

Quiz
•
7th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade