Indexing and Slicing in Python

Indexing and Slicing in Python

4th Grade - University

10 Qs

quiz-placeholder

Similar activities

Mastering Python String Techniques

Mastering Python String Techniques

9th - 12th Grade

10 Qs

Python Basics - Year 8

Python Basics - Year 8

7th - 9th Grade

14 Qs

Character Sets - ASCII

Character Sets - ASCII

10th Grade

15 Qs

String and Math Methods AP CSA

String and Math Methods AP CSA

10th Grade

10 Qs

Python Data Types and Arithmetic Quiz

Python Data Types and Arithmetic Quiz

8th Grade

7 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python Basic

Python Basic

6th - 8th Grade

10 Qs

Python - Y8 lesson 1

Python - Y8 lesson 1

8th Grade

12 Qs

Indexing and Slicing in Python

Indexing and Slicing in Python

Assessment

Quiz

Computers

4th Grade - University

Medium

Created by

Opuere Falabi

Used 59+ 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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?