You are on page 1of 1

St.

JOSEPH’S INSTITUTE OF TECHNOLOGY


CS8251 – PROGRAMMING IN C
PRACTICE TEST - UNIT I

Part - A
1. What are the different data types available in “C”?
2. What is Ternary operators or Conditional operators?
3. What is the difference between while loop and do…while loop?
4. What is a Variable? Illustrate it with an example.
5. Difference between formatted and unformatted input statements. Give one example for each.
6. What is the use of pre-processor directives? How does a pre-processor work?
7. What is the difference between ++a and a++?
8. What is external storage class?
9. What is enumeration constant?
10. Write a C Program to find factorial of a given number using iteration.
11. What are the main features and applications of C language?
12. What are the I/O Functions in C?
13. What is the difference between scanf() and gets() function?
14. Define Compilation, linking process?
15. List some preprocessor directives in C.
16. Define Static Storage Class.
17. Give the rules for defining preprocessor.
18. Write a for loop statement to print numbers from 10 to 1.
19. Write a program to print “Hello World” without using “printf” in the program.
20. What is a Modulo Operator? What is the use of sizeof( ) operator?
Part – B
1. Explain about the various decision making statements in “C” language.
2. Explain various operators in c with example?
3. (i)Write a C program to check whether the given number is palindrome or not.
(ii) Write a program to find whether a number is prime or not.
4. Describe the structure of a C program using “Calculator program” example.

You might also like