Professional Documents
Culture Documents
This set of Discrete Mathematics Multiple Choice Questions & Answers (MCQs) focuses on “Logic
and Bit Operations”.
View Answer
Answer: c
Explanation: Flip each of the bit to get the negation of the required string.
advertisement
https://www.sanfoundry.com/discrete-mathematics-questions-answers-logic-bit-operations/ 1/7
5/21/2021 Logic & Bit Operations - Discrete Mathematics Questions and Answers - Sanfoundry
View Answer
Answer: d
Explanation: Output of and is 1 when both other inputs are one.
3. How many bits string of length 4 are possible such that they contain 2 ones and 2 zeroes?
a) 4
b) 2
c) 5
d) 6
View Answer
Answer: d
Explanation: The strings are {0011, 0110, 1001, 1100, 1010 and 0101}.
4. If a bit string contains {0, 1} only, having length 5 has no more than 2 ones in it. Then how many
such bit strings are possible?
a) 14
b) 12
c) 15
d) 16
View Answer
https://www.sanfoundry.com/discrete-mathematics-questions-answers-logic-bit-operations/ 2/7
5/21/2021 Logic & Bit Operations - Discrete Mathematics Questions and Answers - Sanfoundry
Answer: d
Explanation: The total strings are 1(having no one in it) +5(having 1 one in it) +10 (having 2 ones in
it) = 16.
View Answer
Answer: d
Explanation: In Ex-or if both the inputs are same then output is 0 otherwise 1.
View Answer
Answer: c
Explanation: In Ex-nor if both the inputs are same then output is 1 otherwise 0.
advertisement
https://www.sanfoundry.com/discrete-mathematics-questions-answers-logic-bit-operations/ 3/7
5/21/2021 Logic & Bit Operations - Discrete Mathematics Questions and Answers - Sanfoundry
View Answer
Answer: c
Explanation: Negate every bit in one’s complement.
View Answer
Answer: c
Explanation: In two’s complement negate every bit from left until the rst one from right is
encountered.
9. If in a bits string of {0,1}, of length 4, such that no two ones are together. Then the total number
of such possible strings are?
a) 1
b) 5
c) 7
d) 4
View Answer
Answer: c
Explanation: Strings can be {1001, 1010, 0101, 1000, 0100, 0010, 0001}.
advertisement
https://www.sanfoundry.com/discrete-mathematics-questions-answers-logic-bit-operations/ 4/7
5/21/2021 Logic & Bit Operations - Discrete Mathematics Questions and Answers - Sanfoundry
10. Let A: “010101”, B=?, If { A (Ex-or) B } is a resultant string of all ones then which of the following
statement regarding B is correct?
a) B is negation of A
b) B is 101010
c) {A (and) B} is a resultant string having all zeroes
d) All of the mentioned
View Answer
Answer: d
Explanation: In Ex-or both if both the inputs are the same then output is 0 otherwise 1.
To practice all areas of Discrete Mathematics, here is complete set of 1000+ Multiple Choice
Questions and Answers.
Participate in the Sanfoundry Certi cation contest to get free Certi cate of Merit. Join our social
networks below and stay updated with latest contests, videos, internships and jobs!
Join Sanfoundry@YouTube
https://www.sanfoundry.com/discrete-mathematics-questions-answers-logic-bit-operations/ 5/7
5/21/2021 Logic & Bit Operations - Discrete Mathematics Questions and Answers - Sanfoundry
Recommended Posts:
1. Java Programming Examples
2. C# Programming Questions and Answers
3. Simple Java Programs
4. Java Programming Examples on Set & String Problems & Algorithms
5. Automata Theory Questions and Answers
6. C Programming Examples on Set & String Problems & Algorithms
7. C# Programming Examples on Data Structures
8. Python Programming Examples on Stacks & Queues
9. C# Programming Examples
10. C# Programming Examples on Mathematics
11. Engineering Mathematics Questions and Answers
12. C Programming Examples
13. Java Programming Examples on String Handling
14. Mathematics Questions and Answers – Class 12
15. C Programming Examples on Strings
16. Home
17. Mathematics Questions and Answers – Class 11
18. C# Programming Examples on Strings
19. C Programming Examples on Bitwise Operations
20. Discrete Mathematics Questions and Answers
advertisement
https://www.sanfoundry.com/discrete-mathematics-questions-answers-logic-bit-operations/ 6/7
5/21/2021 Logic & Bit Operations - Discrete Mathematics Questions and Answers - Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at
Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate
about competency developments in these areas. He lives in Bangalore and
delivers focused training sessions to IT professionals in Linux Kernel, Linux
Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C
Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols
such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Youtube |
Instagram | Facebook | Twitter
Name*
Email*
Subscribe
About | Certi cations | Internships | Jobs | Privacy Policy | Terms | Copyright | Contact
https://www.sanfoundry.com/discrete-mathematics-questions-answers-logic-bit-operations/ 7/7