1301 HW#1 FALL 2021a - College Homework extra practice for binary and hexadecimal practice PDF

Title 1301 HW#1 FALL 2021a - College Homework extra practice for binary and hexadecimal practice
Course Intro Programming
Institution University of Georgia
Pages 5
File Size 95.7 KB
File Type PDF
Total Downloads 66
Total Views 144

Summary

Practice for hex and binary exam, this will help you practice and learn multiple different documents and will test your brain....


Description

CS 1301 FIRST NAME: ______________________

LAST NAME: __________________

Homework #1

Problem 1 [10 pts]. Represent the following binary values in hexadecimal. (first number is not a typo. Think what to do about it to make it hex!) •

100 0101 1011 0110



1101 0111 1101

Problem 2 [10 pts]. What is the value of the most significant bit in the bit patterns represented by the following hexadecimal notations? What is the value of the least significant bit in the bit patterns represented by the following hexadecimal notations? Explain how you derived the answers. •

FB



31

Problem 3 [5 pts]. Represent the following binary value in decimal. Show the procedure. 010101

Problem 4 [21 pts; 7 pts each]. Represent the following decimal values in two’s complement binary notation with 7 bits. Show the procedure. a) 14

b) -9

c) -14

Problem 4 [16 pts]. If p=1, q=1 and r=0, what will be the result of the following Boolean expression after substituting the values for p, q and r. Show operation-by-operation process of your evaluation. Be careful about the order of operations.



q XOR p AND NOT p OR r OR r



r OR q XOR r AND NOT p OR r

Problem 6 [12 pts]. Critical thinking! Imagine we need a system to be able to represent 5555 distinct characters (at least, we cannot have less). How many bits we must allocate to be able to encode all 5555 characters in this system?

Explain your solution.

Problem 7 [26 pts]. Critical thinking! You know how to do binary to decimal conversions and vice versa. Generalize the idea. •

How to convert a number in base 7 to base 10? Convert 543 from base 7 to decimal and explain.



How to convert a number in base 10 to base 7? Convert 543 from decimal to base 7 and explain....


Similar Free PDFs