CSIT123 – Computing and Cyber Security

124 views 9:07 am 0 Comments September 10, 2023

School of Computing & Information Technology CSIT123 – Computing and Cyber Security Fundamentals Autumn 2023 Assignment 1 (10 marks, worth 10%) Due date: 26th March, 2023, 22:00 (Sydney Time). NOTE: please write in detail your progress of solving the problems (step by step), not just only the results. 1. Add the following 2’s complement binary numbers. Also express the answer in decimal. 2 Mark (a) 01 + 1011 0.5 Mark (b) 11 + 01010101 0.5 Mark (c) 0101 + 110 0.5 Mark (d) 01 + 10 0.5 Mark 2. The following binary numbers are 4-bit 2’s complement binary numbers. Which of the following operations generate overflow? Justify your answer by translating the operands and results into decimal. (a) 1100 + 0011 0.4 Mark (b) 1100 + 0100 0.4 Mark (c) 0111 + 0001 0.4 Mark (d) 1000 – 0001 0.4 Mark (e) 0111 + 1001 0.4 Mark 3. Translate the following ASCII codes into strings of characters by interpreting each group of eight bits as an ASCII character. 2 Mark (a) x48656c6c6c6f21 1 Mark (b) x68454c4c4f21 1 Mark 4. Perform the following logical operations. Express your answers in hexadecimal notation. 2 Mark 1 (a) NOT((NOT(xDEFA)) AND (NOT(xFFFF))) 1 Mark (b) x00FF XOR x325C 1 Mark 5. Given the logic circuit in the Figure below, fill the truth table for the output value Z. 2 Mark A B C Z 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 c Dung Duong, SCIT, University of Wollongong, 2023. 2

Tags: , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *