1
University of Maryland College Park
Dept of Computer Science
CMSC216 Summer 2018
Midterm I
FIRSTNAME, LASTNAME (PRINT IN UPPERCASE):
______________________________________________
STUDENT ID (e.g. 123456789): _______________________________
I pledge on my honor that I have not given or received any unauthorized assistance on this examination.
Your signature: _____________________________________________________________
Instructions
Make sure you write your grace login id at the bottom of each page, otherwise you will lose credit.
Provide your answers in the rectangular areas provided.
You may not use malloc, calloc, realloc nor free in this exam.
If the answer to a question depends on the architecture involved, assume the question applies to behavior on
linux.grace.umd.edu.
This exam is a closed-book and closed-notes exam.
Total point value is 200 points.
The exam is a 75 minutes exam.
Please use a pencil to complete the exam.
WRITE NEATLY.
You don’t
need to use meaningful variable names; however, we expect efficient code and good indentation.
Grader Use Only
#1
Problem #1 (C Constructs / Unix)
(54)
#2
Problem #2 (Memory Map)
(26)
#3
Problem #3 (Strings)
(40)
#4
Problem #4 (Structures)
(80)
Total
Total
(200)
