0% found this document useful (0 votes)
17 views22 pages

Objective Questions On Cos

The document contains a comprehensive set of 100 objective questions covering key concepts in programming procedures, problem-solving, algorithms, coding, debugging, and documentation. Each question is accompanied by multiple-choice answers, with the correct answers indicated. The content serves as a study guide or assessment tool for individuals learning programming fundamentals.

Uploaded by

enochtofunmi81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views22 pages

Objective Questions On Cos

The document contains a comprehensive set of 100 objective questions covering key concepts in programming procedures, problem-solving, algorithms, coding, debugging, and documentation. Each question is accompanied by multiple-choice answers, with the correct answers indicated. The content serves as a study guide or assessment tool for individuals learning programming fundamentals.

Uploaded by

enochtofunmi81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

Objective questions on Programming Procedure, Problem Solving, and Algorithm

Programming Procedure

1. What is a program?

A. A hardware device

B. A list of instructions for a computer ✅

C. A type of operating system

D. A programming language

2. Which of the following is NOT a programming language?

A. Python

B. BASIC

C. Java

D. HTML ✅

3. How many steps are involved in the programming process?

A. 3

B. 4

C. 5 ✅

D. 6

4. Which step in the programming process involves defining the problem?

A. Coding

B. Designing the program

C. Clarification of the problem ✅

D. Debugging

5. Which is the first step in programming?

A. Testing the program


B. Documenting the code

C. Defining the problem ✅

D. Writing pseudocode

6. Which step ensures that a program will meet its intended purpose?

A. Debugging

B. Design a solution ✅

C. Writing code

D. Running a test

7. Which process is used to identify program errors?

A. Coding

B. Debugging ✅

C. Flowcharting

D. User documentation

8. What is included in program documentation?

A. Only code comments

B. Written instructions for users ✅

C. Data visualization

D. Logic errors

9. Which mini-step clarifies the program's expected outputs?

A. Determining users

B. Documenting analysis

C. Clarifying program objectives

D. Clarifying desired outputs ✅

10. What determines the feasibility of implementing a program?

A. Budget and time constraints ✅


B. Debugging frequency

C. Flowchart complexity

D. Number of variables used

Problem Solving in Programming

11. What is the first step in solving a programming problem?

A. Writing code

B. Designing algorithms

C. Understanding the problem statement ✅

D. Testing the program

12. Which tool helps visualize program logic before coding?

A. Flowchart ✅

B. Debugger

C. Compiler

D. Database

13. What is the purpose of pseudocode?

A. Writing actual code

B. Designing program logic ✅

C. Debugging syntax errors

D. Generating executable files

14. Which programming approach splits a program into smaller modules?

A. Sequential programming

B. Modular programming ✅

C. Machine coding

D. Random execution
15. Which type of documentation helps end-users operate a program?

A. Debugging notes

B. Programmer documentation

C. Operator documentation

D. User documentation ✅

16. Which is NOT a characteristic of modular programming?

A. Simplifies debugging

B. Uses hierarchy charts

C. Increases code redundancy ✅

D. Allows independent testing

17. What is the purpose of program maintenance?

A. To test syntax errors

B. To update and improve functionality ✅

C. To limit program execution

D. To remove pseudocode from software

18. Which programming approach breaks down tasks step by step?

A. Object-oriented programming

B. Functional programming

C. Top-down programming ✅

D. Event-driven programming

19. Which diagram shows a program’s modular structure?

A. Decision table

B. Flowchart

C. Hierarchy chart ✅

D. Debugging chart
20. Which programming tool helps test the logic of a program before implementation?

A. Algorithm ✅

B. Compiler

C. Debugger

D. User manual

Algorithms and Control Structures

21. Which of the following is NOT an algorithm design approach?

A. Flowchart representation

B. Pseudocode creation

C. Direct execution ✅

D. Modularization

22. What is the purpose of a program flowchart?

A. To execute the code

B. To visually represent program logic ✅

