Midterm Solutions Fall 2010
First-page document preview for Midterm Solutions Fall 2010 in COE 538: Microprocessor Systems at Toronto Metropolitan University (TMU). Inspect the first page below or request the complete PDF study document for free.
Independent study archive Learn more
Materials are uploaded by users for self-study purposes. PwnHero is an independent platform, not affiliated with, sponsored by, or endorsed by any university or institution.
University
Toronto Metropolitan University (TMU)
Course
COE 538: Microprocessor Systems
Format
Midterm Exam
Year
2010
📄 Page 1 Preview
Page 1 Key Topics & Excerpt
🔍 Text Transcript
First page excerpt for quick study reference. Complete formulas, diagrams, and subsequent pages are available in the full document.
PwnHero
October 29th, 2010
COE 538 / BME 538 Midterm
Name: _____________________________
Student #: __________________
Time: 90 min.
Notes:
1. Closed book.
2. Write the answers in the space provided.
3. The Instruction Set can be detached.
4. No question during the exam. State your assumptions.
1. (C language question) Assume that an is a char type variable, and an = 65. What are the
decimal values of char type variables cn1, cn2, cn3, cn4 and cn5 below?
[4 marks]
a) cn1 = an / 28
cn1 = 2
b) cn2 = an ^ 16
cn2 = 0100 0001 ^ 0001 0000 = 0101 0001 = 81
c) cn3 = an << 1
cn3 = 1000 0010 = 130
d) cn5 = an & 32
cn5 = 0100 0001 & 0010 0000 = 0000 0000 = 0
2. (C language question) Briefly explain what the following C function does?
[2 marks]
char multipleOf6(int ax)
If an integer ax is a multiple of 6,
{
the function returns 1; otherwise,
if ((ax % 6) == 0)
it returns 0.
return 1;
else
return 0;
}
PwnHero.com
More Popular Resources in COE 538: Microprocessor Systems
Final Examination Fall 1999
Final Exam • Page 1 Preview
Final Examination Fall 2000
Final Exam • Page 1 Preview
Final Examination Fall 2001
Final Exam • Page 1 Preview
Final Examination Fall 2002
Final Exam • Page 1 Preview
Final Examination Fall 2005
Final Exam • Page 1 Preview
Final Examination Fall 2020
Final Exam • Page 1 Preview
Final Examination Solutions Fall 2003
Final Exam • Page 1 Preview
Final Examination Solutions Fall 2006
Final Exam • Page 1 Preview