Unit 1: Introduction to Programming - Subjective Questions

CAP1008 — C Programming • Practice Questions with Detailed Answers

20 questions

1

Define programming and explain the basic concept of a program. Why is programming considered an essential skill in computer science?

2

List and explain the key characteristics of a good program.

3

Describe the various stages in program development.

4

What is an algorithm? List the characteristics that a good algorithm must satisfy.

5

Write an algorithm to find the largest of three numbers and explain each step.

6

What is a flowchart? Explain the common flowchart symbols with their meanings.

7

Distinguish between an algorithm and a flowchart.

8

Explain the different types of programming methodologies in detail.

9

Explain the top-down approach of program development with a suitable example.

10

Explain the bottom-up approach of program development with a suitable example.

11

Compare the top-down and bottom-up program development approaches.

12

Describe the program development cycle in detail with the help of a case study.

13

What are the different notations used to represent algorithms? Explain each briefly.

14

Draw a flowchart and write an algorithm to check whether a given number is even or odd.

15

Explain the concept of structured programming. What are its advantages?

16

Write an algorithm and draw a flowchart to compute the factorial of a given number.

17

What is debugging? Explain the different types of errors encountered in programming.

18

Explain the importance of documentation and maintenance in the program development process.

19

Explain problem analysis and algorithm design as key stages of program development. Why are they important before coding?

20

Write an algorithm and draw a flowchart to find the sum of the first N natural numbers, and verify it using the mathematical formula.