Loyola College B.Sc. Computer Science Nov 2006 Programming In C Question Paper PDF Download

                        LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE

AK 02

FIRST SEMESTER – NOV 2006

CS 1501 – PROGRAMMING IN C

 

 

Date & Time : 01-11-2006/1.00-4.00    Dept. No.                                                       Max. : 100 Marks

PART – A

Answer all the questions: (10 x 2 = 20)

 

  1. Mention the symbols used in flowchart.
  2. List any four library functions in C.
  3. Differentiate between getchar and gets function.
  4. What is the use of break statement?
  5. What is the use of return statement?
  6. Differentiate between strcmp() and strcpy().
  7. What is pointer? How do you declare a pointer variable?
  8. Differentiate between structure and arrays.
  9. What is a file?
  10. Write the syntax for opening and closing a file.

PART – B

Answer all the questions: (5 x 8 = 40)

 

11.a) i) Explain the problem definition phase with examples.

  1. ii) Explain any 4 data types in C.

(Or)

  1. b) Enumerate the various operators in C.

12.a)  Explain while and do-while and write programs demonstrating

those looping statements.

(Or)

  1. Write a C program to display the fibonacci series for n numbers.

13.a)  Explain the concept of ‘call by value’ and ‘call by reference’ with examples.

(Or)

  1. b) Write a C program to demonstrate any 4 string functions using switch case.
  2. a) Explain how pointers are used with arrays. Explain with an example.

(Or)

  1. b) Write a C program to enter student number, student name, and marks in two

subjects and calculate the total and average and display the same using

structures.

  1. a) Write a C program to enter employee number, employee name, basic pay

and store them in a file.

(Or)

  1. b) Explain the various input and output statements used in files.

PART – C

Answer any two questions: (2 x 20 = 40)

 

  1. a) Explain the steps that are involved in computer programming.
  2. b) Explain the different types of ‘if’ statements with examples.
  3. a) Write a C program to find the transpose of a given matrix.
  4. b) How will you pass arrays to functions? Explain with examples.
  5. a) How will you access a variable in a structure using pointers. Explain with

example.

  1. b) Explain External variables and static variables with examples.

Go To Main Page

© Copyright Entrance India - Engineering and Medical Entrance Exams in India | Website Maintained by Firewall Firm - IT Monteur