Week - 3 | Chapter 1 Answers | Programming for Everybody (Getting started with Python) By Cousera | Solutions
TechTalkBot brings you solution for Week - 3 | Chapter 1 Answers | Programming for Everybody (Getting started with Python) By Cousera | Solutions
1. When Python is running in the interactive mode and displaying the chevronprompt (>>>) - what question is Python asking you?
What Python script wpuld you like me to run?
What is the next machine language instruction to run?
What Python statement would you like me ti run?
What is your favourite color?
2. What will the following program print out:
20
5
15
"print x"
x + 5
3. Python scripts (files) have names that end with:
.exe
.py
.doc
.png
4. Which of these words are reserved words in Python ?
if
make
todo
break
concat
While
6. Which of the parts of a computer actually executes the program instructions?
Input/Output Devices
Central Processing Unit
Main Memory
Secondary Memory
7. What is "code" in the context of this course?
A password we use to unlock Python features
A set of rules that govern the style of programs
A way to encrypt data during Word War II
Memory A sequence of instructions in a programming language
8. A USB memory stick is an example of which of the following components of computer architecture?
Secondary Memory
Main Memory
Output Device
Central Processing Unit
9. What is the best way to think about a "Syntax Error" while Programming?
The computer is overheating and just wants you to stop to let it cool down
The computer needs to have its software upgraded
The computer has used GPS to find your location and hates everyone from your town
The computer did not understand the statement that you entered
10. Which of the following is not one of the programming patterns covered in chapter 1?
Repeated Steps
Conditional Steps
Sequential Steps
Random Steps