Aspire Faculty ID #18506 · Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II) · Just now
UGC NET Computer Science Dec 2022 Shift I (Paper II)

Let $R_1$ and $R_2$ be two $4$-bit registers that store numbers in $2$'s complement form. For the operation $R_1+R_2$, which one of the following values of $R_1$ and $R_2$ gives an arithmetic overflow?

Solution

In $4$-bit $2$'s complement, range is

$-8$ to $+7$

Check option (b):

$R_1=1100=-4$

$R_2=1010=-6$

So,

$R_1+R_2=-4+(-6)=-10$

But $-10$ is outside the range $-8$ to $+7$.

Therefore, arithmetic overflow occurs.

Previous 10 Questions — UGC NET Computer Science Dec 2022 Shift I (Paper II)

Nearest first

Next 10 Questions — UGC NET Computer Science Dec 2022 Shift I (Paper II)

Ascending by ID
1
In the context of Binding which one of the following is incorrect?
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
2
Givenint arr[3][4][2] ={  {{2,4},{7,8},{3,4},{5,6}},  {{7,6},{3,4},{5,3},{2,3}},  {{8,9},{7,2},{3,4},{5,…
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
3
Allowing different derived classes to be used interchangeably through the interface provided by a common base class is …
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
4
In _____ curve the last and the first vertices of the polygon lie on the curve and all other vertices define the deriva…
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
5
A _____ operation combines the rows of the two relations and outputs a new relation that has both input relations' rows…
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
6
Consider the relation $R(P,Q,R,S,T,U,V,W,X,Y)$ and FDs: ${P,Q,S}\to T$ $R\to Y$ ${P,Q}\to V$ ${R,X}\to X$ $Q\to U$ $V\t…
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
7
Which RAID level is appropriate for storing the log file of a ticket booking system where a huge database update is req…
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
8
If we convert a decision tree to a set of logical rules, then:
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
9
Model of protection can be viewed as
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
10
Process in memory also contain the heap section. What is the use of heap section?
Topic: UGC NET Computer Science Dec 2022 Shift I (Paper II)
Ask Your Question or Put Your Review.

loading...