Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Computer Science II CSC148 – Questions with Detailed Verified Answers, Practice Questions with Solutions

Beoordeling
-
Verkocht
-
Pagina's
27
Cijfer
A+
Geüpload op
10-01-2026
Geschreven in
2025/2026

This document contains a comprehensive set of CSC148 questions accompanied by detailed, verified answers covering key topics from Computer Science II. It is designed to help students understand core concepts through worked examples and clear explanations, making it suitable for exam preparation and revision. The questions reflect typical problem types encountered in coursework and assessments.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

Page | 1



CSC148 Questions with Detailed
Verified Answers

Question: the only mutable types
Answer: list and dictionaries and user defined classes


Question:Where is all data stored in?
Answer: objects that have 3 components -> id, type and value


Question:What is special about id
Answer: The id of an object is a unique identifier, meaning that no other
object has the same identifier.


Question:difference between object and variable?
Answer: a variable stores an object with value, id and type
Variables are not objects because it doesn't store data but only storing the id.
it REFERS to an object


Question:What is special about the type of object
Answer: it defines what operators you can use on it


Question:3 + 'hello'
Answer: TypeError: unsupported operand type(s) for +: 'int' and 'str'


Question:>>> prof = 'Diane'

, Page | 2

>>> id(prof)
4405312456
>>> prof = prof + ' Horton'
>>> prof
'Diane Horton'
>>> id(prof)
Answer: >>> # The old str object couldn't change, so Python made a new
>>> # str object for the variable prof to refer to. Since it's
>>> # a new object, it has a different id.
>>> id(prof)
4405308016


Question:what is aliasing?
Answer: referring to the same object so they have the same id


Question:phrase this "z = x" in english
Answer: "make z refer to the object that x refers to."


Question:y = y
id value changes?
Answer: no, just like how x= y means they now have the same id,
y = y will also have the same id as before


Question:y = [1,2,3]
x = [1,2,3]
id(y)
id(x)

, Page | 3

Answer: >>> id(y)
2493677724232
>>> id(x)
2493677724296


Question:>>> x = [1, 2, 3]
>>> z = x
>>> z[0] = -999
>>> x
Answer: x = [-999, 2,3]


Question:what if you want to check if two variables value are exactly the
same?
Answer: "== " compares the values stored in the objects reference. This is
called value equality.


Question:what if you want to check if the variables are referring to the exact
same object
Answer: "is" like x is y, which will check the id


Question:special case for immutable stuff?
Answer: >>> x = 'foo'
>>> y = 'foo'
>>> x is y
True
HOWEVER
>>> x = "ice cream"

Geschreven voor

Vak

Documentinformatie

Geüpload op
10 januari 2026
Aantal pagina's
27
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$13.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
TopGradeSolutions Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
95
Lid sinds
2 jaar
Aantal volgers
9
Documenten
13297
Laatst verkocht
4 dagen geleden
TOPGRADESOLUTIONS

Here we offer revised study materials to elevate your educational outcomes. We have verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. We are dedicated to offering you the best services and you are encouraged to inquire further assistance from our end if need be. Having a wide knowledge in Nursing, trust us to take care of your Academic materials and your remaining duty will just be to Excel. Remember to give us a review, it is key for us to understand our clients satisfaction. We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Lees meer Lees minder
4.9

171 beoordelingen

5
159
4
7
3
4
2
0
1
1

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen