1. How many bits will be used to
represent the following variable in NIOS II?
unsigned int a = 3;
|
A.
32 B.
8 C.
16 D.
64 E.
3 2. How
many bits will be used to represent this variable in NIOS II? short
k = 32 |
|
A. 16 B. 32 C. 64 D. 8 E. 5 3. How many
bits will be used to represent the following variable in NIOS II? char
k = 10; |
|
A.
8 B.
16 C.
32 D.
64 E.
4 4. How
many bits will be used to represent the following variable in the IEEE 754
format? float
x = 1.33; A.
32 B.
16 C.
64 D.
128 E.
9 5. The IEEE
754 format uses for this variable? double
h = 1.333; |
|
A.
64 B.
32 C.
128 D.
256 E.
18 6. What is the exact, binary
representation of: unsigned char = 33; |
|
A.
None of
these B.
0011
0011 C.
0000 1001 D.
10
0001 E.
1111 |
7. What is the exact, binary
representation of:
char i = -5
A.
1111 1011
B.
1000 0101
C.
10101
D.
0000 0101
E.
None of those shown
8. What is the exact, binary
representation of:
a = b + c;
where:
unsigned char a;
unsigned char b = 128;
unsigned char c = 128;
A.
0000 0000
B.
1111 1111
C.
1000 0000
D.
256
E.
Not shown
9. What is the exact, binary
representation of:
a = b + c;
where
char a;
char b = -3;
char c = -128;
A.
0111 1101
B.
1000 0011
C.
1111 1111
D.
1000 0001
10. What is the exact, binary
representation of:
a = b + c;
where:
short a;
short b = -2;
char c = -128;
A.
1111 1111 0111 1110
B.
0111 1110
C.
1111 1111 1111 1111
D.
1000 0000 1000 0010
11. What is the exact, binary
representation of:
unsigned char c = 0xf0;
A.
1111 0000
B.
1111 0000
C.
1111
D.
1100 1100
12. What is the exact, binary
representation of:
char c = 010;
A.
0000 1000
B.
0000 1010
C.
0001 0000
D.
1010
E.
1 0000
13. What is the exact, binary
representation of:
a = b + c;
where
char a;
char b = '0';
char c = '4';
A.
0110 0100
B.
0000 0100
C.
0110 0000
D.
0000 0100
14. What is the exact, binary
representation of:
a = b + c;
where
char a;
char b = '0';
char c = 4;
A.
0011 0100
B.
0110 0100
C.
1100 0100
D.
0000 0100
15. What is the exact, binary
representation of:
a = b;
where
short a;
char b = -2;
A.
1111 1111 1111 1110
B.
0000 0000 1111 1110
C.
1111 1110 0000 0000
D.
1111 1110
E.
1000 0010
16. What is the exact, binary
representation of:
a = b;
where
short a;
char b = 2;
A.
0000 0000 0000 0010
B.
1111 1111 0000 0010
C.
0000 0010 0000 0000
D.
1111 1111 1111 1100
17. What is the exponent in binary of
float f. f in hexadecimal is 0xf8830000
A.
1111 0001
B.
1110 0010
C.
1111 1000
D.
1110 0010
18. What is the mantissa in binary
of float f. f in hexadecimal is 0xf8830000
A.
0001 100...0
B.
0011 0...0
C.
0110 0...0
D.
1000 1000 1100 0...0
19. What is the exact, binary representation
of:
float f = 24.4;
A.
0x41c3 3333
B.
0xd1c3 3333
C.
0x0018 4000
D.
0x0184 0000