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

← All stacks

Theory

122/268

Exam MCQ

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 — output — [1, 2, 3]. y is the same list, not a copy. Classic MCQ trap.

Exam tip

Dry-run on paper before you look at options.

Example

# Exam MCQ
x = [1, 2]
y = x
y.append(3)
print(x)

Exam MCQ — output: [1, 2, 3]. y is the same list, not a copy. Classic MCQ trap.

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 — output: [1, 2, 3].

Questions

1

Explain Exam MCQ 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?

Previous← SQLite in PythonNextExam MCQ 2 →
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.