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
Document preview thumbnail
Voorbeeld 1 van de 3 pagina's
Tentamen (uitwerkingen)

CSCI 1730 Exam 1 Questions with Correct Answers Latest Update 2025/2026

Document preview thumbnail
Voorbeeld 1 van de 3 pagina's

CSCI 1730 Exam 1 Questions with Correct Answers Latest Update 2025/2026 Size of a char - Answers 1 byte (8 bits) Size of a short - Answers 2 bytes (16 bits) size of an int - Answers 4 bytes (32 bits) size of a long - Answers 8 bytes (64 bits) size of a float - Answers 4 bytes (32 bits) size of a double - Answers 8 bytes (64 bits) size of a boolean - Answers 1 byte (4 bits) How do you compile code in C? - Answers gcc -Wall [filename].c -g -o [filename].out Ternary Operator - Answers condition ? result 1 : result 2 7 == 5 ? 4 : 3 (is 7 = 5?) yes: output 4 no: output 3 Stack - Answers This is where information is saved each time a function is called such as local (auto) variables in a method or function. The memory is then removed after the function is executed. Heap - Answers Where dynamic memory allocation takes place and is managed by malloc, realloc, calloc, and free. Memory stored in the heap has to be free'd at the end of the program to avoid memory leaks.

Voorbeeld van de inhoud

CSCI 1730 Exam 1 Questions with Correct Answers Latest Update 2025/2026

Size of a char - Answers 1 byte (8 bits)

Size of a short - Answers 2 bytes (16 bits)

size of an int - Answers 4 bytes (32 bits)

size of a long - Answers 8 bytes (64 bits)

size of a float - Answers 4 bytes (32 bits)

size of a double - Answers 8 bytes (64 bits)

size of a boolean - Answers 1 byte (4 bits)

How do you compile code in C? - Answers gcc -Wall [filename].c -g -o [filename].out

Ternary Operator - Answers condition ? result 1 : result 2

7 == 5 ? 4 : 3

(is 7 = 5?)

yes: output 4

no: output 3

Stack - Answers This is where information is saved each time a function is called such as local
(auto) variables in a method or function. The memory is then removed after the function is
executed.

Heap - Answers Where dynamic memory allocation takes place and is managed by malloc,
realloc, calloc, and free. Memory stored in the heap has to be free'd at the end of the program to
avoid memory leaks.

Two's Complement - Answers The algorithm to get the negative of an integer.

-x == ~x + 1

how is the end of a string represented in a character sequence - Answers the null character '\0'

How can you change a character sequence after it is initialized. - Answers You cannot assign
them directly (char myword[ ] = "Hello"; myword = "Bye;). You must reassign each element
individually.

myword[0] = 'B';myword[1] = 'y';myword[2] = 'e';myword[3] = '\0';

What do pointers do - Answers When a variable is declared, its value is assigned to a specific

Documentinformatie

Geüpload op
14 december 2025
Aantal pagina's
3
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
€9,29

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

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.
joshuawesonga22
3,5
(14)
Verkocht
119
Volgers
2
Items
15119
Laatst verkocht
14 uur geleden

Echte notities, van echte studenten
Elk document op Stuvia is geschreven door een medestudent die hetzelfde vak deed. Zo leer je van iemand die het al heeft gehaald.



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