Chapter 3FIT — computer Notes — Polytechnic FIT unit -3 Basic Logic and Building

 Chapter 3 FIT — computer Notes — Polytechnic FIT unit -3  Basic Logic and Building 






Chapter 1 FIT — computer Notes — Polytechnic FIT unit -1







Chapter 3: Basic Logic and Building | Vishalwriter.com
🧠 Chapter 3: Basic Logic and Building
Vishalwriter.com | FIT Notes
📋📊🔷⚙️💻
📝 Algorithm📊 Flowchart🔷 Diamond → Decision📐 Rectangle → Process💻 Coding
📘 Vishalwriter.com | Algorithm • Flowchart • Problem Solving • Coding • Debugging • Testing
🧑‍🏫 Complete notes for Chapter 3 with mark‑wise answers (1,2,4,8 marks) and 51 MCQs. Compact mobile‑friendly format with easy explanations.

🔹 A. Very Short Answer (1 Mark each)

1. Set of instructions is called. 1 Mark
👉 Algorithm
2. Software is a set of. 1 Mark
👉 Programs
3. Final step of problem solving. 1 Mark
👉 Testing
4. First step of problem solving. 1 Mark
👉 Problem Analysis
5. Writing program is called. 1 Mark
👉 Coding
6. Error finding is called. 1 Mark
👉 Debugging
7. Step-by-step solution. 1 Mark
👉 Algorithm
8. Graphical representation. 1 Mark
👉 Flowchart
9. Start/Stop symbol. 1 Mark
👉 Oval
10. Decision symbol. 1 Mark
👉 Diamond
11. Input/Output symbol. 1 Mark
👉 Parallelogram
12. Process symbol. 1 Mark
👉 Rectangle
13. Connector symbol. 1 Mark
👉 Circle
14. Flow lines show. 1 Mark
👉 Direction of flow

🔹 B. Short Answer (4 Marks each)

1. Need of Programming. 4 Marks
👉 Automates repetitive tasks, develops software (apps, games), performs fast calculations, controls hardware & smart systems.
2. Define Algorithm. 4 Marks
👉 Algorithm is a step‑by‑step finite procedure to solve a problem. Steps: Understand the problem → Define inputs/outputs → Write logical steps → Test manually.
3. Algorithm for average of 3 numbers. 4 Marks
1.Start 2.Input A,B,C 3.Sum=A+B+C 4.Average=Sum/3 5.Display Average 6.Stop
4. Flowchart symbols. 4 Marks
👉 Oval (Start/Stop), Rectangle (Process), Diamond (Decision), Parallelogram (Input/Output), Circle (Connector).
5. Flowchart of sum of 2 numbers. 4 Marks
Start


Input A,B


Sum=A+B


Display Sum


Stop
6. Algorithm vs Flowchart. 4 Marks
👉 Algorithm: text form, easy to write, language‑independent. Flowchart: diagram form, easier for non‑technical people to understand.
7. Steps of problem solving. 4 Marks
👉 Problem Analysis → Algorithm → Flowchart → Coding → Testing & Debugging
8. Coding and Testing. 4 Marks
👉 Coding: writing the actual program in a language (Python, C, Java). Testing: checking the program for errors and fixing them (debugging).
9. Characteristics of Algorithm. 4 Marks
👉 Clear and unambiguous, finite (must end after steps), logical sequence, defined inputs and outputs.

🔹 C. Long Answer (8 Marks each)

1. Steps in Problem Solving (Detailed). 8 Marks
📌 Problem solving is the process of finding solutions to complex issues using a logical, step‑by‑step approach.
✨ 5 Detailed Steps:
  • 1. Problem Analysis: Understand the problem – identify inputs, outputs, constraints, and requirements.
  • 2. Algorithm Design: Write a clear, step‑by‑step set of instructions to solve the problem.
  • 3. Flowchart: Draw a visual diagram using standard symbols to represent the algorithm.
  • 4. Coding: Convert the algorithm into actual program code using a programming language (Python, C, Java).
  • 5. Testing & Debugging: Run the program with sample inputs, find errors (bugs), fix them, and verify the output.
2. Algorithm Development Example (Sum of two numbers). 8 Marks
📌 Algorithm to find sum of two numbers – a basic example to understand algorithm design.
✍️ Steps:
  1. Start
  2. Input first number (A)
  3. Input second number (B)
  4. Calculate Sum = A + B
  5. Display Sum
  6. Stop
✅ Real‑life use: Any calculator app, banking balance addition, billing software.
3. Flowchart advantages & limitations. 8 Marks
📌 Flowchart is a visual representation of an algorithm using standard symbols.
✅ Advantages (5 points):
  • Easy to understand the program logic visually.
  • Helps in error detection and debugging.
  • Useful for documentation and training new programmers.
  • Improves communication between programmers and non‑technical stakeholders.
  • Shows the step‑by‑step flow clearly.
❌ Limitations (5 points):
  • Time‑consuming to draw for large/complex programs.
  • Difficult to modify or update – often requires redrawing.
  • No standard rules for representing complex logic.
  • Not suitable for very large programs (thousands of steps).
  • Cannot be executed directly by a computer – only serves as a plan.
