Programming in C Question Bank
Programming in C Question Bank
25. What is procedural programming, and how does it differ from object-
oriented programming?
26. Write a pseudocode to calculate the factorial of a number.
33. Explain the different types of programming languages with examples, and
discuss how they have evolved over time.
34. Write a pseudocode and draw a flowchart for a program that calculates
the factorial of a given number.
35. What is an Integrated Development Environment (IDE)? List its
components and explain its role in program development.
36. Discuss the various data types in C. Provide examples of variable
declarations using these data types.
37. Write a C program to read two integers from the user and perform the
following operations: addition, subtraction, multiplication, division, and
modulus. Display the results using formatted output.
38. Write a C program to find the largest of three numbers entered by the user
using nested if-else statements.
39. Explain the difference between call by value and call by reference with
suitable programs
40. Discuss the role of standard input and output functions (printf, scanf,
getchar, putchar) in C. Write a program to read a string, an integer, and a
floating-point number from the user and display them in a formatted
output.
41. What are library functions in C? Categorize them (e.g., string, math,
input/output, and utility functions) and write a program that uses math.h
functions (pow, sqrt, and fabs) to solve a quadratic equation.
42. Compare the if-else and switch statements in C. Write a program to 44.
classify a character as a vowel, consonant, digit, or special character
using both constructs.
43. Explain the differences between for, while, and do-while loops in C. Write
a program to find the factorial of a given number using a while loop.