0% found this document useful (0 votes)
5 views3 pages

C Programming Questions

The document lists important questions related to C programming, categorized by topics such as algorithms, data types, loops, arrays, pointers, structures, and file operations. Each question is assigned a specific mark value, indicating its importance or complexity. The questions cover definitions, programming concepts, examples, and practical applications in C programming.

Uploaded by

shrushti0221
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)
5 views3 pages

C Programming Questions

The document lists important questions related to C programming, categorized by topics such as algorithms, data types, loops, arrays, pointers, structures, and file operations. Each question is assigned a specific mark value, indicating its importance or complexity. The questions cover definitions, programming concepts, examples, and practical applications in C programming.

Uploaded by

shrushti0221
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

C Programming Important Questions

Sr. Questions Marks


No.
1. Define Algorithm 2
2. Define Global variable 2
3. List the basic data types in C. 2
4. Name three types of loops in C. 2
5. State the purpose of break statement 2
6. Differentiate between while and do-while in one line 2
7. Define Array 2
8. Define a union in C. 2
9. Define file and its basic operations 2
10. Define Pointer in C. 2

11. Define variable 2

12. Define Comments in C. 2

13. Define keyword in C. 2

14. Give two examples of identifiers 2

15. Give the syntax of if-else statement 2

16. State the purpose of continue statement 2

17. Write a syntax of 2D array. 2

18. Define a function prototype 2

19. Define a structure in C 2

20. Define Pointer in C 2

21. Write a program to demonstrate the concept of Actual and Formal 7


arguments.
22. Explain the concept of array with example of one dimensional array. 8

23. Write a program to ask elements to user and print 2D array. 7

24. Describe the concept of Union with example. 8

25. Write a program to demonstrate array of structures for storing and 7


displaying student details.
26. Define Structure, and give its advantages and limitations of using 8
structures in C programming.
27. Explain memory allocation in unions and compare it with structures 7
using a program.
28. Demonstrate the use of fseek() and ftell() for random file access with 8
examples.
29. Explain fread() and fwrite() functions with a program to copy 8
contents of one file into another.
30. Define a pointer in C. Explain pointer declaration and initialization. 4

31. Explain the steps involved in problem-solving with an example 8

32. Draw a flowchart and write an algorithm and program to find the 8
largest of three numbers
33. Explain Flowchart with its symbols. 7

34. Explain the use of Break and Continue with example. 7

35. Explain the working of the conditional (ternary) operator with an 8


example.
36. Develop a recursive function to calculate the nth term of the Fibonacci 8
sequence.
37. Difference between structure and union with examples. 8

38. Discuss the advantages and limitations of using Structure in C 7


programming.
39. Define a file, explain different file opening modes with a program to 8
create, write, and read a file.
40. Write a C program to append data to an existing file and then display 8
the updated contents.
41. Define a pointer in C. Explain pointer declaration and initialization. 4

42. Analyze the difference between pointer to pointer and array of 7


pointers with examples.
43. Write a program using pointers to swap two numbers without using a 8
third variable.
44. Discuss the limitations of unions in C programming with examples. 7

45. Design a menu-driven program to perform file operations: create, 8


read, write, and append.
46. Explain with examples how structures can be passed to functions by 8
value and by reference.
47. Develop a menu-driven program to perform insertion and deletion in 8
a one- dimensional array.
48. Evaluate the advantages and disadvantages of random access to files 7
in C.
49. Develop a program to store student records in a file and retrieve them 8
using structures.
50. Discuss real-time applications where unions are more efficient than 7
structures.
51. Explain the advantages of using structures over arrays in C. 8

52. Demonstrate the use of standard library functions like strlen(), 8


strcpy(), and strcat() with examples.
53. Differentiate between entry-controlled and exit-controlled loop. 5

54. Design a C program using functions to check whether a string is a 7


palindrome.
55. Develop a menu-driven program using switch to perform addition, 8
subtraction, multiplication, and division of two numbers.
56. Design a program to accept marks of 5 subjects and calculate total,
average, and grade using if-else.
57. Write a function in C to find the maximum and minimum elements of 8
an array.
58. Discuss the advantages and disadvantages of using goto statement 7
with an example.
59. Evaluate the advantages and disadvantages of random access to files 7
in C.
60. Demonstrate how arrays can be passed to functions with an example 7
program

You might also like