Additional Topics for the Final
More C++
unique_ptr
(cannot be copied, but can move
ownership to another), shared_ptr
(reference
counting), weak_ptr
(using to break cycles
and why this is needed)Network Programming
Concurrency
fork()
(review of
CSE351 mostly), shared file descriptors and
close()
in forked processesThe following 3 finals are good examples to practice on. Should you need more practice, you can refer to this list. Remember that summer midterms are written for a shorter test period (60 mins) than our own (110 mins).
Autumn 2019 Exam | Sample Solution | Tang (110 mins)The following pdf contains questions from old finals, but not from any of three final listed above. These questions were picked by TAs to help you prepare for the midterm.
Final Review Packet | Sample SolutionProgram Organization
#include
,
#define
, #ifndef
, etc.#ifndef
guardsstatic
for internal linkageC Language
int32_t
,
uint64_t
) and when to use themtypedef
stdin
, stdout
,
fopen
, fread
, scanf
,
printf
, etc.open
, read
,
write
, etc..text
+
.rodata
, .data
+ .bss
)
malloc
,
free
)C++ Language
cout
,
cin
, <<
and
>>
)new
,
delete
, delete[]
)const
(const data
and parameters, const member functions)The following 3 midterms are good examples to practice on. Should you need more practice, you can refer to this list. Remember that some of these midterms are written for a longer test period than our own (which is 50 mins).
Autumn 2019 Exam (Version A) | Sample Solution (Version A) | Tang (50 mins)The following pdf contains questions form old midterms, but not from any of three midterms listed above. These questions were picked by TAs to help you prepare for the midterm. Solutions will be posted after section.
Midterm Review Packet | Sample Solution