BHARAT SEVAK SAMAJ
Time: 2 hrs. Max. Marks: 100
I. Fill in the blanks: (10 x 1 = 10)
1. The && and !! are two ------------ operators.
2. The ----------- function is used to compare two character strings.
3. Data files are closed in C program by using the --------- library function.
4. In a C program execution begins with the function -------------.
5. The process of allocating memory at compile time is called -------------.
6. Every statement in C should end with --------------.
7. ----------- function is used to find the absolute value of a variable.
8. ----------- is a multiway decision making statement.
9. A file is a collection of -------------.
10. ------------ is the special keyword used for defining a structure.
II. State whether True or False: (10 x 1 = 10)
1. Syntax errors will be detected by the compiler.
2. One if statement can have more than one else clause.
3. C does not support multi-dimensional arrays.
4. # is a pre-processor directive.
5. C functions need not return any value.
6. A file pointer always contains the address of the file.
7. C language is case sensitive.
8. Dennis Ritchie developed C language.
9. There are 33 keywords in C.
10. E60 is a valid variable name in c.
III. Answer any SIX of the following: (6 x 10 = 60)
1. Explain data types available in C.
2. Write a program to find the factorial of a number.
3. Explain logical and relational operators in C.
4. What is the difference between structure and union?
5. Write short notes on arrays.
6. Explain about pointers in C.
7. Write a program to generate the Fibonacci series.
IV. Answer any ONE of the following: (1 x 20 = 20)
1. What are the different control structures in C?
2. Write a program to sort n numbers in an array.