Mini Mock Test - Introduction to Programming
1. Define an algorithm. List its characteristics.
2. Write an algorithm to find the factorial of a number.
3. What are the five basic flowchart symbols and their uses?
4. Write syntax and example of a for loop in C.
5. Differentiate between while and do-while loop.
6. What is an array? Write syntax for declaring a one-dimensional array.
7. Draw a flowchart to calculate the sum of first N natural numbers.
8. Explain the difference between compiler and interpreter.
9. What is a pointer? Write syntax to declare and use one.
10. Write types of user-defined functions with examples.
11. Write a short note on multi-dimensional arrays.
12. What is the difference between structured, procedural, and object-oriented programming?
13. Draw a flowchart to check if a number is prime.
14. What is the purpose of a decision symbol in a flowchart?
15. Define a variable, constant, and keyword with example.