Objective Questions
All objective questions for COS 102
Questions (541)
| # | Question | Topic | Actions |
|---|---|---|---|
| 301 |
An algorithm is defined as a plan for solving a problem. Which of the following…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 302 |
Which of the following is NOT listed as one of the 5 characteristic feat…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 303 |
The characteristic of a good algorithm where 'results of each step are uniquely…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 304 |
When writing an algorithm, what three key elements are required to be clearly i…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 305 |
What is the primary purpose of Pseudocode?
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 306 |
The word 'pseudo' in 'pseudocode' means 'not real'. Therefore, pseudocode liter…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 307 |
Which of the following is NOT one of the six core programming constructs…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 308 |
What is a flowchart primarily defined as in the context of algorithms?
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 309 |
According to the document, one major reason for using flowcharts is that they a…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 310 |
In a flowchart, the parallelogram symbol (▱) is typically used to represent wha…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 311 |
What does the diamond-shaped symbol (◇) typically represent in a flowchart?
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 312 |
Which of the following is a guideline for developing flowcharts, as per the doc…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 313 |
According to the document, Python is a scripting programming language that uses…
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 314 |
The 'Process' symbol in a flowchart, typically represented by a rectangle (▭), …
|
Concept & Properties of Algorithm lecture 3 Week4 | View |
| 315 |
Which of the following course codes are listed together on the first slide?
|
6 lecture note; fundamentals of programming | View |
| 316 |
Who is listed as the lecturer/instructor for this course?
|
6 lecture note; fundamentals of programming | View |
| 317 |
What is the scheduled time for lectures, as per the course schedule?
|
6 lecture note; fundamentals of programming | View |
| 318 |
What percentage does the Final Examination contribute to the Course Evaluation?
|
6 lecture note; fundamentals of programming | View |
| 319 |
Which of the following is a learning outcome for students at the end of the cou…
|
6 lecture note; fundamentals of programming | View |
| 320 |
Which topic is listed under 'Outlines of the Course Wk9-11'?
|
6 lecture note; fundamentals of programming | View |
| 321 |
Consider the Python code snippet from slide 10:
s1 = {10,20,30}
s2 = {50,…
|
6 lecture note; fundamentals of programming | View |
| 322 |
Consider the Python code snippet from slide 11:
count = 0
while count >= …
|
6 lecture note; fundamentals of programming | View |
| 323 |
Consider the Python code snippet from slide 12:
sum = lambda a,b : a+b
pr…
|
6 lecture note; fundamentals of programming | View |
| 324 |
What is the primary definition of a program's 'control flow'?
|
6 lecture note; fundamentals of programming | View |
| 325 |
Which of the following is NOT one of the three types of control structures in P…
|
6 lecture note; fundamentals of programming | View |
| 326 |
What is the purpose of a Selection/Decision Control Statement?
|
6 lecture note; fundamentals of programming | View |
| 327 |
In Python's
if-elif-else conditional construct, what follows each …
|
6 lecture note; fundamentals of programming | View |
| 328 |
What is the primary characteristic of a
while loop in Python?
|
6 lecture note; fundamentals of programming | View |
| 329 |
What is the effect of the
break statement in a loop?
|
6 lecture note; fundamentals of programming | View |
| 330 |
The Python code snippet is executed:
s1 = {10,20,30}s…
|
6 lecture note; fundamentals of programming | View |
| 331 |
Consider the following Python code snippet:
count = 0…
|
6 lecture note; fundamentals of programming | View |
| 332 |
Analyze the following Python code snippet: sum = lambda a,b : a+b
|
6 lecture note; fundamentals of programming | View |
| 333 |
What does 'control flow' primarily refer to in the context of a program?
|
6 lecture note; fundamentals of programming | View |
| 334 |
Which of the following is NOT listed as a fundamental logical control structure…
|
6 lecture note; fundamentals of programming | View |
| 335 |
In a Sequential control structure, how are instructions typically execut…
|
6 lecture note; fundamentals of programming | View |
| 336 |
In Python's conditional constructs like `if-elif-else`, what punctuation mark i…
|
6 lecture note; fundamentals of programming | View |
| 337 |
Regarding the Python `if-elif-else` conditional construct, which statement is t…
|
6 lecture note; fundamentals of programming | View |
| 338 |
What is the primary purpose of an iteration statement (or loop) in progr…
|
6 lecture note; fundamentals of programming | View |
| 339 |
Which of the following correctly represents the basic syntax for a `while` loop…
|
6 lecture note; fundamentals of programming | View |
| 340 |
What is the correct general format for a `for` loop in Python designed to itera…
|
6 lecture note; fundamentals of programming | View |
| 341 |
When using the `range()` function in a Python `for` loop, what are the default …
|
6 lecture note; fundamentals of programming | View |
| 342 |
What is the primary effect of the `break` statement when executed inside a loop…
|
6 lecture note; fundamentals of programming | View |
| 343 |
When a `continue` statement is encountered within a loop in Python, what typica…
|
6 lecture note; fundamentals of programming | View |
| 344 |
Based on the comparison provided in the document, what is a key distinguishing …
|
6 lecture note; fundamentals of programming | View |
| 345 |
What is the output of the following Python code snippet?
s1 = {10,20,30}
s2…
|
6 lecture note; fundamentals of programming | View |
| 346 |
Consider the following Python code. What will be the output if the code is exec…
|
6 lecture note; fundamentals of programming | View |
| 347 |
What will be the output of the following Python code?
sum = lambda a,b : a+…
|
6 lecture note; fundamentals of programming | View |
| 348 |
According to the document, which of the following is NOT listed as one of Pytho…
|
6 lecture note; fundamentals of programming | View |
| 349 |
Which type of control statement allows a program to test several conditions and…
|
6 lecture note; fundamentals of programming | View |
| 350 |
The document lists four logical structures that comprise a structured programmi…
|
6 lecture note; fundamentals of programming | View |
| 351 |
What is the primary characteristic of the 'Sequence' control structure?
|
6 lecture note; fundamentals of programming | View |
| 352 |
In Python's conditional constructs (like
if-elif-else), what is re…
|
6 lecture note; fundamentals of programming | View |
| 353 |
In a Python
if-elif-else construct, if the first condition is eval…
|
6 lecture note; fundamentals of programming | View |
| 354 |
The
else clause in a Python if-elif-else construct is:
|
6 lecture note; fundamentals of programming | View |
| 355 |
What is the purpose of an iteration statement (loop) in programming?
|
6 lecture note; fundamentals of programming | View |
| 356 |
In Python, which types of iterable structures can the
for loop syn…
|
6 lecture note; fundamentals of programming | View |
| 357 |
What is the primary effect of the
break statement when executed in…
|
6 lecture note; fundamentals of programming | View |
| 358 |
What is the primary effect of the
continue statement when executed…
|
6 lecture note; fundamentals of programming | View |
| 359 |
What is the purpose of the
pass statement in Python?
|
6 lecture note; fundamentals of programming | View |
| 360 |
Which of the following describes the 'control flow' of a program as per the doc…
|
6 lecture note; fundamentals of programming | View |
| 361 |
Python programs regulate control flow primarily through which of the following?
|
6 lecture note; fundamentals of programming | View |
| 362 |
Which type of control structure involves instructions being executed one after …
|
6 lecture note; fundamentals of programming | View |
| 363 |
In Python, which control structure is used for decisions and branching?
|
6 lecture note; fundamentals of programming | View |
| 364 |
Which of the following is NOT listed as a type of decision control statement in…
|
6 lecture note; fundamentals of programming | View |
| 365 |
What is the primary purpose of 'Repetition' statements (loops) in Python?
|
6 lecture note; fundamentals of programming | View |
| 366 |
Which Python keyword is mandatory at the end of a 'while' condition statement?
|
6 lecture note; fundamentals of programming | View |
| 367 |
What does the
range() function return in Python, by default?
|
6 lecture note; fundamentals of programming | View |
| 368 |
In Python, when can the
else statement be used in conjunction with…
|
6 lecture note; fundamentals of programming | View |
| 369 |
What is the effect of the
break statement in a loop in Python?
|
6 lecture note; fundamentals of programming | View |
| 370 |
What is the effect of the
continue statement in a loop in Python?
|
6 lecture note; fundamentals of programming | View |
| 371 |
Which of the following accurately describes a difference between break
|
6 lecture note; fundamentals of programming | View |
| 372 |
Based on the provided Python quizzes (page 12), what would be the output or out…
|
6 lecture note; fundamentals of programming | View |
| 373 |
According to the Class Test (page 106), a question asks to differentiate betwee…
|
6 lecture note; fundamentals of programming | View |
| 374 |
Which of the following best describes Python as a programming language, accordi…
|
lecture 4 | View |
| 375 |
What are two key reasons Python is considered one of the best languages for beg…
|
lecture 4 | View |
| 376 |
What is the definition of Python keywords?
|
lecture 4 | View |
| 377 |
According to Python naming conventions, which of the following is a valid ident…
|
lecture 4 | View |
| 378 |
Is Python a case-sensitive language when it comes to identifiers?
|
lecture 4 | View |
| 379 |
When would you typically use triple quotes in Python?
|
lecture 4 | View |
| 380 |
What is a 'statement' in Python?
|
lecture 4 | View |
| 381 |
What is the preferred style for handling multi-line expressions in Python?
|
lecture 4 | View |
| 382 |
What is the primary role of variables in Python programming?
|
lecture 4 | View |
| 383 |
How does Python handle variable declaration and data types compared to language…
|
lecture 4 | View |
| 384 |
What is the function of the assignment operator (=) in Python?
|
lecture 4 | View |
| 385 |
What happens when you use the '+' operator with a string and a number in a Pyth…
|
lecture 4 | View |
| 386 |
Which of the following is NOT explicitly mentioned as a standard data type cate…
|
lecture 4 | View |
| 387 |
Which of the following is a supported numerical type in Python, as listed on pa…
|
lecture 4 | View |
| 388 |
According to the document, which of the following is NOT a characteristi…
|
lecture 4 | View |
| 389 |
Who created the Python programming language, as mentioned in the document?
|
lecture 4 | View |
| 390 |
Which of the following is a valid Python identifier according to the nam…
|
lecture 4 | View |
| 391 |
Which of the following is listed as a Python keyword in the document?
|
lecture 4 | View |
| 392 |
What is the primary rule regarding the case of identifiers in Python?
|
lecture 4 | View |
| 393 |
When would you typically use triple quotes to indicate a string literal in Pyth…
|
lecture 4 | View |
| 394 |
What is defined as an instruction that a Python interpreter can execute?
|
lecture 4 | View |
| 395 |
How can a long Python statement be broken across multiple lines, according to t…
|
lecture 4 | View |
| 396 |
In Python, how is a variable typically created?
|
lecture 4 | View |
| 397 |
What is the primary function of the '=' symbol when assigning values to variabl…
|
lecture 4 | View |
| 398 |
What happens if you try to combine a string and a number using the '+' characte…
|
lecture 4 | View |
| 399 |
Which of the following is NOT listed as a standard built-in data type ca…
|
lecture 4 | View |
| 400 |
Which of these is NOT identified as one of the four numerical types supp…
|
lecture 4 | View |