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

Question Bank

Uploaded by

rishavkr1410
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)
28 views3 pages

Question Bank

Uploaded by

rishavkr1410
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/ 3

Question Bank

Subject : Computational Thinking & C Programming


Code: (24BCS 101)

1. Who is the founder of the C language? When was the C language developed?

2. What is an algorithm? Explain with suitable example.

3. How many types of operators are there in C Programming

4. Explain the difference between = and == in C Programming.


5. What is a flowchart? Explain different symbols used for flowchart. Give proper
example.
6. Explain the general structure of a C program?
7. What is token? List all valid alphanumeric characters of C Language. Explain the rules
to create valid identifier.
8. What is data type? Explain different data types of C in detail.

9. What is the output of the following code?


int c = 2;
printf("%d", ++c);
10. What is an operator? Explain different category of operators based on both number of
operands and nature of operations.
11. What are logical operators in C? Write a C program to illustrate the logical operators?
12. What are keywords? List different reserve words of C language.
13. What are the input & output functions in C. Explain different format specifiers used in
in/out operations.
14. What is escape sequence character? List all the escape sequence characters.
15. Write a program to reverse the digits of a given number.
16. Explain the decision making statement in C with example program.
17. Write a Program to find sum of three numbers with output
18. What are the Characteristics / Features of C Language? Describe any 04 features.
19. What are the different types of loops? Explain all the loops of ‘C’ language.
20. What are unconditional control statements? Explain any two with syntax and example.
21. Write a C program to find the biggest of three numbers.
22. Show how break and continue statements are used in a C program, with example.
23. Write a C program to find HCF/GCD of two numbers.
24. What is dangling else problem? Explain how to handle this in C programming.
25. What is nested loop? Give an example.

26. What is storage class? Explain all the storage classes.

27. How matrix is represented in C language. Write a program to add two matrixes.
28. What is pointer? What do you understand by pointer arithmetic?

29. What is a function? Why we use functions in C language? Give an example

30. What is the difference between library functions and user-defined functions?

31. Write a program in C to find the square of any number using the function by using
(a) No Argument no return Value
(b) With Argument and with return value
32. Write some properties and advantages of user defined functions in C?
33. Explain the Parameter Passing Mechanisms in C-Language with examples Differentiate
actual parameters and formal parameters.
34. Write a program addition of two matrix.
35. What is recursive function? Explain with example
36. What is pointer in c programming? What are its benefits?
37. Explain the process of declaring and initializing pointers. Give an example.
38. Write a C program for exchanging of two numbers using call by reference mechanism
39. What is functional programming? Explain merits & demerits of functional programming.
40. What are actual & formal parameters? Explain with the help of an example.
41. What is global & local variable? Explain with the help of an example.
42. How do you pass an array to a function? Write a program to compute average of n
numbers stored into array. Use functional approach.
43. What is recursion? Explain with the help of an example.
44. Write program to find factorial of a number using functional approach
• Using non recursion/iteration.
• Using recursion.
45. Write program to find HCF/GCD of two numbers using functional approach
• Using non recursion/iteration.
• Using recursion.

46. What is structure? Explain with the help of an example.


47. What is Union? Explain with the help of an example.
48. What is enumerated data? Explain with the help of an example.
49. What is nested structure? Compare struct &union.
50. What is type def and its use?
51. Create a structure called "Student" with members name, age, and total marks. Write a C
program to input data for two students, display their information, and find the average
of total marks.
52. Create a structure named Book to store book details like title, author, and price. Write a C
program to input details for array of ‘n’ no. of books. Find the most expensive and the
lowest priced books, and display their information.
53. Define a structure named "Date" with members day, month, and year.Write a C program
to input two dates and find the difference in days between them.

54. What is dynamic memory? Compare static & dynamic memory.


55. How dynamic memory is created & destroyed. Explain important functions to
handle dynamic memory.
56. What is file system? How files are handled in ‘C’ language?

57. How do you create an array of pointers in C? Provide as example of using an array of
pointers.
58. What do you meant by file handling? What are the different operations performed on files?
Explain with example. How to open and close a file in C?

59. Create a structure named Book to store book details like title, author, and price. Write a C
program that read/write details of books into a binary file.
60. What is the use of pointers in data structures?

You might also like