stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Week 9 Flashcards | StudBud
Explore
/
Python Week 9
Python Week 9
24 terms
·
StudBud Administration
·
4 plays
Imported from external platform
Flashcards
24 cards
F
Practice quiz
P
Host live
L
Questions
24
Answers
1
LIST, List and list are all exactly the same: case sensitivity does not apply to any programming languages.
False
True
2
Jennie is on leave from Friday 13th so all assessments need to be finished BEFORE then
True
False
3
What type of operator is used in the following Python statement?
x != y
Arithmetic operator
Logical operator
Comparison operator
Assignment operator
4
Which operator is used to check if two values are equal in Python?
==
!=
=
=!
5
Which of the following expressions evaluates to True in Python?
not (7 > 2)
(4 == 4) or (2 > 10)
(6 != 6) and (1 < 2)
(5 > 10) and (3 < 1)
6
What is a queue (in data structures) best described as?
) Random Access
First In, First Out (FIFO)
Sorted List
Last In, First Out (LIFO)
7
A variable is data stored within your program, and the value may change.
True
False
8
This code will stop the loop if the answer is correct
True
False
9
Which SDLC model is best known for its flexibility and frequent customer collaboration throughout the development proces
Waterfall
Spiral
V-Model
Agile
10
The use of consistent naming conventions helps to avoid potential errors when using case-sensitive languages.
False
True
11
Comments are internal documentation used to add descriptions to code and make it easier to maintain.
True
False
12
Some programming languages require variables to be declared before use.
False
True
13
Brackets used for opening and closing statements are always used in pairs
True
False
14
Waterfall
is a linear and sequential methodology that emphasizes upfront planning and documentation.
True
False
15
This code will get a random country
True
False
16
This code increases by 1 and works out how many goes left...
True
False
17
What industries is Python used in? Select all that apply.
Game Development
Gardening
Web Development
Data Science
18
This could also be used to stop a loop attempts = maxAttempts
True
False
19
What is the end result of this code
"He's pining for the fjords!"
SyntaxError: Unexpected parrot
NameError: parrot is not defined
"This parrot is no more! It has ceased to be!"
20
V-Model
is similar to Waterfall in its sequential structure but integrates testing phases in parallel with devel phases
False
True
21
This section DOES not initialise variables
False
True
22
What is the data type of the following variable in Python?
x = [10, 20, 30]
tuple
dict
set
list
23
Comments can only be one line in length.
True
False
24
What does the and operator do in a logical expression?
Returns True if the first condition is False
Returns True if all conditions are False
Returns True only if all conditions are True
Returns True if at least one condition is True