Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

CSC Exam 3 Review

Document preview thumbnail
Preview 2 out of 5 pages

Exam of 5 pages for the course CSC at CSC (CSC Exam 3 Review)

Content preview

CSC EXAM 3 REVIEW WITH 100% CORRECT ANSWERS




1.What is a list: A list is a collection of items enclosed in a square Bracket
2.What data types can a list hold: Integer,String and a float
3.Lists are mutable,what does that mean?: The contents can be changed
4.Lists can be and to access elements: indexed, sliced
5.List Method:list.append(): Adds an element to the end of the list
6.The list currently is [1,2,3]

you use list.append(5)

What is the list now?: [1,2,3,5]
7.List method:list.insert(): Inserts an element at a specified position
8.The list currently is [1,2,3]

you use list.insert(1, 'a')

What is the list now?: [1,'a',2,3]
9.List method:list.extend(): Adds all elements of a list to the end
10.The list currently is [1,2,3]

1/
5

, you use list.extend(4,5)

What is the list now?: [1,2,3,4,5]
11.list method:list.remove(): Removes the first item with the specified
value
12.list method:list.pop(): Removes the element at the specified position
13.list method:list.clear(): Removes all elements from the list
14.The list currently is [a,1,a]

you use list.remove('a')

What is the list now?: [1,'a']
15.The list currently is [1,2,3]

you use list.pop(1)

What is the list now?: [1,3]
16.The list currently is [1,2,3]

you use list.clear




2/
5

Document information

Uploaded on
February 17, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Registerednurse
3.0
(2)
Sold
32
Followers
3
Items
6077
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions