Kenneth A. Lambert, 2021 | All 1-13 Chapters Covered With Questions And
Verified Solutions With Detailed Rationales And Case Studies.
, TABLE OF CONTENT
Part 1: Introduction to Computer Science and Programming
• Chapter 1: Introduction
• Chapter 2: Software Development, Data Types, and Expressions
• Chapter 3: Loops and Selection Statements (Control Statements)
Part 2: Data Structures and Design
• Chapter 4: Strings and Text Files
• Chapter 5: Lists and Dictionaries
• Chapter 6: Design with Functions
• Chapter 7: Design with Recursion (New standalone chapter in this edition)
Part 3: Advanced Topics and Applications
• Chapter 8: Simple Graphics and Image Processing
• Chapter 9: Graphical User Interfaces (GUI)
• Chapter 10: Design with Classes
• Chapter 11: Data Analysis and Visualization (New chapter in this edition)
• Chapter 12: Multithreading, Networks, and Client/Server Programming
• Chapter 13: Searching, Sorting, and Complexity Analysis
, Chapter 1: Introduction
1. Which best describes Python?
A. A low-level machine language
B. A high-level programming language
C. A hardware configuration tool
D. A database system
Correct Answer: B
Rationale: Python is a high-level language designed for readability and abstraction from hardware
details.
2. Who created Python?
A. Dennis Ritchie
B. Guido van Rossum
C. Bill Gates
D. James Gosling
Correct Answer: B
Rationale: Python was developed by Guido van Rossum in the late 1980s.
3. Python is primarily designed to be:
A. Difficult and strict
B. Readable and beginner-friendly
C. Hardware-dependent
D. Assembly-based
Correct Answer: B
Rationale: Python emphasizes simplicity and readability.
4. What type of language is Python?
A. Compiled only
B. Interpreted
C. Machine-only
D. Binary code
Correct Answer: B
Rationale: Python executes code line-by-line using an interpreter.
5. Which symbol is used for comments in Python?
, A. //
B. <!-- -->
C. #
D. **
Correct Answer: C
Rationale: # is used for single-line comments.
6. What is the correct Python output function?
A. echo()
B. display()
C. print()
D. show()
Correct Answer: C
Rationale: print() displays output in Python.
7. Python files typically use which extension?
A. .java
B. .py
C. .exe
D. .txt
Correct Answer: B
Rationale: .py is the standard Python file extension.
8. What is the role of an interpreter?
A. Converts code line-by-line into machine instructions
B. Designs software automatically
C. Stores variables permanently
D. Compiles all programs before execution
Correct Answer: A
Rationale: Interpreters execute code step-by-step.
9. Which of the following is NOT a Python feature?
A. Easy syntax
B. Cross-platform compatibility
C. Compiled-only execution
D. Dynamic typing
Correct Answer: C
Rationale: Python is interpreted, not compiled-only.