Vous êtes sur la page 1sur 4

UNIT-I

PART-A (2 MARKS)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.

Define #define directive?


Define character set and group its categories?
What is a trigraph character?
What are the rules for identifiers?
What is an enumerated constant?
Distinguish between ++x and x++?
What is the usage of size of operator?
What are the priority levels of arithmetic operators in
Give note on operator precedence?
Distinguish library function and header files?
How a variable can assign a value?

C ?

PART-B (5 MARKS)
12.
13.
14.
15.
16.

What are the features of C ?


Explain the basic structure of C program?
What is a token and state its types?
How a variable declaration is done?
Define user defined data type and illustrate its format with example?

PART-C (10 MARKS)


17.
18.
19.
C ?

Describe the categories of C operators?


Explain the data types in detail?
Give all the header files and its corresponding library functions in

UNIT-II
PART-A (2 MARKS)
1.
2.

Define control string?


What are the steps followed to enhance the readability of the output?

3.
4.
5.

State the difference between break and continue?


Define loop and give its two categories?
Define inner and outer loop?

PART-B (5 MARKS)
6.

Explain how reading and writing a character can be done?

7.
Explain the usage of goto statement with jump example?
8.
Give short notes on loop control structures with example?
9.
Write the difference between while and do while with examples?
10.
Write a C program to display the numbers which is even in between 1 to 100
?
11.
Write a C program using while loop to reverse the given digit of the numbe
r 12345 ?
PART-C (10 MARKS)
12.
13.
14.
15.
an 100
16.

What are the commonly used scanf, printf format codes and explain?
How an input and output can be formatted?
Explain the decision making statements with example?
Write a program to find the number of and sum of all integers greater th
and less than 200 that are divisible by 7?
What are the three constructs for performing loop operations?

UNIT-III
PART-A (2 MARKS)
1.
2.
3.
4.
5.
6.
7.
8.
9.

Define modular programming?


Define calling function and called function?
What are the similarities between variables and functions?
Define function header and the function body?
Distinguish between formal and actual parameter list?
Define pass by value and pass by reference?
Define scope of a variable?
Define function call?
What is recursion?

PART-B (5 MARKS)
10.
11.
12.

What is the need for user defined function?


State the elements of function implementation?
Explain the concept of function prototype?

13.
14.
15.
16.

Illustrate nesting of functions with example?


How to use an extern variable in a multifile program?
Explain passing of arrays and strings to function?
Write a C program to find the GCD of two numbers using recursion?

PART-C (10 MARKS)

17.
18.
19.
20.
eturn 0

State the elements of user defined function?


What are the categories of functions?
Explain the various types of storage classes?
Write a function prime that returns 1 if the argument is a prime no and r
otherwise?

UNIT-IV
PART-A(2 MARKS)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.

Define bit field?


What is the difference between strcpy() and strncpy()?
Define character array?
What is the purpose of using gets() instead of scanf()?
How to find the size of the structures?
What are the methods to pass the structure values to functions?
What is the usage of null character?
Give the format of typedefined structure?
What are the ways to access the structure members?
Distinguish between structure elements and structure variable?
What are the elements found in defining the structure?
Define array?
What are the data types found in bit fields?
What is the constraint used in initializing the union members?

PART-B(5 MARKS)
15.
16.
17.
18.
tures?
19.
20.
ions?

Explain the concept of structures and functions?


Give brief note on unions?
Distinguish between static array and dynamic array?
State the difference between array of structures and arrays within struc
Explain briefly the elements of initializing the structures?
What are the rules to follow while passing the structure values to funct

PART-C(10 MARKS)
21.
22.
23.
24.

UNIT-V

Illustrate the concept of array in detail with suitable examples?


Distinguish the difference between array, structures and union?
Explain structures in detail?
Explain the string handling functions with examples?

PART-A(2 MARKS)
1.
2.
3.
4.

Define file?
What is the notation of pointer?
What is the usage of pointer?

PART-B(5 MARKS)
5.
6.

Explain opening and closing operations in a file?

PART-C(10 MARKS)
7.Explain in detail the concept of pointers?