Question
What would be printed if the following instructions were executed? X = 5 while (X > 0): print(X % 3) X = X - 3
What would be printed if the following instructions were executed?
X = 5
while (X > 0): print(X % 3) X = X - 3
15
-1
-15
7
Can the following 2s complement calculation be performed using 5 bits?
16 - 15
0011 1111
0110 1111
0101 1111
0011 1101
8D
9F
8E
BC
Convert the following base 10 value to binary representation
63
No, 16 cannot be expressed using 5 bits
NO -15 cannot be expressed using 5 bits
Yes the result is 11111
Yes the result is 00001
Convert the following base 10 integer into hexadecimal notation
141
3 1
5 3
2 2
2 1
In a 2's complement system what decimal value is represented by 1111 ?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started