Python Boolean MCQs with Answers

Download NCERT MCQs for : Boolean

Explore reliable objective questions for Boolean tailored for learners. Utilizing these multiple-choice formats ensures thorough preparation and strengthens problem-solving speed for upcoming school assessments.

Chapter-wise Objective Questions: Boolean

View or download the dedicated Boolean MCQ resource below. Practicing these 50 objective questions regularly builds familiarity with standard exam patterns and helps secure higher marks in final evaluations.

Question. What will be the output of the following Python code snippet?
\( \text{bool}(‘False’) \)
\( \text{bool}() \)

(a) True True
(b) False True
(c) False False
(d) True False
Answer: (d)
Explanation: The Boolean function returns true if the argument passed to the bool function does not amount to zero. In the first example, the string ‘False’ is passed to the function bool. This does not amount to zero and hence the output is true. In the second function, an empty list is passed to the function bool. Hence the output is false.

Question. What will be the output of the following Python code snippet?
['hello', 'morning'][\( \text{bool}(‘’) \)]

(a) error
(b) no output
(c) hello
(d) morning
Answer: (c)
Explanation: The line of code shown above can be simplified to state that ‘hello’ should be printed if the argument passed to the Boolean function amounts to zero, else ‘morning’ will be printed.

Question. What will be the output of the following Python code snippet?
\( \text{not}(3>4) \)
\( \text{not}(1\&1) \)

(a) True True
(b) True False
(c) False True
(d) False False
Answer: (b)
Explanation: The function not returns true if the argument amounts to false, and false if the argument amounts to true. Hence the first function returns false, and the second function returns false.

Question. What will be the output of the following Python code?
['f', 't'][\( \text{bool}(‘spam’) \)]

(a) t
(b) f
(c) No output
(d) Error
Answer: (a)
Explanation: The line of code can be translated to state that ‘f’ is printed if the argument passed to the Boolean function amount to zero. Else ‘t’ is printed. The argument given to the Boolean function in the above case is ‘spam’, which does not amount to zero. Hence the output is t.

Question. What will be the output of the following Python code?
\( l=[1, 0, 2, 0, 'hello', '', []] \)
\( \text{list}(\text{filter}(\text{bool}, l)) \)

(a) Error
(b) [1, 0, 2, 0, ‘hello’, ”, []]
(c) [1, 0, 2, ‘hello’, ”, []]
(d) [1, 2, ‘hello’]
Answer: (d)
Explanation: The code shown above returns a new list containing only those elements of the list l which do not amount to zero. Hence the output is: [1, 2, ‘hello’].

Question. What will be the output of the following Python code if the system date is 21st June, 2017 (Wednesday)?
[] or {}
{} or []

(a) [] {}
(b) [] []
(c) {} []
(d) {} {}
Answer: (c)
Explanation: The code shown above shows two functions. In both the cases the right operand is returned. This is because each function is evaluated from left to right. Since the left operand is false, it is assumed that the right operand must be true and hence the right operand is returned in each of the above case.

Question. What will be the output of the following Python code?
class Truth:
    pass
x=Truth()
bool(x)

(a) pass
(b) true
(c) false
(d) error
Answer: (b)
Explanation: If the truth method is not defined, the object is considered true. Hence the output of the code shown above is true.

Question. What will be the output of the following Python code?
if \( (9 < 0) \) and \( (0 < -9) \):
    print("hello")
elif \( (9 > 0) \) or False:
    print("good")
else:
    print("bad")

(a) error
(b) hello
(c) good
(d) bad
Answer: (c)
Explanation: The code shown above prints the appropriate option depending on the conditions given. The condition which matches is (9>0), and hence the output is: good.

Question. Which of the following Boolean expressions is not logically equivalent to the other three?
(a) \( \text{not}(-6<0 \text{ or } -6>10) \)
(b) \( -6>=0 \text{ and } -6<=10 \)
(c) \( \text{not}(-6<10 \text{ or } -6==10) \)
(d) \( \text{not}(-6>10 \text{ or } -6==10) \)
Answer: (d)
Explanation: The expression not(-6<0 or -6>10) returns the output False. The expression -6>=0 and -6<=10 returns the output False. The expression not(-6<10 or -6==10) returns the output False. The expression not(-6>10 or -6==10) returns the output True.

Question. What will be the output of the following Python code snippet?
\( \text{not}(10<20) \) and \( \text{not}(10>30) \)

(a) True
(b) False
(c) Error
(d) No output
Answer: (b)
Explanation: The expression not(10<20) returns false. The expression not(10>30) returns true. The and operation between false and true returns false. Hence the output is false.

Practice MCQs for Boolean

Download Multiple Choice Questions: Boolean ( )

Review structured objective questions for Boolean. Built according to official NCERT guidelines, these MCQ sets support daily revision and core concept reinforcement.

Concept Clarification for Boolean

Cross-reference your completed choices with comprehensive NCERT solutions for to ensure absolute clarity across all sub-topics in this chapter.

Additional Study Resources for

Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.

FAQs

Where can I access latest Python Boolean MCQs with Answers?

You can get most exhaustive Python Boolean MCQs with Answers for free on StudiesToday.com. These MCQs for are updated for the 2026-27 academic session as per examination standards.

Are Assertion-Reasoning and Case-Study MCQs included in the [current-page:node:field_subject] [current-page:node:field_class] material?

Yes, our Python Boolean MCQs with Answers include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the paper is now competency-based.

How do practicing [current-page:node:field_subject] MCQs help in scoring full marks in [current-page:node:field_class] exams?

By solving our Python Boolean MCQs with Answers, students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the .

Do you provide answers and explanations for Python Boolean MCQs with Answers?

Yes, MCQs for have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused exams.

Can I practice these [current-page:node:field_subject] [current-page:node:field_class] MCQs online?

Yes, you can also access online interactive tests for Python Boolean MCQs with Answers on StudiesToday.com as they provide instant answers and score to help you track your progress in .