Comsc 260 test 1 Exam Questions With
Correct Answers.
Suppose a program has the following data segment:
.data
A BYTE 4B BYTE 5result BYTE ?
Which of the options below will store the value 20 in the result variable?
(the value 20 is also the product of the two numbers: A * B = 4 * 5 = 20) - Answer✔mov al,
Badd al, Badd al, Badd al, Bmov result, al
Which of the options below is the correct truth table for the logical AND operator? - Answer✔P
Q
P AND Q
F
F
F
F
T
F
1|Page
, ©BRIGHSTARS 2024/2025 ALL RIGHTS RESERVED.
T
F
F
T
T
T
What is the formula for finding the smallest SIGNED binary value for a given number of bits?
Note: N represents the number of bits in the formula - Answer✔-1 * (2^(N-1))
What is the largest SIGNED number that can be represented with 8 binary bits? - Answer✔127
Which of the following is the correct SIGNED hexadecimal representation of -6? -
Answer✔FFA
When adding hexadecimal numbers together in a column, what two steps are performed if their
sum is greater than 15?
What you put down in the column is calculated by the formula: _
Carry a 1 over to the next column - Answer✔1. sum = sum mod 16
What is the two's complement of the hexadecimal number 101101? - Answer✔EFEEFF
Which of the options below is the smallest SIGNED hexadecimal number that you can make
with two (2) hexadecimal symbols? - Answer✔80
When adding binary numbers together in a column, what two steps are performed if their sum is
greater than 1?
What you put down in the column is calculated by the formula: _
Carry a 1 over to the next column
HINT:
1 + 1 = 10
1 + 1 + 1 = 11 - Answer✔1. sum = sum mod 2
Suppose a program has the following data segment:
2|Page