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)

COSC STUDY GUIDE FOR (QUIZ 2) WITH QUESTIONS AND ANSWERS LATEST UPDATE 2026

Beoordeling
-
Verkocht
-
Pagina's
5
Cijfer
A+
Geüpload op
28-04-2026
Geschreven in
2025/2026

COSC STUDY GUIDE FOR (QUIZ 2) WITH QUESTIONS AND ANSWERS LATEST UPDATE 2026

Instelling
COSC
Vak
COSC

Voorbeeld van de inhoud

COSC STUDY GUIDE FOR (QUIZ 2) WITH QUESTIONS AND ANSWERS LATEST
UPDATE 2026




What is a function in Python? - (answer)A standalone block of code that does not belong to an object.



What is a method in Python? - (answer)A function that belongs to an object and is called using dot
notation.



What symbol connects an object to its method? - (answer)A dot (.)



Give an example of a standalone function. - (answer)print(), input(), len(), type()



Give an example of a method. - (answer)name.upper()



What does .upper() do? - (answer)Converts all characters in a string to uppercase.



What does .lower() do? - (answer)Converts all characters in a string to lowercase.



What does .title() do? - (answer)Capitalizes the first letter of every word.



What does .capitalize() do? - (answer)Capitalizes only the first letter of the string and makes the rest
lowercase.



What does .strip() do? - (answer)Removes whitespace from both beginning and end of a string.



What does .lstrip() do? - (answer)Removes whitespace from the left side only.



What does .rstrip() do? - (answer)Removes whitespace from the right side only.



What does .startswith("text") return? - (answer)True or False depending on whether the string starts
with the given text.

, COSC STUDY GUIDE FOR (QUIZ 2) WITH QUESTIONS AND ANSWERS LATEST
UPDATE 2026




What does .endswith("text") return? - (answer)True or False depending on whether the string ends with
the given text.



What does .find("x") return if found? - (answer)The index position of the first occurrence.



What does .find("x") return if NOT found? - (answer)-1



What does .count("x") return? - (answer)The number of times a substring appears.



What does .replace(old, new) do? - (answer)Replaces all occurrences of old with new in a string.



What does .split() do? - (answer)Breaks a string into a list (default separator is space).



What does "separator".join(list) do? - (answer)Combines list elements into a single string separated by
the given separator.



Are strings mutable or immutable? - (answer)Immutable (methods return new strings).



What does \n do? - (answer)Creates a new line.



What does \t do? - (answer)Creates a tab (indent).



What symbols indicate a list in Python? - (answer)Square brackets [ ].



What index number represents the first element in a list? - (answer)0.

Geschreven voor

Instelling
COSC
Vak
COSC

Documentinformatie

Geüpload op
28 april 2026
Aantal pagina's
5
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$15.99
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.
StudyVstar Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2099
Lid sinds
10 maanden
Aantal volgers
5
Documenten
1203
Laatst verkocht
2 weken geleden

4.9

319 beoordelingen

5
306
4
9
3
3
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