You are on page 1of 2

F.Y.

Bsc IT- Semester I


Programming Principles with C

Question Bank (Year 2022-23)


UNIT - I

1. What is flowchart? Explain with its symbols.


2. What is algorithm?
3. Draw the flowchart of area of rectangle.
4. Write an algorithm for addition of three numbers.
5. Write a note on keywords and identifiers.
6. Explain the compilation and execution process of a program
7. Write an algorithm to print the result pass or fail.
8. Draw the flowchart to print 1 to 10 numbers using loop.
9. What is variable? State the rules of naming a variable.
10. Write a note on datatypes of C?

UNIT-II

11. Write a note on operators used in C.


12. Explain increment and decrement operator with suitable example.
13. Explain conditional statements used in C.
14. Write a program to calculate the total and average of five subjects’ marks.
15. Write a program to print the Fibonacci series upto 20 terms.
16. If a five-digit number is input through the keyboard, write a program to calculate the sum of its
digits.
17. Write a program displaying 4 different options like a menu interface using Switch case
18. Explain all the loops used in C.
19. Explain break and continue statement used in C.
20. Explain goto and label with suitable example.

UNIT-III

21. Explain User defined and Library functions.


22. What is the purpose of main() function.
23. Explain the standard input and output functions used in C.
24. Explain call by value and call by reference parameters used in C.
25. Explain recursive function.
26. Explain local and global variables.
27. Explain string functions used in C.
28. Write a program to print the reverse of your name.
29. Write a program to find out factorial of a number using recursive function.
30. Write a program to swap two integers using call by reference parameters.

UNIT-IV
31. What is pointer?
32. What is an array? Explain its types.
33. Write a program accept 5 numbers and print it using array.
34. What is multidimensional array?
35. Write a program to print the matrix of 3x3.
36. Explain the dynamic memory allocation operators.
37. Write a program to print 5 names of the students.
38. Write a program to print the value and address of a variable.
39. Write a program to print the given number is prime or not.
40. Write a program to print Floyd’s triangle upto 5 rows.

UNIT-V

41. Explain structure and object.


42. Define array of structures with syntax and example.
43. Write a program to display the use of structure and object.
44. Create a structure to specify data on students given below:
Roll number, Name, Course.
45. Write a program to open and read a text file.
46. Write a note on different types of file operations in C.
47. Explain the modes of file.
48. Explain open() and close() functions in file.
49. Write a program to write the contents in “data.txt” file.
50. Write a program to read the contents in “data.txt” file.

You might also like