C. To compile algorithms

D. To store data

23. Which standard symbols are used in flowchart design?

A. IEEE symbols

B. Unicode symbols

C. ANSI symbols ✅

D. HTML tags

24. Which control structure ensures a sequence of execution without conditions?

A. Iteration

B. Selection
C. Sequence ✅

D. Compilation

25. What does the IF-THEN-ELSE control structure do?

A. Allows decisions in program execution ✅

B. Repeats execution infinitely

C. Only executes statements sequentially

D. Prevents debugging errors

26. Which variation of the IF-THEN-ELSE structure allows multiple cases?

A. Looping structure

B. Iteration structure

C. Case control structure ✅

D. Function structure

27. Which control structure allows a process to repeat while a condition remains true?

A. Sequence

B. Case

C. Iteration ✅

D. Selection

28. Which iteration structure always executes at least once?

A. WHILE loop

B. CASE structure

C. DO-WHILE loop ✅

D. IF-THEN

29. What determines when a loop should stop in iteration control structures?

A. Case conditions

B. Test conditions ✅
C. Number of iterations

D. Debugging methods

30. Which loop structure ensures execution at the beginning of the loop?

A. DO-WHILE

B. WHILE ✅

C. CASE control

D. IF-THEN

Code Implementation & Debugging

31. What does coding involve?

A. Writing logic statements

B. Translating pseudocode into programming syntax ✅

C. Only debugging errors

D. Executing compiled code

32. Which stage follows writing a program?

A. Debugging ✅

B. Documentation

C. Flowcharting

D. Hierarchy design

33. Which error is caused by incorrect programming syntax?

A. Logical error

B. Debugging failure

C. Syntax error ✅

D. Structural fault

34. Which debugging method involves manually tracing program execution?


A. Algorithm testing

B. Desk-checking ✅

C. Flowcharting

D. Compilation

35. What is beta testing in programming?

A. Running real-world data ✅

B. Correcting syntax errors

C. Writing pseudocode

D. Creating flowcharts

Here are more objective questions continuing from where I left off, covering Programming Procedure,
Problem Solving, and Algorithms, based on the document:

Coding and Implementation

36. What is coding in programming?

A. Writing program documentation

B. Translating program logic into a programming language ✅

C. Debugging syntax errors

D. Executing compiled code

37. Which step follows the coding phase in the programming process?

A. Writing documentation

B. Program testing ✅

C. Flowcharting

D. Hierarchy design

38. Which factor determines the selection of a programming language for a project?

A. Processor speed
B. Program feasibility

C. Program requirements ✅

D. Debugging ability

39. Which of the following is a high-level programming language?

A. Assembly

B. Machine Code

C. Python ✅

D. Binary

40. What does syntax refer to in programming?

A. Structure and rules of a programming language ✅

B. Data organization

C. Memory allocation

D. Logical errors

Testing and Debugging

41. Which type of testing involves reviewing code manually without running it?

A. Alpha testing

B. Beta testing

C. Desk-checking ✅

D. Compilation testing

42. What is the primary goal of debugging?

A. To increase program efficiency

B. To find and fix errors ✅

C. To optimize algorithms

D. To add new program features


43. Which of the following is NOT a type of error in programming?

A. Syntax error

B. Logic error

C. Calculation error ✅

D. Runtime error

44. Which tool helps identify syntax errors in a program?

A. Compiler ✅

B. Flowchart

C. Debugger

D. Algorithm

45. What does beta testing involve?

A. Running real-world data ✅

B. Checking logic errors

C. Correcting syntax errors

D. Writing pseudocode

Documentation and Maintenance

46. What is the main purpose of program documentation?

A. Writing new program versions

B. Helping users and programmers understand the program ✅

C. Removing logic errors

D. Storing test cases

47. Which type of documentation is meant for end-users?

A. Operator documentation

B. Debugging reports
C. User documentation ✅

D. Programmer documentation

48. Why is documentation needed in programming?

A. To increase execution speed

