Semester : S1 and S2
Subject : Computer Programming
Year : 2018
Term : DECEMBER
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:2
18
19
20
21
22
23
24
a)
$2079
printf("%d ", ೩[11);
return 0;
}
When a program is terminated, all the files used by it are automatically closed.
Why is it then necessary to close a file during execution of the program?
PART B
Answer any four full questions, each carries 8 marks.
Describe about the fundamental data-types in C.
Write a C program to print the factors of a given number.
Write a C program to create a structure student with details roll no, name,
marks and grade. Read the details of ‘n’ students and display the details of the
student if student name is given as input.
How does an array differ from a structure?
Write a C program to find the largest and smallest element in an integer array
using function.
What do you mean by a void pointer? Is it possible to dereference a void
pointer? Justify your answer.
Write a C program to sort names in an array in lexicographical order.
Write a C program to find the sum of digits of a number using recursion.
How is memory management performed dynamically in C?
How is the declaration int * a [10] different from int (*a)[10]?
PART C
Answer any two full questions, each carries 14 marks.
Write a C program to find the second largest element of an unsorted array.
With suitable examples explain the various storage classes in C
Write a C program to create a file and store information about a person, in
terms of his name, age and salary.
Write any two file handling functions used to write data into text files.
Describe bitwise operations in C.
Given a set of n items, write a © program to find the k" largest item in the list.
मे के RK
Page 2 of 2
Pages: 2