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

FIRST SEMESTER – APRIL 2012

CS 1503/CA 1503 – PROGRAMMING IN C

 

 

 

Date : 28-04-2012              Dept. No.                                        Max. : 100 Marks

Time : 1:00 – 4:00

 

PART – A

Answer ALL questions:                                                                                        (10×2=20 marks)

 

  1. Define variable in c language.
  2. What is explicit conversion?
  3. What is the use of goto statement?
  4. Give two examples for entry controlled loop.
  5. List out any two string functions.
  6. Write any two advantages of user defined functions.
  7. What is the major difference between structure and union?
  8. Write any two benefits of pointers.
  9. What is a file?
  10. Mention the use of typedef.

PART – B

 

Answer ALL questions:                                                                                              (5×8=40 marks)

 

  1. a) Explain the primary datatypes of C.

(OR)

  1. b) Write about precedence of arithmetic operators with example.
  2. a) Explain for loop and whole loop with examples.

(OR)

  1. b) Write a C program to check the given number is prime or not.
  2. a) Explain about array with an example.

(OR)

  1. b) Write a C program to find a factorial of a number using function.
  2. a) Discuss briefly about operation on pointers with examples.

(OR)

  1. b) Write a note on user defined data types.
  2. a) Explain the malloc() and calloc() function.

(OR)

  1. b) Explain the following file handling function i) fopen() ii) facanf() iii) fclose()

 

 

PART – C

 

Answer any TWO questions:                                                                              (2×20=40 marks)

 

 

  1. a) Explain the different types of operators in C.
  2. b) Discuss on the various forms of IF statement with an example.

 

  1. a) What is meant by parameter passing? Explain any two parameter passing methods

with examples.

  1. b) Explain the following i) expressions ii) unary operators  iii) logical operators
  2. iv) header files.

 

  1. a) Explain the various preprocessor directives with examples.
  2. b) Explain the file oriented character I/o

 

 

 

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