LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – COMPUTER SCI. & COMPUTER APP.
FIRST SEMESTER – NOVEMBER 2012
CS 1503/CA 1503 – PROGRAMMING IN C
Date : 08/11/2012 Dept. No. Max. : 100 Marks
Time : 1:00 – 4:00
PART – A
Answer ALL Questions (10×2=20)
- Write the rules to declare an identifiers.
- What are the two types of Assignment Operators?
- What is an Array?
- Define functions in C?
- What is global variable?
- What is Pointers?
- What are the types of linked lists?
- What is union?
- What is Command line arguments?
- What is the use of # define in a C program?
PART – B
Answer ALL Questions (5×8=40)
- a) Explain the different types of constants in C.
(OR)
- b) Write an algorithm to find the biggest of three numbers.
- a) Explain the different types of if statement with an example.
(OR)
- b) How to initialize one, two and multidimensional arrays? Explain with an example.
- a) Explain Recursion with an example.
(OR)
- b) Write the common string functions with an example?
- a) Write a C program to swap the values using pointers.
(OR)
- b) Explain (i) call by value (ii) call by reference.
- a) Explain various file operations in C programming.
(OR)
- b) Explain about Macro substitution.
PART – C
Answer ANY TWO Questions (2×20=40)
- a) Write the structure of C programming.
- b) Explain the different types of operators in C.
- a) Explain looping statement in detail with an example.
- b) Write a C program to add two matrices using function.
- a) Explain Array of structure and Array within the structure in detail.
- b) Write a note on Dynamic memory allocation.
Latest Govt Job & Exam Updates: