Loyola College B.Sc. Computer Science April 2007 Programming In C Question Paper PDF Download

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc.

HC 02

DEGREE EXAMINATION – COMPUTER SCIENCE

FIRST SEMESTER – APRIL 2007

CS 1501PROGRAMMING IN C

 

 

Date & Time: 26/04/2007 / 1:00 – 4:00          Dept. No.                                                     Max. : 100 Marks

 

 

PART – A

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

  1. Define Algorithm.
  2. Write a C program to find the greater of two numbers using conditional operator.
  3. Differentiate between getchar() and getw().
  4. What is the use of ‘if’ statement?
  5. What is function prototyping?
  6. What are external variables?
  7. How a pointer variable will be declared?
  8. Differentiate Union and Structure.
  9. Define file.
  10. What is a file pointer?

 

PART – B

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

  1. a) Draw a flowchart to
  1. find the sum of n numbers.[4 marks]
  2. display the fibonacci series. [4 marks]

(Or)

  1. b) Write short notes on constants.
  1. a) Explain any four types of input and output statements in C with suitable

examples.

(Or)

  1. b) Explain nested ‘if’ with suitable example.
  1. a) What is recursion? Explain with an example.

(Or)

  1. b) Write a C program to find the addition of two 3×3 matrices.
  1. a) Differentiate ‘call by value’ and ‘call by reference’.

(Or)

  1. b) Explain with an example how pointers are implemented with structures.
  1. a) Discuss data files with examples.

(Or)

  1. b) Explain how to open a file along with the various modes with examples.

 

PART – C

Answer any TWO from the following:                                         (2 x 20 = 40)

  1. a) Explain the various steps involved in computer programming. [10 marks]
  1. b) Explain the various Data types in C with suitable examples. [10 marks]

 

  1. a) Differentiate while and do-while statement with examples. [10 marks]
  1. b) How arrays are passed to functions? Explain with an example. [10 marks]

 

  1. a) What is a structure? Explain with an example.  [10 marks]
  1. b) Write a C program to store customer name, phone number and email id in a file

and read the same.  [10 marks]

 

 

Go To Main page

Latest Govt Job & Exam Updates:

View Full List ...

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