4. Algorithm vs Flowchart (Detailed). 8 Marks
📌 Algorithm: Textual, language‑independent set of steps.
📌 Flowchart: Diagrammatic representation using graphical symbols.
📊 Comparison (6 points):
  • Form: Algorithm is text; Flowchart is a diagram with symbols.
  • Ease of development: Algorithm is easier and faster to write.
  • Understanding: Flowchart is easier for non‑technical people to follow.
  • Conversion to code: Algorithm can be directly translated to any programming language.
  • Branching & loops: Flowchart shows condition branches (Yes/No) and loops very clearly with arrows.
  • Usage: Algorithm is used during design; Flowchart is used for presentations, documentation, and teaching.
5. Flowchart symbols explanation with examples. 8 Marks
📌 Standard flowchart symbols – each symbol has a fixed meaning.
  • Oval (Terminal): Start or End of the program. Example: Start, Stop.
  • Rectangle (Process): Arithmetic or data manipulation operations. Example: Sum = A + B.
  • Diamond (Decision): Condition checking (yes/no branch). Example: Is marks > 40?
  • Parallelogram (I/O): Input or Output operation. Example: Read A, Print Sum.
  • Circle (Connector): Connects different pages or sections of a flowchart.
  • Arrow (Flow line): Shows the direction of flow between symbols.
  • Document symbol (rectangle with wavy base): Represents printed output or report.
6. Sum of N Natural Numbers (Algorithm + Flowchart). 8 Marks
📌 Sum of N natural numbers = 1 + 2 + 3 + ... + N. This is a classic loop problem.
📝 Algorithm:
  1. Start
  2. Input the value of N (how many numbers to add)
  3. Initialize sum = 0 and counter i = 1
  4. Repeat steps 5‑6 while i ≤ N:
  5.   sum = sum + i
  6.   i = i + 1 (increment)
  7. Display the final sum
  8. Stop
📊 Flowchart:
Start


Input N


i = 1, sum = 0


i ≤ N ?

Yes ↓
sum = sum + i

i = i + 1

↺ (loop back to condition)
No ↓
Display sum


Stop
✅ Example: If N = 5, the sum = 1+2+3+4+5 = 15.

📋 50+ MCQs with Answers

1. An algorithm is?
  • A) Set of instructions
  • B) Programming language
  • C) Hardware
  • D) Only flowchart
✔ Answer: A
2. Decision symbol in flowchart?
  • A) Oval
  • B) Rectangle
  • C) Diamond
  • D) Parallelogram
✔ Answer: C
3. First step in problem solving?
  • A) Coding
  • B) Testing
  • C) Problem analysis
  • D) Flowchart
✔ Answer: C
4. Process symbol in flowchart?
  • A) Parallelogram
  • B) Rectangle
  • C) Circle
  • D) Oval
✔ Answer: B
5. Debugging means?
  • A) Writing code
  • B) Finding/fixing errors
  • C) Drawing flowchart
  • D) Designing algorithm
✔ Answer: B
6. Characteristic of algorithm?
  • A) Infinite loop
  • B) Unclear steps
  • C) Finite and definite
  • D) No output
✔ Answer: C
7. Flow lines represent?
  • A) Start/Stop
  • B) Direction of flow
  • C) Input only
  • D) Process
✔ Answer: B
8. Input/Output symbol?
  • A) Rectangle
  • B) Diamond
  • C) Parallelogram
  • D) Oval
✔ Answer: C
9. Coding is also known as?
  • A) Algorithm writing
  • B) Program writing
  • C) Testing
  • D) Flowcharting
✔ Answer: B
10. Final step of problem solving?
  • A) Analysis
  • B) Algorithm
  • C) Coding
  • D) Testing
✔ Answer: D
11. Oval symbol represents?
  • A) Input
  • B) Process
  • C) Start/Stop
  • D) Decision
✔ Answer: C
12. Example of programming language?
  • A) Flowchart
  • B) Python
  • C) Diamond
  • D) Parallelogram
✔ Answer: B
13. Flowchart is a representation?
  • A) Textual
  • B) Graphical
  • C) Audio
  • D) Tabular
✔ Answer: B
14. Step after flowchart?
  • A) Problem analysis
  • B) Algorithm
  • C) Coding
  • D) Testing
✔ Answer: C
15. Decision symbol results in how many paths?
  • A) One
  • B) Two (Yes/No)
  • C) Three
  • D) No branch
✔ Answer: B
16. Software is set of?
  • A) Instructions
  • B) Hardware
  • C) Programs
  • D) Both A & C
✔ Answer: D
17. Average algorithm uses which operators?
  • A) +, /
  • B) *, -
  • C) Only +
  • D) Modulus
✔ Answer: A
18. Connector symbol is?
  • A) Circle
  • B) Triangle
  • C) Square
  • D) Pentagon
✔ Answer: A
19. Main advantage of flowchart?
  • A) Hard to draw
  • B) Complex logic easier
  • C) Only text
  • D) Language dependent
✔ Answer: B
20. Sum if A=5,B=10?
  • A) 15
  • B) 10
  • C) 5
  • D) 50
