...

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

by user

on
Category: Documents
4

views

Report

Comments

Transcript

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.C.A. DEGREE EXAMINATION – COMPUTER APPLICATIONS
FIRST SEMESTER – NOVEMBER 2014
CA 1505 - PROGRAMMING IN C
Date : 07/11/2014
Time : 01:00-04:00
Answer ALL the Questions:
Dept. No.
Max. : 100 Marks
PART – A
(10 x 2 = 20)
1. List out any two classification of computers.
2. Define an input device.
3. List our the basic data types in C.
4. What is nested “if” statement?
5. What is an array?
6. State some library functions dealing with string.
7. What is the use of functions in a program?
8. How to declare pointers? Give an example.
9. What is enumerated data type?
10. Define command line arguments.
Answer ALL the Questions:
PART – B
11(a) Write an algorithm to find biggest of three numbers..
OR
(b) List and explain any four types of output devices.
12(a) Write about identifiers and keywords with examples.
OR
(b) Write down with syntax the usage of “switch” statement.
13(a) Write a program to compute addition of two given matrices.
OR
(b) Describe about any four standard string functions.
14(a) What are the rules to define a function? Explain with an example.
OR
(b) Write about extern and register storage classes. Explain each with an example.
15(a) Differentiate between structures and unions.
OR
(b) Explain the concept of arrays within structures.
(5 x 8 = 40)
Answer any TWO Questions:
PART – C
16(a) Explain the fundamental datatypes and derived datatypes in C.
(b) Describe the structure of C program. What is the difference between postdecrement and pre-decrement operations?
17(a) Explain with an example the looping statements in C.
(b) Write a program to sort the elements in ascending and descending order.
18(a) What is recursion? Write a recursive function to display the first N terms of the
Fibonacci series: 0
1
1
2
3
5
8……
(b) Explain the types of user-defined function with example.
$$$$$$
(2 x 20 = 40)
Fly UP