Comsc 260 Exam Questions With Correct
Answers.
What is the SIGNED binary number converted to decimal?
A. 256
B. -256
C. -128
D. 128 - AnswerC
Suppose n = number of bits. Which of the options below is the correct formula that will give you
the largest UNsigned binary number that you can rep...
What is the SIGNED binary number 10000000 converted to decimal?
A. 256
B. -256
C. -128
D. 128 - Answer✔C
Suppose n = number of bits. Which of the options below is the correct formula that will give you
the largest UNsigned binary number that you can represent for a given number of bits?
A. 2^n + 1
B. 2^(n-1) - 1
C. 2^(n+1) + 1
D. 2^n - 1 - Answer✔D
How many bits are in a byte?
A. 32
B. 8
C. 64
D. 16 - Answer✔B
Suppose we want to represent the decimal number 19 as a SIGNED binary number using the
least number of bits possible. Which of the options below is correct?
D. 010011 - Answer✔D
Which of the following options below describes the correct algorithm for converting an
UNsigned decimal number to binary?
1. Divide the number by 2
2. Calculate and store the quotient
3. Calculate and store the remainder
4. Set number = _
5. If the _ is not equal to 0, go back to step 1, else go to step 6
6. The binary number is stored in the remainder
5. quotient - Answer✔B
What is the largest UNsigned number that you can make with five (5) bits?
A. 31
B. 15
C. 16
D. 32 - Answer✔A
Suppose we want to represent the decimal number 65 as an UNsigned binary number using the
least number of bits possible. Which of the options below is correct?
A. 010000001
B. 01000001
C. 10000001
D. 1000001 - Answer✔D
What are the two steps to get the two's complement of a binary number?
1. For each binary bit i, perform: _
2. _
A)
1. flipped_bit[i] = 1 - bit[i]
2. Subtract 1
B)
1. flipped_bit[i] = 1 - bit[i]
2. Add 1
3|Page
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Brightstars. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.49. You're not tied to anything after your purchase.