CS 1301: Module 1

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/129

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:24 AM on 9/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

130 Terms

1
New cards
term image

E

2
New cards
term image

B

3
New cards
term image
knowt flashcard image
4
New cards
term image

D

5
New cards
term image

AC

6
New cards
term image
knowt flashcard image
7
New cards
term image

ABC

8
New cards
term image

ABCD

9
New cards
term image

CD

10
New cards
term image

BC

11
New cards
term image

C

12
New cards
term image

A

13
New cards
term image

B

14
New cards
<p>what is the output</p>

what is the output

True

True

15
New cards
term image

BD

16
New cards
<p>what is the output</p>

what is the output


<p></p>
17
New cards
<p>what is the output</p>

what is the output

knowt flashcard image
18
New cards
term image

ABD

19
New cards
term image

ACEFG

20
New cards
term image

D

21
New cards
<p>What was the type of error that was printed? The text for this should be shown in IDLE, toward the end of the red text.</p><p>A) ZeroDivisionError</p><p>B) TypeError</p><p>C) NameError</p><p>D) ValueError</p><p>E) IndexError</p>

What was the type of error that was printed? The text for this should be shown in IDLE, toward the end of the red text.

A) ZeroDivisionError

B) TypeError

C) NameError

D) ValueError

E) IndexError

C

22
New cards
<p>Based on what was printed by the fifth line, what do you think the ** operator does?</p>

Based on what was printed by the fifth line, what do you think the ** operator does?

F

23
New cards
<p>Answer Question 1</p>

Answer Question 1

1

24
New cards
<p>Answer Question 2</p>

Answer Question 2

B

25
New cards
term image

ACD

26
New cards
term image

B

27
New cards
term image

E

28
New cards
<p>the variable b is what?</p>

the variable b is what?

an integer

29
New cards
<p>the variable c is what?</p>

the variable c is what?

a decimal number

30
New cards
<p>the variable d is what?</p>

the variable d is what?

Boolean

31
New cards
term image
knowt flashcard image
32
New cards
<p>Q1</p>

Q1

D

33
New cards
<p>Q2</p>

Q2

C

34
New cards
<p>c is what?</p>

c is what?

boolean

35
New cards
term image

A

36
New cards
<p>Q1</p>

Q1

A

37
New cards
<p>Q2</p>

Q2

B

38
New cards
<p>Q3</p>

Q3

C

39
New cards
<p>Q4</p>

Q4

B

40
New cards
<p>Q5</p>

Q5

A

41
New cards
term image
knowt flashcard image
42
New cards
term image

C

43
New cards
<p>what is the name of the first error?</p>

what is the name of the first error?

syntax error on line 3

44
New cards
<p>in reality, the computer will stop when it hits that first error and won’t try to run any more code, however, imagine that it skipped the line (in this case line three) that causes the first error. on what line will it encounter a second error?</p>

in reality, the computer will stop when it hits that first error and won’t try to run any more code, however, imagine that it skipped the line (in this case line three) that causes the first error. on what line will it encounter a second error?

line 6

45
New cards
<p>what type of error is line 6 called?</p>

what type of error is line 6 called?

NameError

46
New cards
<p>does this result in an error? If so, what type </p>

does this result in an error? If so, what type

SyntaxError

47
New cards
term image
knowt flashcard image
48
New cards
term image

ABCEF

49
New cards
term image
knowt flashcard image
50
New cards
<p>Q1</p>

Q1

Helloworld

51
New cards
<p>Q2</p>

Q2

None

52
New cards
term image
knowt flashcard image
53
New cards
term image

BCDE

54
New cards
term image
knowt flashcard image
55
New cards
<p>Q1</p>

Q1

ABC

56
New cards
<p>Q2</p>

Q2

BC

57
New cards
<p>Q3</p>

Q3

C

58
New cards
term image
knowt flashcard image
59
New cards
<p>convert the first into an int, the second to a float, the third to a boolean</p>

convert the first into an int, the second to a float, the third to a boolean

knowt flashcard image
60
New cards
<p>Q1</p>

Q1

B

61
New cards
<p>Q2</p>

Q2

A; reserved word ‘continue’ is used

62
New cards
term image

A; the coder used the function as variable name which is usually fine if you don’t actually use the function, but they did in line 4

63
New cards
<p>will this generate an error?</p>

will this generate an error?

yes, they used a function as a variable

64
New cards
term image
knowt flashcard image
65
New cards
<p>write some code that will print this output</p>

write some code that will print this output

66
New cards
<p>Q1</p>

Q1

AE

67
New cards
<p>Q2</p>

Q2

BF

68
New cards
term image

CD

69
New cards
term image

C

70
New cards
term image

E; remember it’s not ==

71
New cards
term image

B

72
New cards
term image
knowt flashcard image
73
New cards
term image

False

True

False

False

True

74
New cards
term image
knowt flashcard image
75
New cards
term image

ABEFG

76
New cards
term image

B

77
New cards
term image
knowt flashcard image
78
New cards
term image
knowt flashcard image
79
New cards
term image

AE

80
New cards
term image

ABE

81
New cards
term image

BC

82
New cards
term image

CDE

83
New cards
term image

CDE

84
New cards
term image

AE

85
New cards
term image

ABD

86
New cards
term image

AD

87
New cards
term image

ACD

88
New cards
term image

AB

89
New cards
term image

BCD

90
New cards
term image
knowt flashcard image
91
New cards
term image

DEHKL

92
New cards
term image

ABCFG

93
New cards
<p>Q1</p>

Q1

A

94
New cards
<p>Q2</p>

Q2

D

95
New cards
<p>print(a + b * c)</p>

print(a + b * c)

15

96
New cards
<p>print((a <em> b) / (2 </em> a))</p>

print((a b) / (2 a))

2.0

97
New cards
<p>print(a / (b - 2 * c))</p>

print(a / (b - 2 * c))

An error message

98
New cards
<p>Q1</p>

Q1

0

99
New cards
<p>Q3</p>

Q3

1

100
New cards
<p>Q2</p>

Q2

3