Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 1 MCQs Introduction to Programming

CAP1008 — C Programming 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 introduction to programming Easy

    What is a computer program?

  2. Question 2 of 60 introduction to programming Easy

    The process of writing a set of instructions for a computer is called:

  3. Question 3 of 60 program concept Easy

    A person who writes computer programs is called a:

  4. Question 4 of 60 program concept Easy

    Which of the following best describes source code?

  5. Question 5 of 60 characteristics of programming Easy

    Which of the following is a desirable characteristic of a good program?

  6. Question 6 of 60 characteristics of programming Easy

    A program that is easy to read, understand, and modify is said to have good:

  7. Question 7 of 60 characteristics of programming Easy

    The ability of a program to run on different types of machines with little or no change is called:

  8. Question 8 of 60 stages in program development Easy

    Which stage usually comes first in program development?

  9. Question 9 of 60 stages in program development Easy

    The process of finding and correcting errors in a program is known as:

  10. Question 10 of 60 algorithms Easy

    What is an algorithm?

  11. Question 11 of 60 algorithms Easy

    Which property must every algorithm have?

  12. Question 12 of 60 algorithms Easy

    Each step of an algorithm should be:

  13. Question 13 of 60 notations Easy

    Pseudocode is best described as:

  14. Question 14 of 60 notations Easy

    Which notation uses plain English-like statements rather than a specific programming language syntax?

  15. Question 15 of 60 flowchart Easy

    A flowchart is a:

  16. Question 16 of 60 flowchart Easy

    In a flowchart, which symbol is used to represent a decision?

  17. Question 17 of 60 flowchart Easy

    Which flowchart symbol represents the start or end of a process?

  18. Question 18 of 60 types of programming methodologies Easy

    Which of the following is a programming methodology?

  19. Question 19 of 60 top down and bottom up program development cycle with case study Easy

    In the top-down approach, a large problem is:

  20. Question 20 of 60 top down and bottom up program development cycle with case study Easy

    The bottom-up approach to program development begins by:

  21. Question 21 of 60 introduction to programming Medium

    A team is converting a real-world payroll process into a computer program. Which sequence correctly represents the transformation from problem to executable software?

  22. Question 22 of 60 program concept Medium

    A program repeatedly produces different results for the same input values even though the code is unchanged. Which fundamental property of a correct program is being violated?

  23. Question 23 of 60 characteristics of programming Medium

    A developer rewrites a long function into several smaller, self-contained functions. Which programming characteristic is most directly improved?

  24. Question 24 of 60 characteristics of programming Medium

    Two programs solve the same task, but Program A runs in time while Program B runs in time. Which characteristic distinguishes Program A as the better choice for large inputs?

  25. Question 25 of 60 stages in program development Medium

    During program development, a compiler reports that a semicolon is missing. At which stage is this error detected?

  26. Question 26 of 60 stages in program development Medium

    A program compiles and runs, but gives wrong output because a formula was written incorrectly. This is best classified as which type of error, and it is handled in which stage?

  27. Question 27 of 60 stages in program development Medium

    Which ordering of program development stages is correct?

  28. Question 28 of 60 algorithms Medium

    Consider this algorithm step: while (i > 0) { print i; } where i is never changed inside the loop. Which essential property of an algorithm does this violate?

  29. Question 29 of 60 algorithms Medium

    An algorithm contains the instruction "add a suitable number to " without specifying which number. Which property of a good algorithm is missing?

  30. Question 30 of 60 algorithms Medium

    Given the algorithm: sum = 0; for i = 1 to 4: sum = sum + i, what is the final value of sum?

  31. Question 31 of 60 notations Medium

    Which of the following expressions is written in postfix (Reverse Polish) notation for the infix expression ?

  32. Question 32 of 60 notations Medium

    The prefix notation of an expression is . Which infix expression does it represent?

  33. Question 33 of 60 flowchart Medium

    While drawing a flowchart, which symbol should be used to represent a decision such as if x > 0?

  34. Question 34 of 60 flowchart Medium

    In a flowchart, the parallelogram symbol is used to represent which operation?

  35. Question 35 of 60 flowchart Medium

    A flowchart contains many arrows crossing back to earlier steps, forming complex loops in a large program. Which limitation of flowcharts does this illustrate?

  36. Question 36 of 60 types of programming methodologies Medium

    A methodology that organizes software around objects containing both data and the functions that operate on them is called:

  37. Question 37 of 60 types of programming methodologies Medium

    A programmer avoids goto statements and builds a program using only sequence, selection, and iteration constructs. Which methodology is being followed?

  38. Question 38 of 60 top down and bottom up program development Medium

    A design team first builds and tests small utility functions, then combines them into larger modules to form the final system. Which approach is this?

  39. Question 39 of 60 top down and bottom up program development Medium

    In a top-down design of a billing system, the main problem is split into "read data", "calculate bill", and "print bill". This process of dividing a problem into smaller subproblems is called:

  40. Question 40 of 60 top down and bottom up program development Medium

    In a case study, a team must build a large system reusing many existing tested library components. Which development approach is generally most suitable?

  41. Question 41 of 60 algorithms Hard

    Consider the algorithm:

    set x = 0
    for i from 1 to n:
    for j from i to n:
    x = x + 1

    What is the final value of as a closed-form expression in ?

  42. Question 42 of 60 algorithms Hard

    An algorithm must be finite, definite, effective, and have input/output. Which scenario violates the property of definiteness specifically?

  43. Question 43 of 60 flowchart Hard

    In a flowchart, a program reads , then while replaces with if even, else , counting iterations. For , how many iterations occur before becomes ?

  44. Question 44 of 60 top down and bottom up program development cycle with case study Hard

    A team builds a payroll system by first coding and unit-testing utility routines (tax calc, date math), then combining them into modules, and finally into the full application. Which methodology and integration strategy does this reflect?

  45. Question 45 of 60 types of programming methodologies Hard

    Which statement most accurately distinguishes procedural from structured programming?

  46. Question 46 of 60 stages in program development Hard

    During which stage is the root cause of a logical error (correct compilation but wrong output) most appropriately identified and corrected?

  47. Question 47 of 60 algorithms Hard

    Two algorithms solve the same problem: A runs in and B runs in . For which range of input sizes is algorithm B strictly faster than A?

  48. Question 48 of 60 flowchart Hard

    Why can an unstructured flowchart containing arbitrary crossing flow lines and multiple entry points into a loop be problematic when translated to structured code?

  49. Question 49 of 60 characteristics of programming Hard

    A program computes correct results but its runtime doubles each time input size increases by one element. Which quality characteristic is most severely compromised?

  50. Question 50 of 60 notations Hard

    Convert the infix expression to postfix notation, respecting standard operator precedence and left-to-right associativity.

  51. Question 51 of 60 top down and bottom up program development cycle with case study Hard

    In top-down development of a large system, why are stubs used during early integration testing?

  52. Question 52 of 60 algorithms Hard

    Consider this algorithm on integer :

    c = 0
    while n > 0:
    n = n & (n - 1)
    c = c + 1

    What does represent when the loop ends?

  53. Question 53 of 60 stages in program development Hard

    A completed program passes all developer tests but frequently breaks after client-side changes over the years. Which stage of the program development life cycle is most directly involved in addressing this ongoing situation?

  54. Question 54 of 60 notations Hard

    Evaluate the postfix expression 5 1 2 + 4 * + 3 - using a stack. What is the result?

  55. Question 55 of 60 introduction to programming Hard

    Which statement best explains why a high-level language program cannot be executed directly by the CPU without a translator?

  56. Question 56 of 60 program concept Hard

    A student claims: "A program and an algorithm are exactly the same thing." What is the most accurate correction?

  57. Question 57 of 60 flowchart Hard

    A flowchart uses a diamond symbol with one entry and two exits labeled True/False. Which fundamental structured-programming construct does this represent, and what is the risk if one exit path is left unconnected?

  58. Question 58 of 60 characteristics of programming Hard

    Two correct programs solve the same task. Program X uses cryptic single-letter names and no comments; Program Y is well-structured and documented. Both run identically fast. Which characteristic most justifies preferring Y in a long-lived project?

  59. Question 59 of 60 types of programming methodologies Hard

    Which combination of features uniquely characterizes the object-oriented methodology as opposed to purely structured/procedural approaches?

  60. Question 60 of 60 top down and bottom up program development cycle with case study Hard

    For an ATM software case study, module reuse across many banks is a top priority and the low-level transaction primitives are well understood. Which development approach is most advantageous, and why?

That's unit 1

Answer a few questions and your score shows up here.