CISC181 Possible Exam Questions
P. Conrad, CISC Dept., Univ. of Delaware
This file contains exam questions that occur to me at various times. Whether
these questions are appropriate for any particular exam (say, Midterm 1, Midterm
2, or the Final) may vary from semester to semester, depending on the sequence
of topics covered. If you are not sure about the answer to a question, or whether
it would be considered fair game for a particular exam in a particular semester,
ask me.
I've marked some questions with a notation such as (E02_F04). The notation
E02_F04 indicates, for example, that the question could appear
in the Fall
semester of 2004, on the second exam, or any exam after that (including the
final exam). E03_F04
would
indicate
questions
that
would
only appear
on the third exam in Fall 2004 (i.e. the final exam.) E01_S05 would indicate
Spring 2005, starting with the first exam (meaning the question could appear
on any
of the
exams
that semester.)
cout << 0xFABC424B % 4 << endl;
One or Prof. Wright's students, a Mr. B.C. Dull told his roomate "That lady is crazy! How does she expect us to be able to do a calculation on such a huge hexadecimal number without using a calculator?"
However, B.C. Dull's roomate, Terry Bly Smart answered Mr. Dull:
"Chill out dude. You don't need a calculator to answer this problem. You can look at the last hexadecimal digit, the 'b', and tell right away what the answer is.".
Who is correct, B.C.Dull, or T.B.Smart? Explain your answer.
cout << 0xFABC424B % 4 << endl;
cout << 0xFABC424E % 2 << endl;
cout << 0xC7FA1937 % 8 << endl;
> ls -l
total 16
-rw------- 1 pconrad 2017 180 Oct 10 16:03 lab00.cc
-rwx------ 1 pconrad 2017 830 Oct 10 16:03 lab01a.cc
> chmod 640 lab00.cc
> chmod 754 lab01a.cc
> ls -l
total 16
?????????? 1 pconrad 2017 180 Oct 10 16:03 lab00.cc
########## 1 pconrad 2017 830 Oct 10 16:03 lab01a.cc
>
|