Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

2025 COMP 348 - Python 50 Midterm Practice MCQs (Answers NOT Included) Principles of Programming Languages Concordia University

Rating
-
Sold
-
Pages
15
Grade
A+
Uploaded on
05-10-2025
Written in
2025/2026

2025 COMP 348 - Python 50 Midterm Practice MCQs (Answers NOT Included) Principles of Programming Languages Concordia University

Content preview

COMP 348 - Python 50 Midterm Practice MCQs
(Answers NOT Included) Principles of Programming
Languages Concordia University




COMP 348 - PYTHON 50 Midterm
Practice MCQs


1. Which of the following is NOT one of the first 10 principles in the Zen of Python?
A. Complex is better than complicated
B. Errors should never pass silently
C. Flat is better than nested
D. Sparse is better than dense
E. Now is better than never

2. Which Zen principle directly enforces that code layout must be consistent?
A. Beautiful is better than ugly
B. Flat is better than nested
C. Readability counts
D. Special cases aren’t special enough to break the rules
E. Namespaces are one honking great idea

3. In Python, code blocks are delimited by:
A. { }

, B. Semicolons ;
C. Whitespace indentation
D. BEGIN/END keywords
E. Parentheses ()

4. Mixing tabs and spaces in the same file in Python raises:
A. SyntaxError
B. TabError
C. IndentationError
D. TypeError
E. No error—Python auto-converts them

5. Forgetting the colon after an if header causes:
A. SyntaxError

Written for

Study
Unknown

Document information

Uploaded on
October 5, 2025
Number of pages
15
Written in
2025/2026
Type
Exam (elaborations)
Contains
Only questions

Subjects

CA$22.43
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Thumbnail
Package deal
ALL IN ONE 2025-2026 EXAM PREP SOLUTIONS FOR COMP 348 Principles of Programming Languages (sample of midterm & final exam papers + lecture notes) Concordia University
-
4 2025
CA$ 55.41 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartzone Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
3397
Member since
6 year
Number of followers
2297
Documents
14709
Last sold
3 days ago
AMAIZING EDUCATION WORLD

GET ALL KIND OF EXAMS ON THIS PAGE ,COMPLETE TEST BANKS,SUMMARIES,STUDY GUIDES,PROJECT PAPERS,ASSIGNMENTS,CASE STUDIES, YOU CAN ALSO COMMUNICATE WITH THE SELLER FOR ANY PRE-ORDER,ORDER AND ETC.

3.6

613 reviews

5
271
4
96
3
109
2
32
1
105

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions