










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This is previous year paper for University exam
Typology: Exams
1 / 18
This page cannot be seen from the preview
Don't miss anything!
Q1. In a computer with 48 bit words , one bit is reserved for the sign. What will be the range of fixed point integer number? Ans;- In a computer with 48-bit words and one bit reserved for the sign, the remaining 47 bits are available for representing the magnitude of the fixed-point integer number. To determine the range of the fixed-point integer number, we need to consider how the sign bit affects the range. With one bit for the sign, we have two possibilities: positive (0) or negative (1). Therefore, the sign bit can represent values from -1 to +1. For the magnitude, with 47 bits, we can represent numbers from 0 to (2^47) - 1. The subtraction of 1 accounts for the fact that 0 is included in the range. Combining the sign bit and magnitude, we have the following range for the fixed- point integer number: Positive Range: 0 to (2^47) - 1 Negative Range: -1 to -((2^47) - 1) Therefore, the overall range for the fixed-point integer number in this computer is: -((2^47) - 1) to (2^47) - 1 Q2. Describe the process to make the process of addition and subtraction by 2’s complement number faster? Ans:- To make the process of addition and subtraction by 2's complement numbers faster, you can follow these steps:
Ans;- In computer architecture, arithmetic overflow occurs when the result of an arithmetic operation exceeds the range that can be represented by a given data type. Let's consider an example in assembly language: Suppose we have an 8-bit signed integer data type, which can represent values from -128 to 127. If we try to add two numbers that result in a value outside this range, an arithmetic overflow will occur. Let's say we have the following values: A = 100 ; decimal value B = 50 ; decimal value In binary representation, A is 01100100 and B is 00110010. If we add A and B using an 8-bit signed integer representation, the result would be
series of logic gates to generate lookahead carry signals, allowing for parallel computation of carry bits. This reduces the overall delay and improves the speed of addition.
Ans;-Fixed-point numbers and floating-point numbers are both representations of real numbers in computing systems, but they differ in how they store and represent the fractional part of a number. Fixed-Point Numbers: Fixed-point numbers are a way to represent real numbers with a fixed number of digits for the integer and fractional parts. The position of the decimal point is fixed and does not change. The range and precision of fixed-point numbers are determined by the number of bits allocated for the integer and fractional parts. For example, consider a fixed-point number representation with 8 bits, where 4 bits are allocated for the integer part and 4 bits for the fractional part. In this case, the range of the fixed-point number would be limited to a specific range (e.g., -8 to
sequential manner, meaning that the operations are executed one after another based on control signals and the current state of the ALU. Here is a functional block diagram of a sequential ALU: The sequential ALU consists of the following main components: