0% found this document useful (0 votes)
28 views1 page

St. Joseph'S Institute of Technology Cs8251 - Programming in C Practice Test - Unit I

This document contains a practice test for a Programming in C course. The test has two parts, with Part A containing 20 multiple choice questions testing core C language concepts like data types, operators, loops, functions, and preprocessing. Part B consists of four free response questions asking to explain decision making statements, operators, and provide code examples to check for palindromes and prime numbers.

Uploaded by

ANITHA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

St. Joseph'S Institute of Technology Cs8251 - Programming in C Practice Test - Unit I

This document contains a practice test for a Programming in C course. The test has two parts, with Part A containing 20 multiple choice questions testing core C language concepts like data types, operators, loops, functions, and preprocessing. Part B consists of four free response questions asking to explain decision making statements, operators, and provide code examples to check for palindromes and prime numbers.

Uploaded by

ANITHA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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