ITSCM 180 EXAM 1 UPDATED ACTUAL QUESTIONS AND
CORRECT ANSWERS
Question:
1. String constants have to be placed only in single quotes (') to be recognized by Python.
Answer:
True
Question:
2. Which of the following is an allowed name for a variable in Python?
- 442account
- account442
- #442account
- account.442
Answer:
account442
Question:
3. What would be the output of the following Python program?
>>> chair = 120 >>> CHAIR = 10 >>> Print (chair):
- 120
- 10
- chair
- None of the above
Answer:
120
Question:
4. What would be the output of the following Python program?
>>> chair = 120 >>> CHAIR = 10 >>> Print ('chair')
-120
-10
-chair
-None of the above
Answer:
chair
Question:
5. x**y
Answer:
square/cubed
Question:
6. %x
CORRECT ANSWERS
Question:
1. String constants have to be placed only in single quotes (') to be recognized by Python.
Answer:
True
Question:
2. Which of the following is an allowed name for a variable in Python?
- 442account
- account442
- #442account
- account.442
Answer:
account442
Question:
3. What would be the output of the following Python program?
>>> chair = 120 >>> CHAIR = 10 >>> Print (chair):
- 120
- 10
- chair
- None of the above
Answer:
120
Question:
4. What would be the output of the following Python program?
>>> chair = 120 >>> CHAIR = 10 >>> Print ('chair')
-120
-10
-chair
-None of the above
Answer:
chair
Question:
5. x**y
Answer:
square/cubed
Question:
6. %x