AND CORRECT ANSWER WITH EXPLANATIONGRADED A+
STUDY GUIDE SOUTHERN NEW HAMPSHIRE UNIVERSITY
1. Python is a:
A. Programming language
B. Hardware device
C. Browser
D. Operating system only
Answer: A
Rationale: Python is a high-level programming language.
2. Python was created by:
A. Guido van Rossum
B. Bill Gates
C. Elon Musk
D. James Gosling
Answer: A
Rationale: Guido van Rossum designed Python.
3. Python is known for being:
A. Easy to read and write
B. Machine-only language
C. Very complex only
D. Hardware-based
Answer: A
Rationale: Python has simple syntax.
4. A Python program is executed by:
A. Interpreter
B. Compiler only
C. CPU only
D. Browser
Answer: A
Rationale: Python is interpreted.
5. Python file extension is:
A. .py
, B. .exe
C. .doc
D. .html
Answer: A
Rationale: Python scripts use .py extension.
6. print() function is used to:
A. Display output
B. Store data
C. Take input
D. Delete files
Answer: A
Rationale: It outputs text to screen.
7. input() function is used to:
A. Take user input
B. Print output
C. Delete data
D. Run loops
Answer: A
Rationale: It reads user input.
8. Variable in Python is:
A. Storage location for data
B. Constant value
C. Function only
D. File type
Answer: A
Rationale: It stores values.
9. Python variable naming rules require:
A. No spaces
B. Must start with number
C. Must use symbols only
D. Must be uppercase only
Answer: A
Rationale: Names must follow syntax rules.
10. Data type int represents:
A. Whole numbers
, B. Decimal numbers
C. Text
D. Boolean only
Answer: A
Rationale: Integers are whole numbers.
11. float represents:
A. Decimal numbers
B. Whole numbers
C. Text
D. Boolean
Answer: A
Rationale: Float stores decimals.
12. str represents:
A. Text data
B. Numbers
C. Boolean
D. Lists only
Answer: A
Rationale: String stores characters.
13. bool represents:
A. True or False
B. Numbers
C. Text
D. Lists
Answer: A
Rationale: Boolean values.
14. List in Python is:
A. Ordered collection
B. Single value
C. Constant only
D. File type
Answer: A
Rationale: Stores multiple items.
15. Tuple is:
A. Immutable list