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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE & COMPUTER. APP.

FIRST SEMESTER – APRIL 2012

CS 1501/CA 1501/CS 1500 – PROGRAMMING IN C

 

 

 

Date : 02-05-2012              Dept. No.                                        Max. : 100 Marks

Time : 1:00 – 4:00

 

PART – A

    Answer ALL the Questions:                                                                                (10 X 2 = 20 Marks)

 

  1. Define Identifier.
  2. What are unary operators?
  3. What is the purpose of the getchar function?
  4. What is the use of goto statement?
  5. State the advantage of using function in a program.
  6. Define Arguments.
  7. What is pointer?
  8. List out the difference between structure and union.
  9. What is the primary advantage to using a data file?
  10. List out the file – type specifications.

PART – B

   Answer ALL the Questions:                                                                                 (5 X 8 = 40 Marks)  

  1. a) Explain about the data types available in C with suitable example.

(OR)

  1. b) Explain the four basic types of constants in C.
  2. a) What are the commonly used input/output functions in C? How they are accessed?

(OR)

  1. What is the purpose of do-while statement? How does it differ from the while statement.
  2. a) Write a recursive C program to find the factorial of a given number.

(OR)

  1. Write a C program to perform matrix addition.
  2. a) Explain about passing pointers to function with an example.

(OR)

  1. Explain about structures and its applications.
  2. a) Write about creating a data file with an example.

(OR)

  1. b)   Explain any two input/output operations used in file.

                                                  

PART – C

Answer any TWO Questions:                                                                                  (2 X 20 = 40 Marks)

 

  1. a) Discuss in detail about the steps involved in computer programming.                         (10 marks)
  2. Explain the various operators in C with example.     (10 marks)

 

  1. a) Explain in detail about the various looping statement in C.     (10 marks)
  2. Write a C program to swap the values using pointers.      (10 marks)

 

  1. a) How will you pass structure to function? Explain with a suitable example.       (10 marks)
  2.  b)   Explain about opening and closing a Data file with an example.                                      (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