PROGRAMMING NOTES (COMPLETE PACK)
1. IF / ELSE STATEMENTS
- Used for decision making.
Fill in the blanks:
1. The ______ statement checks a condition.
2. The ______ block runs when condition is false.
2. LOOPS
Fill in the blanks:
1. A for loop has three parts: initialization, ______, update.
2. A while loop checks condition ______ running code.
3. ARRAYS
Fill in the blanks:
1. Arrays store elements in ______ memory.
2. Array index starts from the number ______.
4. FUNCTIONS
Fill in the blanks:
1. A function returns a value using the keyword ______.
2. A function without return type is called ______.
5. POINTERS
Fill in the blanks:
1. A pointer stores the ______ of a variable.
2. The * symbol is used to get the ______ at the stored address.
COMMON MISTAKES
- Using = instead of ==
- Infinite loops
- Invalid array index
- Using uninitialized pointers