Objective Questions
All objective questions for COS 102
Questions (541)
| # | Question | Topic | Actions |
|---|---|---|---|
| 501 |
What is the asymptotic worst-case time complexity of the standard linear search…
|
test topic | View |
| 502 |
Which precondition must be satisfied before applying a binary search algorithm …
|
test topic | View |
| 503 |
Which logic gate outputs TRUE (1) if and only if an odd number of its inputs ev…
|
test topic | View |
| 504 |
According to De Morgan's Laws, the logical expression `NOT (A AND B)` is equiva…
|
test topic | View |
| 505 |
What is the decimal value of the two's complement binary number `10000000_2` re…
|
test topic | View |
| 506 |
In programming fundamentals, what is recursion?
|
test topic | View |
| 507 |
What is the range of integers that can be represented using an 8-bit signed two…
|
test topic | View |
| 508 |
Convert the hexadecimal number 0x2E into its decimal representation.
|
test topic | View |
| 509 |
Which component of the central processing unit (CPU) holds the address of the n…
|
test topic | View |
| 510 |
Which algorithmic construct executes a block of code at least once regardless o…
|
test topic | View |
| 511 |
What is the primary difference between a pre-test loop and a post-test loop?
|
test topic | View |
| 512 |
What is the worst-case time complexity of binary search on a sorted array conta…
|
test topic | View |
| 513 |
In an array declared with bounds `A[0...9]`, what type of runtime error occurs …
|
test topic | View |
| 514 |
Assuming zero-based indexing and row-major order, what is the memory offset of …
|
test topic | View |
| 515 |
What catastrophic runtime failure typically results from a recursive function o…
|
test topic | View |
| 516 |
What does the term 'pass-by-value' imply regarding function parameter passing?
|
test topic | View |
| 517 |
Which of the following describes the 'LIFO' data access principle?
|
test topic | View |
| 518 |
Which fundamental data structure operates strictly under the First-In, First-Ou…
|
test topic | View |
| 519 |
What is the purpose of a compiler's lexical analysis (scanning) phase?
|
test topic | View |
| 520 |
In boolean algebra, what is the result of the simplification `A + (A . B)`?
|
test topic | View |
| 521 |
How many bits are used in standard ASCII encoding to represent a character?
|
test topic | View |
| 522 |
What is the binary representation of the octal number 57_8?
|
test topic | View |
| 523 |
What condition occurs when the result of an arithmetic operation exceeds the ma…
|
test topic | View |
| 524 |
Which operator among the following commonly holds the highest precedence in sta…
|
test topic | View |
| 525 |
Consider the expression: `x = 5; y = ++x;`. What are the final values of `x` an…
|
test topic | View |
| 526 |
What are the values of `x` and `y` after executing `x = 5; y = x++;`?
|
test topic | View |
| 527 |
Which of the following is considered an explicit type conversion (type casting)?
|
test topic | View |
| 528 |
What output is produced by the pseudocode: `FOR k = 1 TO 5 STEP 2: PRINT k`?
|
test topic | View |
| 529 |
In IEEE 754 single-precision floating-point format, how many bits are allocated…
|
test topic | View |
| 530 |
What is the effect of encountering a `break` statement inside a nested loop?
|
test topic | View |
| 531 |
How does the `continue` statement alter control flow inside a loop?
|
test topic | View |
| 532 |
In top-down algorithmic problem solving, what does stepwise refinement entail?
|
test topic | View |
| 533 |
What distinguishes static variable allocation from dynamic memory allocation?
|
test topic | View |
| 534 |
What is the primary role of an operating system's loader?
|
test topic | View |
| 535 |
What does a pointer variable specifically store?
|
test topic | View |
| 536 |
Which algorithmic paradigm solves problems by combining optimal solutions to ov…
|
test topic | View |
| 537 |
What constitutes a 'side effect' of a function call?
|
test topic | View |
| 538 |
Which binary logic operation is equivalent to multiplying an unsigned integer b…
|
test topic | View |
| 539 |
What is the time complexity required to access an element in an array when its …
|
test topic | View |
| 540 |
What is the primary vulnerability associated with using unbounded string read f…
|
test topic | View |
| 541 |
What is the hexadecimal addition result of `0x0F + 0x01`?
|
test topic | View |