JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
In-Class 2
In-Class Activity to be completed in class.
Note: For this activity and all other activities, you should only make 1 submission (your first submission is always the one graded)
Sign in to Google
to save your progress.
Learn more
* Indicates required question
First Name
*
Your answer
Last Name
*
Your answer
E-mail (Please use Northeastern e-mail)
*
Your answer
Which section of Systems are you in?
*
Mike
John
Is there a difference between the heap and stack memory?
1 point
Yes, stack memory is automatically allocated and cleared when a function is called. The heap is otherwise managed by using malloc and free.
No, they are identical.
Clear selection
(Check all that apply) Which of the following apply to a pointer?
1 point
A pointer is a data type
A pointers stores an address
You can have pointers to custom data types you define.
What does it mean to dereference a pointer?
1 point
To return the value for which we point to. Typically we use '*', or otherwise when we access in array we are dereferencing with the []'s (example: mydata[5] = 7;
To return the address of a variable.
Clear selection
What is a NULL Terminator?
1 point
Essentially '0'. Typically used to end strings, or indicate the end of a linked list.
Clear selection
What happens if we forget to reclaim our memory with the 'free' function?
1 point
A memory leak! It is possible nothing happens if your system has lots of memory. However, if you run out of memory, your system will crash and need to restart to reclaim resources.
Nothing
Clear selection
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms