CS 218 EXAM 1
90+ (Latest 2025-2026 Edition) 100% Verified Q&A + Answer Key Solutions
Question 1
relationship between "machine code" and "assembly language"
Correct!
they have 1 to 1 ratio
Question 2
layout of rax register
Correct!
rax - 64 bits (entire register) or 8 bytes
eax - lower 32 bits or 4 bytes
ax - lower 16 bits or 2 bytes
ax = ah:al
al and ah - 8 bits or 1 byte
al - lowest 8 bits
Question 3
bits in al
Correct!
8
Question 4
bits in rcx
Correct!
64
, Question 5
bits in bx
Correct!
16
Question 6
bits in edx
Correct!
32
Question 7
what does rip register refer to
Correct!
instruction pointer register
Question 8
what does the rsp register refer to
Correct!
stack pointer register
Question 9
how many bits does one hex digit require
Correct!
4 bits
, Question 10
range of byte
Correct!
signed: -(2^7) to (2^7)- 1
unsigned: 0 to (2^8) - 1
Question 11
range of word
Correct!
signed: -(2^15) to (2^15)-1
unsigned: 0 to (2^16)-1
Question 12
range of double word
Correct!
signed: -(2^31) to (2^31)-1
unsigned: 0 to (2^32)-1
Question 13
on the intel 80x86 base architecture, how many bytes can be stored at each address
Correct!
1 byte
Question 14
tell what each instruction does:
Correct!
(1) mov rax, qword [var]
(2) mov rax, var
(1) copies value of var in rax
(2) address of var copies into rax
90+ (Latest 2025-2026 Edition) 100% Verified Q&A + Answer Key Solutions
Question 1
relationship between "machine code" and "assembly language"
Correct!
they have 1 to 1 ratio
Question 2
layout of rax register
Correct!
rax - 64 bits (entire register) or 8 bytes
eax - lower 32 bits or 4 bytes
ax - lower 16 bits or 2 bytes
ax = ah:al
al and ah - 8 bits or 1 byte
al - lowest 8 bits
Question 3
bits in al
Correct!
8
Question 4
bits in rcx
Correct!
64
, Question 5
bits in bx
Correct!
16
Question 6
bits in edx
Correct!
32
Question 7
what does rip register refer to
Correct!
instruction pointer register
Question 8
what does the rsp register refer to
Correct!
stack pointer register
Question 9
how many bits does one hex digit require
Correct!
4 bits
, Question 10
range of byte
Correct!
signed: -(2^7) to (2^7)- 1
unsigned: 0 to (2^8) - 1
Question 11
range of word
Correct!
signed: -(2^15) to (2^15)-1
unsigned: 0 to (2^16)-1
Question 12
range of double word
Correct!
signed: -(2^31) to (2^31)-1
unsigned: 0 to (2^32)-1
Question 13
on the intel 80x86 base architecture, how many bytes can be stored at each address
Correct!
1 byte
Question 14
tell what each instruction does:
Correct!
(1) mov rax, qword [var]
(2) mov rax, var
(1) copies value of var in rax
(2) address of var copies into rax