UGC NET · Computer Science

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.

  • 41 questions
  • Official answer key
  • Free

Other Computer Science topics

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 ?
  1. A2ⁿ
  2. B(2)^(2ⁿ)
  3. C(2)^(n²)
  4. 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?
  1. AT flip-flop
  2. BSR flip-flop
  3. CMaster-slave JK flip-flop
  4. 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.
  1. ADirect addressing
  2. BIndexed addressing
  3. CRegister addressing
  4. 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?
  1. A4
  2. B8
  3. C16
  4. 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
  1. A(1)
  2. B(2) and (3)
  3. C(1) and (3)
  4. 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
  1. A6 full adders and 2 half adders
  2. B5 full adders and 3 half adders
  3. C4 full adders and 3 half adders
  4. 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?
  1. AS₁ only
  2. BS₂ only
  3. CS₁ and S₂
  4. 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 :
  1. AFADED
  2. BAE0BE
  3. CAD0BE
  4. DACABE
Show answerHide answer

Correct answer: (C) AD0BE

Explanation

Given octal No. is (2550276)₈ = (010 101 101 000 010 111 110)₂ ⇒ (01 010 1101 0000 1011 1110)₂ ⇒ (0AD0BE)₁₆ (AD0BE)₁₆

Q9UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)
The number of flip-flops required to design a modulo – 272 counter is :
  1. A8
  2. B9
  3. C27
  4. 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 ................
  1. ABy checking interrupt register after execution of each instruction
  2. BBy checking interrupt register at the end of the fetch cycle
  3. CWhenever an interrupt is registered
  4. 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:
  1. AAB'
  2. BAB'C
  3. CA'B
  4. DABC
Show answerHide answer

Correct answer: (A) AB'

Explanation

(AB' + AB'C + AC)(A'C' + B') = (AB'(1 + C) + AC)(A'C' + B') = (AB' + AC)(A'C' + B') = AA'B'C' + AB'B' + AA'CC' + AB'C = 0 + AB' + 0 + AB'C = AB'(1 + C) = AB'

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?
  1. A100 kbps
  2. B200 kbps
  3. C400 kbps
  4. 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.
  1. ANo change
  2. BSet
  3. CReset
  4. 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.
  1. ABase indexed
  2. BBase indexed plus displacement
  3. CIndexed
  4. 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)
The octal number 326.4 is equivalent to :
  1. A(214.2)₁₀ and (D6.8)₁₆
  2. B(212.5)₁₀ and (D6.8)₁₆
  3. C(214.5)₁₀ and (D6.8)₁₆
  4. D(214.5)₁₀ and (D6.4)₁₆
Show answerHide answer

Correct answer: (C) (214.5)₁₀ and (D6.8)₁₆

Explanation

(326.4)₈ = (3 × 8² + 2 × 8¹ + 6 × 8⁰ + 4 × 8⁻¹)₁₀ = (214.5)₁₀. (326.4)₈ = (011 010 110.100)₂ = (1101 0110.1000)₂ = (D6.8)₁₆.

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?
  1. ASign–magnitude
  2. B1's complement
  3. C2's complement
  4. 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
  1. AAB + CD + AB' + AD
  2. BAB + AC + AD + BCD
  3. CAB + AD + BC + ACD
  4. 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.
  1. AEXCLUSIVE-OR
  2. BEXCLUSIVE-NOR
  3. CNAND
  4. DNOR
Show answerHide answer

Correct answer: (A) EXCLUSIVE-OR

Explanation

G1 = (x + y)'. G2 = (x + (x + y)')' = x'(x + y) = x'y. G3 = (y + (x + y)')' = y'(x + y) = xy'. f = x'y + xy' = x ⊕ y, i.e. EXCLUSIVE-OR.

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
  1. Aiii ii iv i
  2. Bii iv i iii
  3. Ciii iv i ii
  4. 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 :
  1. Aq
  2. Bp ∧ r
  3. Cp ∨ r
  4. 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
  1. A(i) and (ii)
  2. B(ii) and (iii)
  3. C(iii), (iv) and (v)
  4. 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):
  1. ASynchronous counter
  2. BAsynchronous counter
  3. CParallel counter
  4. 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
  1. AStatus register
  2. BInterrupt service register
  3. CInterrupt mask register
  4. 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.
  1. ARegister direct
  2. BRegister indirect
  3. CBase indexed
  4. 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.
  1. A0.5100098
  2. B0.2096
  3. C0.52
  4. D0.4192
Show answerHide answer

Correct answer: (A) 0.5100098

Explanation

(0.4051)₈ = 0×8⁰ + 4×8⁻¹ + 0×8⁻² + 5×8⁻³ + 1×8⁻⁴ = 0 + 0.5 + 0 + 0.009765625 + 0.000244140625 = (0.510009765625)₁₀ ≈ 0.5100098

Q26UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
The hexadecimal equivalent of the octal number 2357 is :
  1. A2EE
  2. B2FF
  3. C4EF
  4. 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 :
  1. A11.......11
  2. B00.......00
  3. C100......0
  4. 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₀'
  1. AI, III, V
  2. BI, IV, VI
  3. CII, III, V
  4. 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?
  1. A0270H
  2. B01070H
  3. C01E0H
  4. D0370H
Show answerHide answer

Correct answer: (A) 0270H

Explanation

AX consists of AH and AL. mov al, 15 → AX = 000FH mov ah, 15 → AX = 0F0FH xor al, al → AX = 0F00H mov cl, 3 → AX = 0F00H, CL = 03 shr ax, cl → AX = 01E0H (shift right 3 times) add al, 90H → AX = 0170H, carry = 1 adc ah, 0 → AX = 0270H (adds the carry) So AX = 0270H.

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
  1. AAL = 0FH; CF = 1; SF = 1
  2. BAL = F0H; CF = 0; SF = 0
  3. CAL = F1H; CF = 1; SF = 1
  4. 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?
  1. ABlock address register and cache memory
  2. BControl address register and control memory
  3. CBranch register and cache memory
  4. 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?
  1. ALDAS rp
  2. BLHLD addr
  3. CLXI rp, data
  4. 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.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. 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.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. 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)
  1. AOnly R1 is correct
  2. BOnly R2 is correct
  3. CBoth R1 and R2 are correct
  4. 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 :
  1. A7353
  2. B1353
  3. C5651
  4. 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
  1. A(A + C) . D + B
  2. B(A + B) . C + D
  3. C(A + D) . C + B
  4. 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.
  1. A[1 1 1 0] [0 1 1 0] [1 1 1 0] [1 0 1 1]
  2. B[1 1 0 1] [0 1 0 1] [1 1 1 0] [1 0 1 1]
  3. C[1 1 1 1] [0 1 1 0] [1 1 1 0] [1 0 1 1]
  4. D[1 1 1 0] [0 1 1 0] [1 0 1 1] [1 0 1 1]
Show answerHide answer

Correct answer: (A) [1 1 1 0] [0 1 1 0] [1 1 1 0] [1 0 1 1]

Explanation

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 :
  1. Aax = 003CH; CF = 0
  2. Bax = 001EH; CF = 0
  3. Cax = 007BH; CF = 1
  4. 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.
  1. A0*1+0*1*
  2. B0*10+1*
  3. C0*1*0*1+
  4. 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...............
  1. ABoth deterministic and fully observable
  2. BNeither deterministic nor fully observable
  3. CDeterministic but not fully observable
  4. 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.