0% found this document useful (0 votes)
27 views1 page

C Programming Unit1 Unit2 Questions

Uploaded by

kks475475
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

C Programming Unit1 Unit2 Questions

Uploaded by

kks475475
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

C Programming (Unit 1 & 2) – Most Likely Exam

Questions
• 1. Explain the role of compiler, interpreter, loader, and linker in program execution.
• 2. Differentiate between assembler, compiler, and interpreter with examples.
• 3. Draw a flowchart and write pseudo code for finding the largest of three numbers.
• 4. What are syntax errors and logical errors? Give one example of each.
• 5. Explain memory hierarchy and different types of memory in a computer system.
• 6. Write the structure of a C program and explain each part.
• 7. Define and explain storage classes in C with examples.
• 8. Write a program in C to calculate the area of a circle using standard I/O.
• 9. Explain the concept of variables and memory locations with an example.
• 10. Differentiate between source code, object code, and executable code.
• 11. Explain operator precedence and associativity with suitable examples.
• 12. Differentiate between ‘=’ and ‘==’ operators with examples.
• 13. Write a C program to find the largest of three numbers using if-else.
• 14. Write a C program to check whether a number is even or odd using switch.
• 15. Explain type conversion and type casting with examples.
• 16. What are bitwise operators? Write a C program to demonstrate the use of bitwise AND (&)
and OR (|).
• 17. Explain break, continue, and goto statements with examples.
• 18. Write a C program to print the first 10 natural numbers using a while loop.
• 19. Write a C program to calculate factorial of a number using for loop.
• 20. Explain the differences between while, do-while, and for loops with examples.
• 21. Write a program to print the multiplication table of a number using loops.
• 22. What are relational operators? Write a program to compare two numbers.
• 23. Explain logical operators (&&, ||, !) with examples.
• 24. Explain the difference between nested if and switch-case with examples.
• 25. Write a C program to count digits of a number using a loop.

You might also like