EEGR 417 Microprocessors Applications Project 1
EEGR 417 – Microprocessors Applications
Project 1
Question 1
1. Compute 0x78 ^ 0x54 and only submit your answer in hexadecimal (starts with 0x..)
Question 2
1. Consider tempo = tempo | 0x10;
Which of tempo bit may be affected?
A. bit 0
B. bit 7
C. bit 1
D. bit 4
Question 3
1. Match these C data types for embedded systems and their signed ranges
-
char
Answer
A. -2^31 to +(2^31) - 1
-
short int
B. -2^31 to +(2^31) - 1
C. -32,768 to +32,767
-
int
-
long int
D. -128 to +127
Question 4
1. How to set the first 8 bits in variable tempo?
A. tempo | 0xFF
B. tempo & 0xFF
C. tempo | 0x11
D. tempo & 0x11
Question 5
1. Match these C data types for embedded systems and their ranges
long long
-
Answer
A. -2^63 to +(2^63) - 1
unsigned char
-
B. 0 to +(2^16)-1
C. 0 to 255
-
int
-
D. 0 to +(2^32)-1
unsigned short int
Question 6
1. The header file stdint.h defined data types. What data type corresponds to the range: 0
to 4,294,967,295
A. uint8_t
B. int64_t
C. int32_t
D. uint32_t
Question 7
1. 0bxxxxxxx is binary.
In hexadecimal, what is the result of the operation: 0b10001000 >> 3;
A. 0x88
B. 0x11
C. 0xF1
D. 0x09
Question 8
1. How to clear the first 8 bits in variable tempo?
A. tempo | 0xF0
B. tempo & 0x00
C. tempo & 0x1F
D. tempo | 0x00
Question 9
1. Compute and display your answer in hexadecimal: 0x0F & 0x34
Question 10
1. Inverting:
compute ~0xBB
EEGR 417 Microprocessors Applications Project 1
EEGR 417 – Microprocessors Applications Project 1 Question 1 1. Compute 0x78 ^ 0x54 and only submit your answer in hexadecimal (starts with 0x..) Question 2 1. Consider tempo = tempo | 0x10; Which of tempo b...
A+ - Thank you!
Thanks for the positive feedback!