Exam 3 - Intro to Computer Science

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/3

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:04 PM on 4/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

4 Terms

1
New cards

Based on this list what is the value of my_list[0]

  • my_list = [10, 20, 30, 40, 50]

  • 10

Explained

  • Python list indexing starts at 0, so the first element is at index 0.

2
New cards

Based on this list what is the value of my_list[-1]

  • my_list = [10, 20, 30, 40, 50]

  • 50

Explained

  • A negative index counts from the end of the list. -1 is the last element

3
New cards

Based on this list what is the value of my_list[1:3]

  • my_list = [10, 20, 30, 40, 50]

  • [20:30]

Explained

  • Slicing [1:3] includes index 1 but stops before index 3.

4
New cards

Based on this list what is the value of my_list[:2]

  • my_list = [10, 20, 30, 40, 50]

  • **