100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

UAB CS103 Final Questions with complete solution 2025

Beoordeling
-
Verkocht
-
Pagina's
19
Cijfer
A+
Geüpload op
30-08-2025
Geschreven in
2025/2026

UAB CS103 Final Questions with complete solution 2025 What is a (univariate) function f(x) in mathematics? (Lecture 1) - correct answers a function of a single variable; distance is a function of time n!=# of ____ of a list of length n (Lecture 17) - correct answers permutations What is a variable x in mathematics? (Lecture 1) - correct answers a value that may change; an abstraction/generalisation What are the 2 key components of a recursive function? (Lecture 17) - correct answers base case and recursive call What is the precedence of the basic arithmetic operators? (Lecture 1) - correct answers when there is more than one arithmetic operator in an expression: multiplication, division, and modulo are calculated first, followed by subtraction and addition. If they have the same level of precedence, it is executed left to right. What is the base case for string reversal? (Lecture 17) - correct answers bc: base case t='' ###bc for c in s: t=c+t return t

Meer zien Lees minder
Instelling
UAB CS103
Vak
UAB CS103

Voorbeeld van de inhoud

UAB CS103 Final Questions with
complete solution 2025
What is a (univariate) function f(x) in mathematics? (Lecture 1) - correct
answers a function of a single variable; distance is a function of time


n!=# of ____ of a list of length n (Lecture 17) - correct answers permutations


What is a variable x in mathematics? (Lecture 1) - correct answers a value
that may change; an abstraction/generalisation


What are the 2 key components of a recursive function? (Lecture 17) - correct
answers base case and recursive call


What is the precedence of the basic arithmetic operators? (Lecture 1) - correct
answers when there is more than one arithmetic operator in an expression:
multiplication, division, and modulo are calculated first, followed by subtraction
and addition. If they have the same level of precedence, it is executed left to
right.


What is the base case for string reversal? (Lecture 17) - correct answers bc:
base case




t='' ###bc
for c in s:
t=c+t
return t

,How do you express 4√3 in Python interpreter? (Lecture 1) - correct answers
import math
4*math.sqrt(3)


answer: 6.928203230275509


What is the base case of sum(n)? (Lecture 17) - correct answers bc: base
case




assert n >= 1
if n == 1: ###bc
return 1
else:
return n + sum (n-1)


How do you express 2/3π? Without parentheses? (Lecture 1) - correct
answers 2*π/3


What is the base case of lint(L)? (Lecture 17) - correct answers bc: base case
rc: recursive call




if L == []: ###bc 1
return True
elif type(L[0]) != int: ###bc 2

, return False
else: ###rc
return lint(L[1:])


What are the acceptable resources for coding? (Lecture 2) - correct answers
official Python documentation


What is the base case and recursive call of argmax(L)? (Lecture 17) - correct
answers bc: base case
rc: recursive call




assert len(L) > 0
if len(L) == 1: ###bc
return 0
else: ###rc
imax = argmax (L[:len(L)-1])
if L[-1] > L[imax]:
imax = len(L) - 1
return imax


What are the standard arithmetic operators (6 of them)? - correct answers
addition (+), subtraction (-), multiplication (*), division (/), exponentiation (**),
modulo (%), floor division (//)


Explain stacking (push and pop). (Lecture 18) - correct answers last-in-first-
out (LIFO)

Geschreven voor

Instelling
UAB CS103
Vak
UAB CS103

Documentinformatie

Geüpload op
30 augustus 2025
Aantal pagina's
19
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€16,16
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

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.
Academia199 Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
356
Lid sinds
3 jaar
Aantal volgers
209
Documenten
19269
Laatst verkocht
1 week geleden

3,9

51 beoordelingen

5
27
4
7
3
7
2
3
1
7

Populaire documenten

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

Veelgestelde vragen