PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

Python · Theory

Exam MCQ 2

← All stacks

Theory

123/268

Exam MCQ 2

MCQs test exact output and tiny traps — indent, == vs =, list vs tuple, mutable default args, is vs ==.

How to practise: read the snippet, write the output on paper, then run. If wrong, note the trap. That is better than mugging 200 random questions.

Exam MCQ 2 — output — False, True, True. Empty list is falsy; [0] is truthy.

Exam tip

Dry-run on paper before you look at options.

Example

# Exam MCQ 2
print(bool([]))
print(bool([0]))
print("Asha" == "Asha")

Exam MCQ 2 — output: False, True, True. Empty list is falsy; [0] is truthy.

Short notes

  • DefMCQs test exact output and tiny traps: indent, == vs =, list vs tuple, mutable default args, is vs ==.
  • RuleHow to practise: read the snippet, write the output on paper, then run.
  • RememberExam MCQ 2 — output: False, True, True.

Questions

1

Explain Exam MCQ 2 as if you are teaching a junior — definition, then one tiny script.

2

What does the example print, and why?

3

What mistake do freshers make with Exam MCQ 2?

Previous← Exam MCQNextTkinter GUI in Python →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.