AND CORRECT ANSWER WITH EXPLANATION GRADED
A+ STUDY GUIDE SOUTHERN NEW HAMPSHIRE
UNIVERSITY
1. Python is:
A. Hardware language
B. High-level programming language
C. Database system
D. Operating system
Answer: B
Rationale: Python is a high-level programming language.
2. Python was created by:
A. Bill Gates
B. Guido van Rossum
C. Elon Musk
D. James Gosling
Answer: B
Rationale: Python was developed by Guido van Rossum.
3. Python is:
A. Compiled only
B. Interpreted language
C. Machine code
D. Assembly only
Answer: B
Rationale: Python executes line by line.
4. Python file extension is:
A. .java
B. .py
C. .exe
D. .cpp
Answer: B
Rationale: Python source files use .py.
,5. print() function is used for:
A. Input
B. Output
C. Looping
D. Deleting
Answer: B
Rationale: Displays output.
6. input() function is used for:
A. Output
B. User input
C. Deleting files
D. Looping
Answer: B
Rationale: Reads user input.
7. Variable in Python is:
A. Fixed value
B. Storage for data
C. Function only
D. OS component
Answer: B
Rationale: Holds data values.
8. Python is case-sensitive:
A. False
B. True
C. Sometimes
D. Never
Answer: B
Rationale: Upper/lowercase matters.
9. Comments in Python start with:
A. //
B. #
C. /* */
D. $$
Answer: B
Rationale: # is comment symbol.
, 10. Multi-line comments use:
A. //
B. """ """
C. ##
D. $$
Answer: B
Rationale: Triple quotes.
11. Data type of 10 is:
A. String
B. Integer
C. Float
D. Boolean
Answer: B
Rationale: Whole number.
12. Data type of 3.5 is:
A. Integer
B. Float
C. String
D. Char
Answer: B
Rationale: Decimal number.
13. Data type of "Hello" is:
A. Integer
B. String
C. Float
D. Boolean
Answer: B
Rationale: Text type.
14. Boolean values are:
A. 0 and 1
B. True and False
C. Yes and No
D. A and B
Answer: B
Rationale: Logical values.