Questions (541)

# Question Topic Actions
101
For the 'Mini Project: Admission Checker', if a student named 'Alice' has a UTM…
If staments View
102
In the context of the 'Mini Project: Admission Checker', what output is expecte…
If staments View
103
Decision making in programming is fundamentally based on evaluating conditions …
If staments View
104
Which of the following is highlighted as a 'Key Takeaway' regarding the `==` an…
If staments View
105
According to the document, what is the primary purpose of decision making in pr…
If staments View
106
Which keyword is used in Python to initiate a decision-making process based on …
If staments View
107
In Python's if statement syntax, what punctuation mark must…
If staments View
108
What is the consequence of incorrectly indenting the code block following an
If staments View
109
What is the primary function of the else clause in an if-els…
If staments View
110
When would you typically use an elif clause in Python programming?
If staments View
111
Which of the following relational operators correctly checks if two values are …
If staments View
112
What will be the result of the expression 10 < 5?
If staments View
113
What is the correct output for the following Python code snippet, as presented …
If staments View
114
Consider the following code from the 'Classroom Activity': age = 14; if a…
If staments View
115
What is the output of the following Python code snippet, based on the 'Multi-wa…
If staments View
116
What is the output of the following Python code snippet, based on the 'Multi-wa…
If staments View
117
In the context of the ATM Transaction example (Page 4), what is the 'Condition'…
If staments View
118
Which of the following describes the difference between = and
If staments View
119
What is a 'Boolean result' in the context of decision making in programming?
If staments View
120
In Python, which keyword is used to initiate a decision-making process based on…
If staments View
121
Which of the following relational operators means 'Not Equal To'?
If staments View
122
According to the document, what is the primary purpose of the `=` operator in P…
If staments View
123
What is the crucial syntax element that must end an if statement's…
If staments View
124
In a Python if statement, what determines which code belongs to th…
If staments View
125
Consider the following Python code snippet:
x = 15
if…
If staments View
126
Based on the 'Classroom Activity' on page 16, what is the output of this Python…
If staments View
127
In the context of the 'Visualize the Flow' section (page 7), what does a diamon…
If staments View
128
Which Python structure is best suited for implementing 'multiple choices' or a …
If staments View
129
If an ATM transaction's condition 'PIN correct?' is evaluated as 'No' (False), …
If staments View
130
Considering the 'Multi-way Logic: Weather' example on page 13:
temp = …
If staments View
131
Which of the following is NOT explicitly mentioned as a key takeaway about deci…
If staments View
132
A student scores 200 on the UTME. Based on the 'Mini Project: Admission Checker…
If staments View
133
Which learning outcome directly addresses the correction of syntax and indentat…
If staments View
134
If you need to check if a variable named balance is greater than o…
If staments View
135
In Python, what is a string fundamentally defined as?
Python strings View
136
Which of the following is NOT a recognized way to enclose strings in Python, ac…
Python strings View
137
What is the primary purpose of the '+' operator when used with strings in Pytho…
Python strings View
138
Consider the following Python code snippet:
first = "Data"
<…
Python strings View
139
How can you create multiple copies of a string and join them together in Python?
Python strings View
140
What is the purpose of the len() function when used with a string …
Python strings View
141
Which of the following code snippets will result in the output "Ha! Ha! H…
Python strings View
142
What happens if you try to concatenate a string and a number directly in Python…
Python strings View
143
How can a TypeError be avoided when you need to combine a string and a number i…
Python strings View
144
What is the output of the Python expression "5" + "5"?
Python strings View
145
What is the output of the Python expression "Go!" * 2?
Python strings View
146
What is the output of the Python expression len("Python 3")?
Python strings View
147
Which of the following is a key learning outcome related to 'Defining' strings …
Python strings View
148
Which of these lines of code correctly defines a multi-line string in Python?
Python strings View
149
If word = "Hello", what would be the result of len(word * 2)…
Python strings View
150
Which of the following is a primary characteristic of using Python's triple quo…
Python strings View
151
The 'No Space' Rule for string concatenation implies that:
Python strings View
152
When using the repetition operator ('*') with a string in Python, what type of …
Python strings View
153
Which of the following characters are counted by the len() …
Python strings View
154
You try to execute the Python code: result = "Age: " + 20. What ki…
Python strings View
155
To correctly concatenate the string "Age: " with the number 20 without causing …
Python strings View
156
What is the output of the following Python expression: "Hello" + "World"<…
Python strings View
157
What will be the output of print("Go!" * 2)?
Python strings View
158
What is the result of len("Python 3")?
Python strings View
159
Which of the following is not one of the three main ways Python offers t…
Python strings View
160
Based on the 'Learning Outcomes' (page 2), the objective to 'Understand strings…
Python strings View
161
Which Python operator is used to join two or more strings together to create a …
Python strings View
162
What is a crucial rule mentioned when using quotes to create strings in Python?
Python strings View
163
If you want to determine how many characters are in a string, including spaces …
Python strings View
164
A student wants to join several strings and repeat a specific string multiple t…
Python strings View
165
Which of the following Python statements correctly creates a multi-line string?
Python strings View
166
What is the primary reason the + operator does not automatically a…
Python strings View
167
Which of the following characters are counted by the len() functio…
Python strings View
168
What is the correct way to concatenate the string 'The answer is: ' with the nu…
Python strings View
169
According to the document, what is the fundamental definition of a string in Py…
Python strings View
170
Which operator is used in Python to create multiple copies of a string and join…
Python strings View
171
What will be the output of the following Python code?
text = "Python! …
Python strings View
172
What is the purpose of the len() function when working with string…
Python strings View
173
Which of the following string declarations is considered invalid in Python base…
Python strings View
174
What is the result of the following Python expression?
'apple' + 'pie'…
Python strings View
175
Consider the following Python code:
item = 'book'
coun…
Python strings View
176
Which Python operator is used for concatenation, as described in the document?
Python strings View
177
What would be the output of len("Hello, Python!")?
Python strings View
178
Given the code:
name = 'John'
greeting = 'Hello, ' + n…
Python strings View
179
What is the direct consequence of attempting to add a string and a number witho…
Python strings View
180
What is a Python string primarily defined as?
Python strings View
181
Which of the following is NOT a primary way Python offers to enclose text for s…
Python strings View
182
Which of the following Python string creations would result in an error based o…
Python strings View
183
Which operator is used in Python to join two or more strings together to create…
Python strings View
184
When concatenating two strings, str1 and str2, using …
Python strings View
185
To create multiple copies of a string and join them together in Python, which o…
Python strings View
186
What is the primary purpose of the len() function when used with a…
Python strings View
187
When len("Hello World!") is executed in Python, what does the func…
Python strings View
188
What kind of error would typically occur if you try to directly concatenate a s…
Python strings View
189
To correctly combine the string "Age: " with the integer 20, which of the follo…
Python strings View
190
What is the output of the following Python code snippet?
name = "Alice…
Python strings View
191
What will be the output of print("Go!" * 2) in Python?
Python strings View
192
What is the result of len("Python 3") in Python?
Python strings View
193
What is the output of "5" + "5" in Python?
Python strings View
194
According to the learning outcomes on page 2, how can strings be "Manipulated" …
Python strings View
195
What are the primary course codes for the subject titled "Computer as a Problem…
concept of problem solving; lecture 1 week 2 View
196
According to the document, what is the fundamental definition of "Problem solvi…
concept of problem solving; lecture 1 week 2 View
197
What is a programmer's primary job in the context of problem-solving, as descri…
concept of problem solving; lecture 1 week 2 View
198
Which of the following is NOT listed as an act involved in "Problem solving" on…
concept of problem solving; lecture 1 week 2 View
199
According to the "Problems, Solutions, and Tools" section (page 8), what is the…
concept of problem solving; lecture 1 week 2 View
200
How is an "Algorithm" defined in the "Design of Algorithms" section of the docu…
concept of problem solving; lecture 1 week 2 View