Questions and Answers| Latest Update
(chapter 1) When Python is running in the interactive mode and displaying the chevron prompt
(>>>) - what question is Python asking you?
A. What would you like to do?
B. What Python script would you like me to run?
C. What is your favourite color?
D. What is the next machine language instruction to run? Correct Ans-A
(chapter 1) What will the following program print out:
>>> x = 15
>>> x = x + 5
>>> print(x)
A. 20
B. 5
C. 15
D. "print x"
E. x + 5 Correct Ans-A
(chapter 1) Python scripts (files) have names that end with:
A. .png
B. .exe
C. .py
D. .doc Correct Ans-C
, Py4E Getting started with Python-
Questions and Answers| Latest Update
(chapter 1) Which of these words is a reserved word in Python ?
A. while
B. payroll
C. names
D. pizza Correct Ans-A
(chapter 1) What is the proper way to say "good-bye" to Python?
A. // stop
B. #EXIT
C. while
D. quit() Correct Ans-D
(chapter 1) Which of the parts of a computer actually executes the program instructions?
A. Secondary Memory
B. Central Processing Unit
C. Main Memory
D. Input/Output Devices Correct Ans-B
(chapter 1) What is "code" in the context of this course?
A. A set of rules that govern the style of programs
, Py4E Getting started with Python-
Questions and Answers| Latest Update
B. A way to encrypt data during World War II
C. A sequence of instructions in a programming language
D. A password we use to unlock Python features Correct Ans-C
(chapter 1) A USB memory stick is an example of which of the following components of
computer architecture?
A. Main Memory
B. Central Processing Unit
C. Secondary Memory
D. Output Device Correct Ans-C
(chapter 1) What is the best way to think about a "Syntax Error" while programming?
A. The computer needs to have its software upgraded
B. The computer has used GPS to find your location and hates everyone from your town
C. The computer is overheating and just wants you to stop to let it cool down
D. The computer did not understand the statement that you entered Correct Ans-D
(chapter 1) Which of the following is not one of the programming patterns covered in Chapter 1?
A. Conditional Steps
B. Repeated Steps
C. Sequential Steps