CDA 3100 Midterm Q&A 2023
How many different numbers can be represented by 4 bits? - Answer- 16 2(^4) What is -57 in binary in 8 bits? - Answer- 1. is 57 2. (invert) 3. (add 1) What's the range of numbers represented by 2's compliment with 4 bits? - Answer- [-8, 7] How many bits in 2's compliment char type? What's the range? - Answer- 8 bits -128, 127 How many bits in 2's compliment short type? - Answer- 16 bits How many bits in 2's compliment int type? - Answer- 32 bits How many bits in 2's compliment long long type? - Answer- 64 To represent a negative integer -a, first, find the binary of a, then, set the leading bit to 1 - Answer- False Suppose the binary of -a is in 8 bits (without overflow), in 16 bits, it is - Answer- True Because the computer can only recognize 0 and 1, the computer cannot recognize numbers with fractions - Answer- False Double precision numbers is twice as accurate as single precision numbers. - Answer- False What are registers? - Answer- where you store values of variables What is the function ALU - Answer- where math is done T/F You perform up to three functions in a line of MIPS - Answer- False T/F We can store a 10,000 byte array in the register - Answer- False; register is too small T/F The calculation in the computer happens in the ALU - Answer- True
École, étude et sujet
- Établissement
- CDA 3100
- Cours
- CDA 3100
Infos sur le Document
- Publié le
- 23 juin 2023
- Nombre de pages
- 8
- Écrit en
- 2022/2023
- Type
- Examen
- Contient
- Questions et réponses
Sujets
-
cda 3100 midterm qampa 2023
-
how many different numbers can be represented by 4
-
what is 57 in binary in 8 bits
-
whats the range of numbers represented by 2s com