1️⃣ What is Programming?
Answer: Programming is the process of writing instructions (code) that tell a computer how to perform specific tasks or solve problems.
2️⃣ What is an Algorithm?
Answer: An algorithm is a step-by-step procedure or set of instructions used to solve a problem or perform a task efficiently.
3️⃣ What is Pseudocode?
Answer: Pseudocode is a simple, human-readable way of writing the logic of a program without following the syntax of any specific programming language. It helps plan the solution before coding.
4️⃣ What is a Flowchart?
Answer: A flowchart is a graphical representation of an algorithm or process using symbols and arrows to show the sequence of steps.
5️⃣ What is a Variable?
Answer: A variable is a named memory location used to store data. Its value can change during program execution.
Example:
int age = 25;6️⃣ What are Data Types?
Answer: Data types define the type of data a variable can store, such as integers, floating-point numbers, characters, booleans, and strings.
Examples:
• Integer: 10
• Float: 3.14
• Character: 'A'
• Boolean: true
• String: "Hello"
7️⃣ What is Type Casting?
Answer: Type casting is the process of converting a value from one data type to another.
Examples:
• Implicit Casting: int to double
• Explicit Casting: (int)3.75 to 3
8️⃣ What are Operators in Programming?
Answer: Operators are symbols used to perform operations on variables and values.
Common Types:
• Arithmetic: +, -, *, /, %
• Comparison: ==, !=, >, <
• Logical: &&, ||, !
• Assignment: =, +=, -=
• Increment/Decrement: ++, --
9️⃣ What are Conditional Statements?
Answer: Conditional statements allow a program to execute different blocks of code based on whether a condition is true or false.
Examples:
• if
• if-else
• else if
• switch
🔟 What are Loops?
Answer: Loops are used to execute a block of code repeatedly until a specified condition is met.
Common Types:
• for loop: Used when the number of iterations is known
• while loop: Used when the condition is checked before each iteration
• do-while loop: Executes at least once before checking the condition
Double Tap ❤️ For Part-2