B. To maintain future program usability ✅

C. To remove bugs

D. To optimize code structure

49. Which programming team role benefits the most from programmer documentation?

A. Designers

B. Users

C. Future programmers ✅

D. System analysts

50. What does operator documentation provide?

A. Instructions for non-programmers running the program ✅

B. Code debugging notes

C. Programming syntax rules

D. System architecture overview

Structured Programming and Control Structures

51. What is structured programming?

A. Writing unstructured code

B. Breaking programs into modules ✅

C. Ignoring programming syntax rules

D. Using only one control structure

52. Which programming design technique organizes code into independent modules?
A. Debugging system

B. Top-down program design ✅

C. Sequential coding

D. Spaghetti coding

53. What does modular programming help achieve?

A. Faster debugging ✅

B. Complex hierarchical design

C. Lower program execution speed

D. Single-step compilation

54. What is pseudocode used for?

A. Writing program logic in simple language ✅

B. Compiling source code

C. Debugging syntax errors

D. Creating graphical illustrations

55. Which of the following is NOT a control structure?

A. Sequence

B. Selection

C. Compilation ✅

D. Iteration

Flowcharts and Algorithms

56. What is the purpose of a flowchart in programming?

A. To graphically represent program logic ✅

B. To write executable code

C. To run syntax checks


D. To translate machine code

57. What does a hierarchy chart show?

A. The modular structure of a program ✅

B. Program errors

C. Debugging steps

D. Memory allocation

58. Which programming tool visually represents control structures?

A. Debugger

B. Flowchart ✅

C. Compiler

D. Beta test case

59. Which standard symbols are used in flowchart design?

A. ANSI symbols ✅

B. HTML tags

C. SQL functions

D. Unicode characters

60. Which algorithm design method focuses on efficient step execution?

A. Debugging

B. Optimization ✅

C. Logic flow

D. Compilation

Here are the remaining questions, completing the full 100-question objective set based on
Programming Procedure, Problem Solving, and Algorithms from the document:

Flowcharts and Algorithms (Continued)


61. What is an algorithm in programming?

A. A hardware component

B. A sequence of steps to solve a problem ✅

C. A compiler function

D. A memory structure

62. Which characteristic is important for a good algorithm?

A. Complexity

B. Readability ✅

C. Unlimited loops

D. Random logic

63. Which tool helps visualize an algorithm before writing code?

A. Flowchart ✅

B. Compiler

C. Debugger

D. Syntax checker

64. What does ANSI stand for in flowchart symbols?

A. American National Standards Institute ✅

B. Advanced Network Software Integration

C. Algorithm Naming Standards Implementation

D. Association of Numerical System Interfaces

65. Which type of program control ensures sequential execution?

A. Iteration

B. Selection

C. Sequence ✅

D. Random execution
Programming Control Structures

66. Which control structure allows multiple conditions to be tested in a program?

A. Sequential execution

B. Case control ✅

C. Arithmetic structure

D. Unstructured coding

67. What is the purpose of the IF-THEN-ELSE control structure?

A. Allows decision-making ✅

B. Executes functions without conditions

C. Ignores incorrect inputs

D. Eliminates debugging steps

68. Which variation of the selection control structure allows multiple choices?

A. Iteration

B. Sequence

C. Case control ✅

D. Direct output

69. Which control structure enables looping operations?

A. Sequence

B. Iteration ✅

C. Decision table

D. Flowchart

70. Which iteration control structure ensures at least one execution before checking conditions?

A. DO-WHILE ✅

B. WHILE
C. CASE control

D. IF-THEN

Testing and Debugging

71. Which type of error occurs due to incorrect programming logic?

A. Syntax error

B. Logic error ✅

C. Compilation failure

D. Debugging fault

72. What is desk-checking in debugging?

A. Manually verifying program logic ✅

B. Running multiple test cases

C. Writing new code

D. Programming optimization

73. Which testing phase involves running real-world data?

A. Alpha testing