✔ Answer: A
21. Symbol used for loops?
  • A) Decision + flow lines
  • B) Rectangle only
  • C) Parallelogram
  • D) Oval
✔ Answer: A
22. Algorithm starts with?
  • A) Stop
  • B) Start
  • C) Display
  • D) Input
✔ Answer: B
23. Not a flowchart symbol?
  • A) Triangle
  • B) Oval
  • C) Diamond
  • D) Rectangle
✔ Answer: A
24. While writing algorithm avoid?
  • A) Clarity
  • B) Ambiguity
  • C) Finiteness
  • D) Inputs
✔ Answer: B
25. Correct order?
  • A) Coding→Algorithm→Testing
  • B) Algorithm→Flowchart→Coding
  • C) Flowchart→Coding→Analysis
  • D) Testing→Analysis→Algorithm
✔ Answer: B
26. Convert algorithm to program is?
  • A) Testing
  • B) Debugging
  • C) Coding
  • D) Flowcharting
✔ Answer: C
27. Largest of two uses which symbol?
  • A) Oval only
  • B) Diamond
  • C) Rectangle
  • D) Both B & C
✔ Answer: D
28. i = i+1 represents?
  • A) Decrement
  • B) Increment
  • C) Stop condition
  • D) Output
✔ Answer: B
29. Arithmetic operations symbol?
  • A) Diamond
  • B) Parallelogram
  • C) Rectangle
  • D) Circle
✔ Answer: C
30. Average of a=10,b=20?
  • A) 30
  • B) 15
  • C) 10
  • D) 20
✔ Answer: B
31. Algorithm must terminate after?
  • A) Infinite
  • B) Finite
  • C) Random
  • D) Zero
✔ Answer: B
32. Flowchart arrows called?
  • A) Connectors
  • B) Flow lines
  • C) Terminals
  • D) Data lines
✔ Answer: B
33. Not a program development step?
  • A) Algorithm
  • B) Painting
  • C) Testing
  • D) Flowchart
✔ Answer: B
34. "Debugging" coined by?
  • A) Grace Hopper
  • B) Charles Babbage
  • C) Ada Lovelace
  • D) Dennis Ritchie
✔ Answer: A
35. Algorithm is like a?
  • A) Recipe
  • B) Drawing
  • C) Compiler
  • D) Hardware
✔ Answer: A
36. Valid algorithm step?
  • A) Start
  • B) End loop
  • C) Compute area
  • D) All of these
✔ Answer: D
37. Flowchart useful for?
  • A) Documentation
  • B) Communication
  • C) Understanding logic
  • D) All of these
✔ Answer: D
38. Parallelogram represents?
  • A) Decision
  • B) Process
  • C) Input/Output
  • D) Start
✔ Answer: C
39. True about Algorithm?
  • A) Pictorial
  • B) Must be in C
  • C) Language independent
  • D) Never ends
✔ Answer: C
40. Another name for coding?
  • A) Programming
  • B) Testing
  • C) Debugging
  • D) Designing
✔ Answer: A
41. Two paths from diamond lead to?
  • A) Different processes
  • B) Same process
  • C) No path
  • D) Oval only
✔ Answer: A
42. First step before drawing flowchart?
  • A) Coding
  • B) Testing
  • C) Algorithm design
  • D) Installation
✔ Answer: C
43. Loop logic created by?
  • A) Arrow going back
  • B) Parallelogram
  • C) Process symbol
  • D) Oval
✔ Answer: A
44. Connect different pages symbol?
  • A) Circle
  • B) Rectangle
  • C) Diamond
  • D) Parallelogram
✔ Answer: A
45. Algorithm should have zero or more?
  • A) Outputs
  • B) Inputs
  • C) Steps
  • D) Flow lines
✔ Answer: B
46. "Testing" refers to?
  • A) Check result with expected output
  • B) Writing code
  • C) Drawing diagram
  • D) Finding hardware error
✔ Answer: A
47. Not a characteristic of algorithm?
  • A) Unambiguous
  • B) Infinite loops allowed
  • C) Effective
  • D) I/O defined
✔ Answer: B
48. Flowchart also known as?
  • A) Block diagram
  • B) Flow process diagram
  • C) Data diagram
  • D) Program diagram
✔ Answer: B
49. Default flow direction?
  • A) Left to right
  • B) Top to bottom
  • C) Right to left
  • D) Random
✔ Answer: B
50. Condition checks shape?
  • A) Rectangle
  • B) Diamond
  • C) Oval
  • D) Parallelogram
✔ Answer: B
51. Main goal of problem solving?
  • A) Write algorithm
  • B) Get correct output efficiently
  • C) Only draw symbols
  • D) Avoid testing
✔ Answer: B
📢 Exam Smart Strategy: For 8‑mark questions, always write a clear definition, then list 6‑8 bullet points, and include a flowchart example when asked. Practice “sum of N natural numbers”, “find largest among three”, and “factorial” – they repeat often.
📘 Vishalwriter.com – Chapter 3: Basic Logic and Building || 51 MCQs
Previous Post Next Post

Contact Form