Digital Logic & Number Systems Previous Year Questions
41 Digital Logic & Number Systems (Computer Science) questions asked in UGC NET previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Q1UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
A Boolean function F is called self-dual if and only if
F(x₁, x₂, ......., xₙ) = F(x₁', x₂', ....., xₙ')
How many Boolean function of degree n are self-dual ?
A2ⁿ
B(2)^(2ⁿ)
C(2)^(n²)
D(2)^(2^(n−1))
Show answerHide answer
Correct answer: (D) (2)^(2^(n−1))
Explanation
A self-dual function is fixed by its values on one half of the input combinations: the 2ⁿ input combinations form 2ⁿ⁻¹ mutually complementary pairs, and the function's value on one member of each pair determines its value on the other. So the number of self-dual functions is 2^(2^(n−1)).
Q2UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
Which of the following flip-flops is free from race condition?
AT flip-flop
BSR flip-flop
CMaster-slave JK flip-flop
DNone of the above
Show answerHide answer
Correct answer: (C) Master-slave JK flip-flop
Explanation
In a JK flip-flop, when J = 1 and K = 1, Q toggles between 0 and 1 continuously as long as the clock is enabled, so the final value of Q is uncertain (race condition). The master-slave JK flip-flop is used to resolve this problem.
Q3UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
The advantage of ––––––– is that it can reference memory without paying the price of having a full memory address in the instruction.
ADirect addressing
BIndexed addressing
CRegister addressing
DRegister Indirect addressing
Show answerHide answer
Correct answer: (D) Register Indirect addressing
Explanation
In register indirect addressing the address of the operand is held in a register, so memory can be referenced without having a full memory address in the instruction. Hence the answer is (d).
Q4UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)
A terminal multiplexer has six 1200 bps terminals and 'n' 300 bps terminals connected to it. If the outgoing line is 9600 bps, what is the value of n?
A4
B8
C16
D28
Show answerHide answer
Correct answer: (B) 8
Explanation
Six 1200 bps terminals give 6 × 1200 = 7200 bps, and n 300 bps terminals give 300n bps. 7200 + 300n = 9600 ⇒ 300n = 2400 ⇒ n = 8. So the answer is (b).
Q5UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
The Excess-3 decimal code is self-complementing code because
(1) The binary sum of a code and its 9's complement is equal to 9
(2) It is a weighted code
(3) Complement can be generated by inverting each bit pattern
(4) The binary sum of a code and its 10's complement is equal to 9
A(1)
B(2) and (3)
C(1) and (3)
DAll are correct.
Show answerHide answer
Correct answer: (C) (1) and (3)
Explanation
The Excess-3 decimal code is a self-complementing code because the binary sum of a code and its 9's complement is equal to 9 and the complement can be generated by inverting each bit pattern.
Q6UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)
The BCD adder to add two decimal digits needs minimum of
A6 full adders and 2 half adders
B5 full adders and 3 half adders
C4 full adders and 3 half adders
D5 full adders and 2 half adders
Show answerHide answer
Correct answer: (C) 4 full adders and 3 half adders
Explanation
To add two BCD digits we need two 4-bit adders: the first adds the two BCD numbers and the second corrects the result to a valid BCD number. The first 4-bit adder needs 3 full adders and 1 half adder (giving A₃ A₂ A₁ A₀). In the correction step 0110 is added to A₃ A₂ A₁ A₀. A₀ is always added to 0, so no adder is needed; A₁ is added to 1 with no incoming carry, so a half adder is used; A₂ is added to 1 plus a carry, so a full adder is used; A₃ is added only to the carry, so a half adder is used. Total = 3 + 1 = 4 full adders and 1 + 2 = 3 half adders.
Q7UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
Consider the following statements :
S₁: Boolean expressions and logic networks correspond to labeled acyclic digraphs.
S₂: Optimal Boolean expressions may not correspond to simplest networks.
S₃: Choosing essential blocks first in a Karnaugh map and then greedily choosing the largest remaining blocks to cover may not give an optimal expression.
Which of these statement(s) is/are correct?
AS₁ only
BS₂ only
CS₁ and S₂
DS₁, S₂ and S₃
Show answerHide answer
Correct answer: (D) S₁, S₂ and S₃
Explanation
S₁: Boolean expressions and logic networks correspond to labeled acyclic digraphs. S₂: Minimal expressions do not always give the simplest network. S₃: Greedy K-map grouping may not give an optimal expression. So S₁, S₂ and S₃ are all correct.
Q8UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
The equivalent hexadecimal notation for octal number 2550276 is :
Q9UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
The number of flip-flops required to design a modulo – 272 counter is :
A8
B9
C27
D11
Show answerHide answer
Correct answer: (B) 9
Explanation
Remember with 'n' number of flip-flop you can get upto maximum modulo - (2ⁿ) counter. Since 2⁹ = 512 > 272 it can satisfy the condition.
Q10UGC NET Computer Science, December 2015 (Paper II & III, Selected Questions)
A CPU handles interrupt by executing interrupt service subroutine ................
ABy checking interrupt register after execution of each instruction
BBy checking interrupt register at the end of the fetch cycle
CWhenever an interrupt is registered
DBy checking interrupt register at regular time interval
Show answerHide answer
Correct answer: (A) By checking interrupt register after execution of each instruction
Explanation
A CPU handles interrupt by executing interrupt service subroutine by checking the interrupt register after finishing the executing of the current instruction.
Q11UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)
The simplified form of a Boolean equation (AB' + AB'C + AC)(A'C' + B') is:
Q12UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)
A multiplexer combines four 100-Kbps channels using a time slot of 2 bits. What is the bit rate?
A100 kbps
B200 kbps
C400 kbps
D1000 kbps
Show answerHide answer
Correct answer: (C) 400 kbps
Explanation
bit rate = no. of channels × Input bit rate = 4 × 100 kbps = 400 kbps
Q13UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)
In a positive-edge-triggered JK flip-flop, if J and K both are high then the output will be __________ on the rising edge of the clock.
ANo change
BSet
CReset
DToggle
Show answerHide answer
Correct answer: (D) Toggle
Explanation
Racing is problem of toggling more than once when the inputs are J = 1 and K = 1. The proper combination of propagation delay and edge triggering prevents the racing problem.
Q14UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)
The .......... addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction.
ABase indexed
BBase indexed plus displacement
CIndexed
DDisplacement
Show answerHide answer
Correct answer: (D) Displacement
Explanation
The displacement addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction. Based Indexed Addressing: The operand’s offset is sum of the content of a base register BX or BP and an index register SI or DI. Based Indexed plus displacement addressing mode: In this mode of addressing the operand’s offset is given by offset=[BX or BP]+[SI or DI]+8 bit or 16 bit displacement. Indexed addressing mode: The operand’s offset is the sum of the content of an index register SI or DI and an 8 bit or 16 bit displacement. So, option (D) is correct.
Q15UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
Q16UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
Which of the following is the most efficient to perform arithmetic operations on the numbers?
ASign–magnitude
B1's complement
C2's complement
D9's complement
Show answerHide answer
Correct answer: (C) 2's complement
Explanation
In 1's complement there are two representations of zero: –0 (11111111) and +0 (00000000). In 2's complement there is only one representation of 0 (00000000), so 2's complement is the most efficient for performing arithmetic operations on numbers.
Q17UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
The Karnaugh map for a Boolean function is given as
C'D' C'D CD CD'
A'B' 0 0 0 0
A'B 0 0 1 0
AB 1 1 1 1
AB' 0 1 1 1
The simplified Boolean equation for the above Karnaugh Map is
AAB + CD + AB' + AD
BAB + AC + AD + BCD
CAB + AD + BC + ACD
DAB + AC + BC + BCD
Show answerHide answer
Correct answer: (B) AB + AC + AD + BCD
Explanation
Grouping the 1s of the K-map: row AB gives AB; the cells with A = 1 and D = 1 give AD; the cells with A = 1 and C = 1 give AC; and cell A'BCD is covered by BCD. Therefore f = AB + AC + AD + BCD.
Q18UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
Which of the following logic operations is performed by the following given combinational circuit?
Circuit: inputs x and y feed a NOR gate G1. Gate G2 is a NOR gate with inputs x and G1. Gate G3 is a NOR gate with inputs y and G1. The outputs of G2 and G3 feed an OR gate whose output is f.
Q19UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
Match the following :
List-I
A. Controlled Inverter
B. Full adder
C. Half adder
D. Binary adder
List-II
i. a circuit that can add 3 bits
ii. a circuit that can add two binary numbers
iii. a circuit that transmits a binary word or its 1's complement
iv. a logic circuit that adds 2 bits
Codes : A B C D
Aiii ii iv i
Bii iv i iii
Ciii iv i ii
Diii i iv ii
Show answerHide answer
Correct answer: (D) iii i iv ii
Explanation
Half adder adds 2 bits; full adder adds 3 bits; a controlled inverter transmits a binary word or its 1's complement; a binary adder adds two binary numbers. So A-iii, B-i, C-iv, D-ii. Hence, answer is (d).
Q20UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
The Boolean function [~(~p∧q)∧~(~p∧~q)] ∨ (p∧r) is equal to Boolean function :
Aq
Bp ∧ r
Cp ∨ r
Dp
Show answerHide answer
Correct answer: (D) p
Explanation
~(~p∧q) ∧ ~(~p∧~q) = (p ∨ ~q) ∧ (p ∨ q) = p ∨ (~q ∧ q) = p. So the function is p ∨ (p ∧ r) = p(1 + r) = p.
Q21UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
Which of the following 2 input Boolean logic functions is linearly inseparable?
(i) AND
(ii) OR
(iii) NOR
(iv) XOR
(v) NOTXOR
A(i) and (ii)
B(ii) and (iii)
C(iii), (iv) and (v)
D(iv) and (v)
Show answerHide answer
Correct answer: (D) (iv) and (v)
Explanation
XOR is linearly inseparable. NOTXOR is just XOR with the 1's swapped with 0's and vice versa; swapping the labels on the points does not alter the structure of the space, so NOTXOR is also linearly inseparable. AND, OR and NOR are linearly separable.
Q22UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
A ripple counter is a (n):
ASynchronous counter
BAsynchronous counter
CParallel counter
DNone of the above
Show answerHide answer
Correct answer: (B) Asynchronous counter
Explanation
A ripple counter is an asynchronous counter where only the first flip-flop is clocked by an external clock. All subsequent flip-flops are clocked by the output of the preceding flip-flop. Asynchronous counters are also called ripple counters because of the way the clock pulse ripples its way through the flip-flops.
Q23UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
The register that stores the bits required to mask the interrupts is
AStatus register
BInterrupt service register
CInterrupt mask register
DInterrupt request register
Show answerHide answer
Correct answer: (C) Interrupt mask register
Explanation
Interrupt Mask Register (IMR): An Interrupt mask register is a specialized register in a computer's CPU or a dedicated peripheral used to enable or disable (mask) individual interrupt lines.
Q24UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
In ________ addressing mode, the operands are stored in the memory. The address of the corresponding memory location is given in a register which is specified in the instruction.
ARegister direct
BRegister indirect
CBase indexed
DDisplacement
Show answerHide answer
Correct answer: (B) Register indirect
Explanation
In register indirect addressing, the location (address) of the operand in memory is held in a register that is specified in the instruction.
Q25UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Convert the octal number 0.4051 into its equivalent decimal number.
Q26UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The hexadecimal equivalent of the octal number 2357 is :
A2EE
B2FF
C4EF
D4FE
Show answerHide answer
Correct answer: (C) 4EF
Explanation
(2357)₈ = (010 011 101 111)₂. Grouping into 4 bits from right to left: 0100 1110 1111, so it is (4EF)₁₆.
Q27UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
If X is a binary number which is power of 2, then the value of X & (X – 1) is :
A11.......11
B00.......00
C100......0
D000.......1
Show answerHide answer
Correct answer: (B) 00.......00
Explanation
Let x = 2³ = 8 = 1000; then x – 1 = 7 = 0111. Now x & (x – 1) = 0000 (& is bitwise AND: a result bit is 1 only if both compared bits are 1, otherwise 0). So for any power of 2 the result is all zeros.
Q28UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
A binary 3-bit down counter uses J-K flip-flops, FFᵢ with inputs Jᵢ, Kᵢ and outputs Qᵢ, i = 0, 1, 2 respectively. The minimized expression for the input from following, is
I. J₀ = K₀ = 0
II. J₀ = K₀ = 1
III. J₁ = K₁ = Q₀
IV. J₁ = K₁ = Q₀'
V. J₂ = K₂ = Q₁ Q₀
VI. J₂ = K₂ = Q₁' Q₀'
AI, III, V
BI, IV, VI
CII, III, V
DII, IV, VI
Show answerHide answer
Correct answer: (D) II, IV, VI
Explanation
For a 3-bit down counter using J-K flip-flops (in toggle mode): J₀ = K₀ = 1, J₁ = K₁ = Q₀' and J₂ = K₂ = Q₁' Q₀'. So II, IV and VI.
Q29UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Consider the following assembly language instructions :
mov al, 15
mov ah, 15
xor al, al
mov cl, 3
shr ax, cl
add al, 90H
adc ah, 0
What is the value in ax register after execution of above instructions?
Q30UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The contents of register (BL) and register (AL) of 8085 microprocessor are 49H and 3AH respectively. The contents of Al, the status of carry flag (CF) and sign flag (SF) after executing 'SUB AL, BL' assembly language instruction, are
AAL = 0FH; CF = 1; SF = 1
BAL = F0H; CF = 0; SF = 0
CAL = F1H; CF = 1; SF = 1
DAL = 1FH; CF = 1; SF = 1
Show answerHide answer
Correct answer: (C) AL = F1H; CF = 1; SF = 1
Explanation
(AL) = 3AH = 00111010, (BL) = 49H = 01001001. AL – BL = 11110001, so (AL) = F1H, CF = 1, SF = 1. The carry (borrow) flag is set since the first operand is less than the second; the result is negative, so the sign flag is set.
Q31UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The general configuration of the micro programmed control unit is given below :
(Diagram: External Conditions → Next Address Generator → B → C, with 'Next Address Information' fed back from C to the Next Address Generator.)
What are blocks B and C in the diagram respectively?
ABlock address register and cache memory
BControl address register and control memory
CBranch register and cache memory
DControl address register and random access memory
Show answerHide answer
Correct answer: (B) Control address register and control memory
Explanation
In a microprogrammed control unit, the next address generator (sequencer) supplies the address to the control address register (B), which addresses the control memory (C); the control word read from control memory supplies the next address information. So B is the control address register and C is the control memory.
Q32UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
In 8085, which of the following performs : load register pair immediate operation?
ALDAS rp
BLHLD addr
CLXI rp, data
DINS rp
Show answerHide answer
Correct answer: (C) LXI rp, data
Explanation
LXI rp, data (load register pair immediate) loads a register pair with 2 bytes of immediate data. It is generally used to load SP or a memory pointer; the pairs used are H-L, D-E and B-C, where B, D, H hold the MSB and C, E, L hold the LSB.
Q33UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following statements(s) is/are TRUE with regard to software testing?
I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance.
II. Equivalence partitioning is a white-box testing technique that divides the input domain of a program into classes of data from which test cases can be derived.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (A) Only I
Explanation
Regression testing verifies that previously developed and tested software still performs correctly after it is changed, so I is true. Equivalence partitioning is a black-box (not white-box) testing method, so II is false.
Q34UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following are facts about a top-down software testing approach?
I. Top-down testing typically requires the tester to build method stubs.
II. Top-down testing typically requires the tester to build test drivers.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (A) Only I
Explanation
Top-down testing proceeds from the main module to sub-modules; a sub-module not yet developed is simulated by a temporary program called a STUB. Bottom-up testing proceeds from sub-modules to the main module, using DRIVERS to simulate the main module. So only I is true.
Q35UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Consider following two rules R1 and R2 in logical reasoning in Artificial Intelligence (AI):
R1 : from α ⊃ β and α infer β is known as Modus Tollens (MT)
R2 : From α ⊃ β and ¬α infer ¬β is known as Modus Ponens (MP)
AOnly R1 is correct
BOnly R2 is correct
CBoth R1 and R2 are correct
DNeither R1 nor R2 is correct
Show answerHide answer
Correct answer: (D) Neither R1 nor R2 is correct
Explanation
From α ⊃ β and α infer β is Modus Ponens (not Modus Tollens), and Modus Tollens infers ¬α from α ⊃ β and ¬β. R2 is not Modus Ponens either. So neither R1 nor R2 is correct.
Q36UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
The Octal equivalent of the binary number 1011101011 is :
A7353
B1353
C5651
D5657
Show answerHide answer
Correct answer: (B) 1353
Explanation
Group the bits in threes from the right: 001 011 101 011. 001 = 1, 011 = 3, 101 = 5, 011 = 3. So (1011101011)₂ = (1353)₈.
Q37UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
The Boolean function with the Karnaugh map
(rows CD, columns AB in order 00, 01, 11, 10)
CD = 00: 0 1 1 0
CD = 01: 0 1 1 1
CD = 11: 1 1 1 1
CD = 10: 0 1 1 0
A(A + C) . D + B
B(A + B) . C + D
C(A + D) . C + B
D(A + C) . B + D
Show answerHide answer
Correct answer: (A) (A + C) . D + B
Explanation
Grouping the 1s: columns AB = 01 and 11 give B, the row CD = 11 together with the cell AB = 10, CD = 01 give CD and AD. SOP form = AD + CD + B = (A + C).D + B.
Q38UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Let A =
[1 0 0]
[0 1 0]
[1 1 0]
[0 0 1]
and B =
[1 1 1 0]
[0 1 1 0]
[1 0 1 1]
Find the Boolean product A ⊙ B of the two matrices.
In the Boolean product, multiplication is replaced by logical AND and addition by logical OR. Row i of A ⊙ B is the OR of the rows of B selected by the 1s in row i of A: row 1 = B1 = 1110, row 2 = B2 = 0110, row 3 = B1 ∨ B2 = 1110, row 4 = B3 = 1011. So option (a) is correct.
Q39UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Consider the following assembly program fragment :
stc
mov al, 110101110b
mov cl, 2
rcl al, 3
rol al, 4
shr al, cl
mul cl
The contents of the destination register ax (in hexadecimal) and the status of Carry Flag (CF) after the execution of above instructions, are :
Aax = 003CH; CF = 0
Bax = 001EH; CF = 0
Cax = 007BH; CF = 1
Dax = 00B7H; CF = 1
Show answerHide answer
Correct answer: (A) ax = 003CH; CF = 0
Explanation
After the rotate and shift instructions al = 00011110, and mul cl multiplies it by 2 (append a 0 bit at the LSB): ax = 0000000000111100 = 003CH. For mul, CF = 0 when the high byte of the result is 0 and CF = 1 otherwise; here the high byte is 0, so CF = 0. Hence ax = 003CH; CF = 0.
Q40UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which of the following regular expressions, each describing a language of binary numbers (MSB to LSB) that represents non-negative decimal values, does not include even values?
Where {+, *} are quantification characters.
A0*1+0*1*
B0*10+1*
C0*1*0*1+
D0*1*0*1*
Show answerHide answer
Correct answer: (C) 0*1*0*1+
Explanation
Odd binary numbers end with 1 in the LSB and even numbers end with 0. Only 0*1*0*1+ always ends with at least one 1, so its language contains no even values.
Q41UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Standard planning algorithms assume environment to be...............
ABoth deterministic and fully observable
BNeither deterministic nor fully observable
CDeterministic but not fully observable
DNot deterministic but fully observable
Show answerHide answer
Correct answer: (A) Both deterministic and fully observable
Explanation
Standard planning algorithms assume the environment to be both deterministic and fully observable.
How to use these UGC NET Computer Science questions
Every question here was asked in a real UGC NET paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full UGC NET papers as timed tests to check your speed under exam conditions.