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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE

FIRST SEMESTER – NOVEMBER 2012

CS 1505 – PROGRAMMING IN C

 

 

Date : 08/11/2012             Dept. No.                                        Max. : 100 Marks

Time : 1:00 – 4:00

 

PART – A

 

ANSWER ALL THE QUESTIONS:                                                                     ( 10 x  2 = 20 marks )

 

  1. Define typedef statement.
  2. Write the function used for the string input and string output.
  3. Define array.
  4. Write down the components of ‘for loop’..
  5. What are the functions that help in manipulating strings?
  6. What do you understand by a pointer to a pointer?
  7.  What is user defined function?
  8.  Define recursion.
  9. What are the different file handling functions?
  10. Define union.

PART – B

ANSWER ALL THE QUESTIONS:                                                                           ( 5 x 8=40 marks )

 

  1. a)Write the algorithm to display the largest of three numbers.

(Or)

  1. b) Describe the different format specifiers of scanf().

 

  1. a) Explain the significance of the break statement in the switch-case construct.

(Or)

  1. b) Explain in detail about the looping statements in C with examples.

 

  1. a) Write a C program using pointers to sort the vector elements in descending order.

(Or)

  1. b) How do you pass an array to a function? Give an example.

 

  1. a) Explain the concepts of pointers and functions.

(Or)

  1. b) Explain in detail about the storage classes.

 

  1. a) Explain about declaring and using structures within a structure with  an example.

(Or)

  1. b) Explain in detail about the error handling during Input/Output operations.

PART-C

 

ANSWER ANY TWO QUESTIONS:                                                                        ( 2×20=40 marks)

 

  1. a) Discuss about the data types used in C with an example.

 

  1. b) Write a C program to find out the smallest element in an array.

 

  1. a) What are functions in C? Explain the types of functions with an example.

 

  1. b) Describe in detail about string handling functions with suitable examples.

 

  1. a) Explain the various mode strings that can be passed as the second parameter to fopen.

 

  1. b) Explain command line arguments with an example.

 

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