B. Beta testing ✅

C. Flowchart validation

D. Pseudocode verification

74. What does a syntax error refer to?

A. A mistake in programming language rules ✅

B. An incorrect function call

C. A memory allocation error

D. A hardware failure

75. Which debugging method uses specialized tools to track errors?


A. Desk-checking

B. Flowcharting

C. Code tracing ✅

D. Compilation analysis

Documentation and Software Maintenance

76. Why is programmer documentation important?

A. Helps future programmers understand the software ✅

B. Reduces execution speed

C. Removes all bugs automatically

D. Speeds up compilation

77. What does user documentation provide?

A. System architecture

B. Instructions on program use ✅

C. Debugging techniques

D. Syntax rules

78. What does operator documentation include?

A. Instructions for non-programmers managing system operations ✅

B. Data structure definitions

C. Algorithm descriptions

D. Memory organization steps

79. Which of the following is NOT an essential part of program documentation?

A. Flowcharting

B. Debugging details

C. Pseudocode generation
D. Syntax error logs ✅

80. How does maintenance help a program?

A. Ensures updates and bug fixes ✅

B. Eliminates execution errors permanently

C. Reduces user interaction

D. Removes documentation errors

Software Development Life Cycle

81. Which step comes first in software development?

A. Coding

B. System analysis ✅

C. Testing

D. Documentation

82. Which approach ensures breaking down tasks in program design?

A. Modular programming ✅

B. Direct compilation

C. Memory allocation

D. Debugging techniques

83. Which testing phase occurs before user deployment?

A. Beta testing ✅

B. Program execution

C. Algorithm analysis

D. Flowchart validation

84. What is the final step in programming?

A. Documentation and maintenance ✅


B. Algorithm optimization

C. Debugging phase

D. Function verification

85. Which factor determines the selection of a programming language for a project?

A. Program requirements ✅

B. Code complexity

C. Execution errors

D. Debugging ability

Advanced Programming Concepts

86. Which programming approach focuses on reusable code components?

A. Object-oriented programming ✅

B. Machine-level coding

C. Structured programming

D. Direct execution

87. Which function helps organize large-scale programming projects?

A. Modularization ✅

B. Debugging loops

C. Function execution

D. Syntax analysis

88. Which programming paradigm is based on real-world objects?

A. Functional programming

B. Object-oriented programming ✅

C. Sequential coding

D. Debugging methodology
89. Which software development model follows structured steps from planning to testing?

A. Waterfall ✅

B. Agile

C. Prototype

D. Iteration

90. Which model emphasizes short, iterative development cycles?

A. Waterfall

B. Agile ✅

C. System analysis

D. Debugging method

Programming Languages

91. Which programming language is widely used for web development?

A. Java

B. Python

C. JavaScript ✅

D. C++

92. Which language is best for system programming?

A. C ✅

B. HTML

C. JavaScript

D. SQL

93. Which programming language is known for simplicity and readability?

A. C++

B. Python ✅
C. Assembly

D. Machine code

94. Which language is primarily used for managing databases?

A. Java

B. SQL ✅

C. Python

D. C++

95. Which of the following is NOT a high-level language?

A. C++

B. Python

C. Machine language ✅

D. Java

Final Concepts in Programming

96. What does a compiler do?

A. Translates source code into machine code ✅

B. Optimizes debugging errors

C. Stores programming documentation

D. Runs testing scenarios

97. Which factor improves algorithm efficiency?

A. Reducing unnecessary steps ✅

B. Increasing complexity

C. Ignoring memory usage

D. Removing syntax rules

98. Which type of programming technique improves error handling?


A. Exception handling ✅

B. Debugging loops

C. Syntax checking

D. Memory allocation

99. Which statement is used to display output in Python?

A. echo

B. output()

C. print() ✅

D. display()

100. Which feature ensures that program functions can be reused?

A. Modularization ✅

B. Direct execution

C. Debugging logs

D. Syntax analysis

You might also like