-
Notifications
You must be signed in to change notification settings - Fork 32
/
Week 3 Chapter 1 quiz answers
62 lines (27 loc) · 1.25 KB
/
Week 3 Chapter 1 quiz answers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Week3 - Chapter 1- Quiz 1
Q-1 When Python is running in the interactive mode and displaying the chevron prompt (>>>) – what question is Python asking you?
answer- What would you like to do?
2. What will the following program print out:
>>> x = 15;
>>> x = x + 5;
>>> print x
answer- 20
3.) Python scripts (files) have names that end with:
answrs- .py
4.) Which of these words are reserved words in Python ?
answer- if
break
5. ) What is the proper way to say “good-bye” to Python?
answer- quit()
6.) Which of the parts of a computer actually executes the program instructions?
answer- Central Processing Unit
7.) What is “code” in the context of this course?
answer- 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?
answer- Secondary Memory
9.) What is the best way to think about a “Syntax Error” while programming?
answer- 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?
answer- Random steps
for any other query/help-
contact - [email protected]