MCQ 12
MCQ 12
Q5 If A=1, B=0, C=0 and D=1, then the maxterm will be:
(a) AB’C’D (b) A’BCD’ (c) A+B’+C’+D (d) A’+B+C+D’
Q13 If the input in a decoder is A’BC’D, then the decimal equivalent output will be:
(a) 8 (b) 10 (c) 5 (d) 6
Q17 What is the access level of the inherited members of a superclass in a subclass if they are marked as private in the superclass?
a) They are accessible in the subclass. b) They are not accessible in the subclass.
c) They are accessible only via the super keyword. d) They become protected in the subclass.
Q20 A matrix MAT[10][15] is stored in the memory in Row Major Wise with each element requiring 2 bytes of storage. If the base address at
MAT[1][2] is 2215, then the address of MAT[3][7] will be:
(a) 2285 (b) 2315 (c) 2319 (d) None of the above
Q21 Assertion (A): Java allows methods to change the value of primitive variables passed as arguments. Reason (R): Java passes all arguments,
including primitives, by reference.
a) Both A and R are true, and R is the correct explanation of A
b) Both A and R are true, but R is not the correct explanation of A
c) A is true, but R is false
d) A is false, and R is false
Q22 What is the main advantage of a circular queue over a linear queue?
a) It allows dynamic memory allocation b) It has less time complexity
c) It allows more efficient use of space d) It supports random access of elements
Q23 Assertion (A): In a stack, the top element is always removed first. Reason
(R): Stack follows the Last In First Out (LIFO) principle.
a) Both A and R are true, and R is the correct explanation of A
b) Both A and R are true, but R is not the correct explanation of A
c) A is true, but R is false
d) A is false, but R is true
Q25 Reduce the given Boolean function F(A,B,C,D) = ∑(0,2,4,8,9,10,12,13) by using 4-variable Karnaugh map and answer the following
questions:
(a) What will be the least number of groups and their types formed for reduction?
(i) 6 pairs
(ii) 2 quad and 2 pairs
(iii) 1 quad and 3 pairs
(iv) 3 quads
Q26 The reduced expression for the Boolean expression F(X,Y,Z) = ∑(0,1,2,3,4,5,6,7) is:
(a) XY’ + X’Y (b) 1 (c) 0 (d) None of the above
Q27 Assertion: The this keyword in Java refers to the current instance of the class.
Reasoning: The this keyword is a reference to the current object on which a method is being invoked. It is used to avoid naming
conflicts between class attributes and method parameters.
(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A)
(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion(A)
(c) Assertion (A) is true and Reason (R) is false
(d) Assertion (A) is false and Reason (R) is true
Q29 The basic logic gate that represents the simplification of the Boolean expression A.(A’+B). (A+B) is
(a) OR gate
(b) NOT gate
(c) AND gate
(d) None of the above