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)

CS 261 chp 1 & 2 review JMU questions(solved & verified for accuracy).

Beoordeling
-
Verkocht
-
Pagina's
9
Cijfer
A+
Geüpload op
01-11-2024
Geschreven in
2024/2025

CS 261 chp 1 & 2 review JMU questions(solved & verified for accuracy).

Instelling
CS061
Vak
CS061

Voorbeeld van de inhoud

CS 261 chp 1 & 2 review JMU
questions(solved & verified for
accuracy)
an adress - answer A pointer is a variable that stores what type of
information?


char - answer char *c = (char*)malloc(sizeof(char)*16);
What is the type of *c?


char** - answer char *c = (char*)malloc(sizeof(char) *16);
What is the type of &c?


when variables allocated in a function and stored in the heap are
lost when the function returns - answer Which of the following
describes a memory leak?


linking - answer Which stage of compilation produces executable
object files as output?


preprocessing - answer Which stage of compilation handles
statements like #include <stdio.h>?


Correct!
relocatable object - answer What is the output of an assembler?


float** - answer Given the declaration float **matrix, what is the
type of &matrix[0]?

, 13 - answer How many bytes of memory are needed to store the
string "CS261 rocks!" in C?


stack - answer Parameters passed to a function are stored in what
part of memory?


The value stored at the address that is stored at address 4567 -
answer Assume that a pointer, ptr, has the value 4567. What would
you get by accessing *ptr[0]?


e - answer What is the output of the following code? Assume that
the address of the variable s is 10 and the address of the variable t
is 11.
char s = 'c';char *t = &s;*t = *t + 1;printf ("%c", *t + 1);


36 - answer What is the minimum amount of memory required to
store a novel_t variable? Specify your answer as an exact numerical
byte count.


10 - answer How many bytes of memory are needed to store the
following string (notice the one space after the comma):
"Hey, Jude"


stack - answer Variables that are local to a function are stored in
what part of memory?


address of x - answer Printing &x will produce what output?


double* - answer Consider the following line of code (assume it is
in main()):
double *d = (double*) malloc( sizeof(double) );

Geschreven voor

Instelling
CS061
Vak
CS061

Documentinformatie

Geüpload op
1 november 2024
Aantal pagina's
9
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$16.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.
FREEMANSHARP Havard School
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
147
Lid sinds
2 jaar
Aantal volgers
70
Documenten
7648
Laatst verkocht
3 weken geleden
FREEMANSHARP

In this page you will find all exams , flashcards , quizzes and package deals offered by seller Freemansharp

3.6

29 beoordelingen

5
9
4
7
3
7
2
3
1
3

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