0% found this document useful (0 votes)
404 views

C Programming Language Sample Question Paper

This document contains a model question paper with 39 questions covering various topics in C programming such as loops, functions, arrays, pointers, structures, and strings. The questions test knowledge of basic syntax, writing programs to perform tasks like calculations, string manipulation, searching/sorting arrays, recursion, and more. Answers would involve writing short code snippets or explaining concepts in a few sentences.

Uploaded by

JEEVAN KUMAR M
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
404 views

C Programming Language Sample Question Paper

This document contains a model question paper with 39 questions covering various topics in C programming such as loops, functions, arrays, pointers, structures, and strings. The questions test knowledge of basic syntax, writing programs to perform tasks like calculations, string manipulation, searching/sorting arrays, recursion, and more. Answers would involve writing short code snippets or explaining concepts in a few sentences.

Uploaded by

JEEVAN KUMAR M
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

MODEL QUESTION PAPER

1. Define the term (i) identifier (ii) token.


2. State the use of break and continue statement.
3. State two differences between while loop and do while loop.
4. State the advantage of function.
5. Distinguish between variable and constant.
6. Describe use of for loop with syntax and flowchart.
7. Define array. How array is declared write its syntax?
8. Explain recursion with example.
9. Enlist any four types of arithmetic operators used in C and give one example of
each.
10. Explain declaration and initialization of one-dimensional array with example.
11. Write a program in ‘C’ to display hexadecimal, decimal, octal format of the entered
number.
12. Write a C program to convert a temperature of 600 C to the Fahrenheit scale usingthe
relationship F = (9/5)* C +32
13. Explain any four string handling functions from standard library function..
14. Write a ‘c’ program to add two numbers using pointers

15. Explain how ‘switch’ statement is used in the programs instead of ‘if-else’ statements
with a suitable example program.
16. Write a C program to count the number of characters and print the vowels present in
entered text.
17. Write a C program to swap contents of two variables using call by reference.
18. Write a C program to search a particular roll no. in an array. If that roll no. exist inan
array print “number is present" else print “number is absent".
19. Write a C program to find factorial of given number using recursion function.

20. Define token and identifier.


21. Explain use of for loop with syntax and flow chart.
22. List any two library functions with syntax.
23. Write the syntax of else if-ladder.
24. Write syntax of switch case.
25. Write a program to find the sum of digit of an integer
(Sum = 1 + 4 + 5 + 3 + 2 = 15)
26. Write a program to demonstrate the use of printf and scanf statement to read and
print values of variables of different data types.
27. Write a program to determine whether a person is eligible to vote.
28. Write a program that displays the size of every data type.
29. Write use of comma operator in ‘for ‘loop.
30. Identify situation will you prefer to use while, do-while loop.
31. Clarify the situation: when a function returns a value that does not match with the
return type of function?
32. State any four advantages of function.
33. State the difference between one dimensional and two dimensional arrays.
34. Give an example of enumerated data type with syntax.

35. Write types of parameter passing methods in function and give one example of each.
36. Write a program to convert the given string "Hello" to "olleH" using recursion
37. Write a program to read, display the information about employees using structure.
38. Differentiate between * (arr+i) and (arr+i).
39. Write C Program for following string function.
a. strrev( )
b. strlen( )
A. Clarify the situation: when a function returns a value that does not match with the
return type of function?
B. State any four advantages of function.
C. State the difference between one dimensional and two dimensional arrays.
D. Give an example of enumerated data type with syntax.

E. Write types of parameter passing methods in function and give one example of each.
F. Write a program to convert the given string "Hello" to "olleH" using recursion
G. Write a program to read, display the information about employees using structure.
H. Differentiate between * (arr+i) and (arr+i).
I. Write C Program for following string function.
a. strrev( )
b. strlen( )

You might also like