0% found this document useful (0 votes)
10 views

MCQ 12

Uploaded by

batmanop005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

MCQ 12

Uploaded by

batmanop005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MCQ Computer Science class XII

Q1 According to the Principle of Duality, the Boolean equation


(A+B’) (A+1)=A+B’ will be equivalent to
(a) (A’+B) (A+1)=A’+B
(b) (A.B’)+(A.0)=A.B’
(c) A’B+A’.1=A’B
(d) A’B+A’.0=A’B
Q2 If ( x => ~y ) then, its inverse will be:
(a) x => y (b) y => x (c) ~y => x (d) ~x => y
Q3 When a sequence of OR, NOT, NOR are connected in series, the logic gate obtained, is AND
(a) AND b) OR c)NOT d) XOR
Q4 Idempotence Law states that:
(a) X+X=0 (b)X+X=X (c) X+X’=1 (d) X’’=X

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’

Q6 The proposition ~( a ∧ b ) V (~a => b) is a:


(a) Contradiction (b) Contingency (c) Tautology (d) Implication

Q7 What is the primary purpose of a K-Map?


A) To simplify digital circuits B) To design digital circuits C) To analyze analog circuits D) To test digital circuits

Q8 Which of the following is a characteristic of a K-Map?


A) It is a graphical representation of a truth table B) It is a tabular representation of a digital circuit
C) It is a mathematical representation of a digital circuit D) It is a logical representation of an analog circuit

Q9 What is the number of rows and columns in a 2-variable K-Map?


A) 2 rows, 2 columns B) 4 rows, 4 columns C) 4 rows, 2 columns D) 2 rows, 4 columns

Q10. How many variables can be handled by a 4x4 K-Map?


A) 2 variables B) 3 variables C) 4 variables D) 5 variables

Q11 Consider the Boolean function: F(w, x, y, z) = ∑(0, 2, 5, 7)


Which is the Canonical form of above cardinal form?
A) w'x'y'z' + w'x'yz’ + w’xy'z + w’xyz B) w'x'y'z + w'x'y'z' + wx'y'z + wx'y'z'
C) w'x'y'z' + wx'y'z + w'x'y'z + wx'y'z' D) w'x'y'z + wx'y'z' + w'x'y'z' + wx'y'z

Q12 Encoders are used for:


(a) Adding two bits (b) Converting Decimal to Binary (c) Converting Binary to Decimal (d) Data transmission

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

Q14 What is the purpose of select lines in a multiplexer?


A) To enable/disable the multiplexer B) To select the input to be transmitted C) To increase the speed of the multiplexer
D) To decrease the power consumption

Q15 What is method overriding in Java?


a) A class has multiple methods with the same name but different parameters.
b) A subclass provides a specific implementation of a method already defined in its superclass.
c) Overriding a method in a superclass by using the super keyword.
d) Changing the method signature in the subclass.

Q16 Transitive nature of inheritance is implemented through:


(A) Single inheritance (B) Multiple inheritance (C) Hybrid inheritance (D) Multilevel inheritance

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.

Q18 What type of inheritance is not supported in Java?


a) Single inheritance b) Multilevel inheritance c) Multiple inheritance using classes d) Hybrid inheritance

Q19 What is the prefix form of the infix expression (A + B) * (C - D)?


a) * + A B - C D b) + * A B C D c) A B + C D - * d) A + B * C – D

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

Q24 What is the output of the code given below?


int i,j;
for( i=1; i<=5;i++);
for(j=i+1;j <1;j++);
System.out.print(i + "+" + j) ;
(a) 67 (b) 1+2 (c) 6+7 (d) 12

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

Q28 Assertion: An array can store elements of different data types.


Reasoning: In Java, an array can only hold elements of the same data type. If you want to store different data types, you would need
to use an array of objects.
(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation ofAssertion (A)
(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation ofAssertion(A)
(c) Assertion (A) is true and Reason (R) is false
(d) Assertion (A) is false and Reason (R) is true

Q28 What is the output of the statement given below? System.out.print(Integer.parseInt(“234”)+’A’);


(a) 234+65 (b) 234A (c) 299 (d) ERROR

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

Q30 The proposition (a <=> b ) is represented by:


(a) a'b’ + ab
(b) (a'+b’) · (a+b)
(c) (a+b)’
(d) (a·b)’

You might also like