πŸ’‘ Jump to Important Questions ↓

Important Questions

Important Questions

Introduction

Asked in 2079Short Question5 Marks
1.
What do you mean by flowchart? Draw a Flowchart to find the largest among three numbers entered by user. [5]

Flowchart & Flowchart to Find Largest Among Three Numbers

Flowchart is a diagrammatic/graphical representation of an algorithm that uses standard symbols (like ovals, rectangles, diamonds, and arrows) to show the step-by-step sequence of operations to solve a problem.

Key Symbols Used

  • Oval β†’ Start / Stop (Terminal)
  • Parallelogram β†’ Input / Output
  • Rectangle β†’ Process
  • Diamond β†’ Decision (Yes/No)
  • Arrow β†’ Flow of control

Flowchart to Find the Largest Among Three Numbers (A, B, C)

 Flowchart to Find the Largest Among Three Numbers (A, B, C) Step-by-step logic:

  • Start β†’ Input three numbers A, B, C
  • If A > B, then compare A with C
    • If A > C β†’ A is largest
    • Else β†’ C is largest
  • If B β‰₯ A, then compare B with C
    • If B > C β†’ B is largest
    • Else β†’ C is largest
  • Stop

Conclusion: This flowchart uses nested decision boxes to compare three numbers and determines the largest by eliminating one number at each comparison step.

Asked in 2078Short Question5 Marks
2.
What is the basic structure of a C program? Explain each part. [5]
Asked in 2077Short Question5 Marks
3.
What is the basic structure of a C program? Explain each part. [5]