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

Go To Main page

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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

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

FIRST SEMESTER – NOVEMBER 2010

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

 

 

 

Date : 10-11-10                     Dept. No.                                        Max. : 100 Marks

Time : 1:00 – 4:00

 

PART – A

 

ANSWER ALL THE QUESTIONS:                                                                           (10 x2=20 marks)

 

  1. List any two characteristics of algorithm.
  2. What is the difference between variable and constant?
  3. What is the usage of scanf? List the arguments of scanf function.
  4. What are the disadvantages of using unconditional control statement?
  5. What is call by reference?
  6. What is an automatic variable?
  7. Define Pointer
  8. What is the difference between union and structure?
  9. Give the syntax for creating a file.
  10. What is the significance of EOF?

 

PART – B

 

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

 

  1. a) Discuss about the precedence of arithmetic operators.

(OR)

  1. b) Write an algorithm to find whether a given number is negative, positive or zero.

 

  1.       a) Discuss about loop statements in C with example.

(OR)

  1.               b) Explain about the control statements in C.

 

  1.        a) Write note on declaration and use of arrays.

(OR)

  1.             b) Explain about  recursive function with example.

 

  1.      a) Discuss about the usage of pointers for structures.

(OR)

  1.    b) With example explain about user-defined function with example.

 

  1.    a) Explain about input and output operations in data file.

(OR)

  1.  b) Discuss the different modes of opening a file with example

PART – C

 

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

 

  1. a)  Discuss about the different data types in C.                                                                (10)

 

  1. b) Draw the flowchart for finding the sum of 5 digits.          (10)

 

  1.   a) Write a C program to do matrix addition.                                                            (10)

 

  1.        b) Write a C program to find whether a given string is palindrome or not.                   (10)

 

  1. a) Write a C program to prepare the paybill after reading the following details

from the array of structures.                                                                                             (10)

Details: empno, empname, basicpay, da , hra , pf

 

  1. b) Write short notes on:                                                                                                         (10)

1) ftell            2) fseek         3) fscanf       4) fopen         5) fclose.

 

 

Go To Main Page

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

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

FIRST SEMESTER – NOVEMBER 2010

CS 1503/CA 1503 – PROGRAMMING IN C

 

 

 

Date : 10-11-10                     Dept. No.                                        Max. : 100 Marks

Time : 1:00 – 4:00

 

PART – A

 

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

 

  1. Define variable.
  2. Write a note on increment and decrement
  3. What are the three rules to pass an array to a function?
  4. What is the use of getchar function in C?
  5. What is function declaration?
  6. Define recursion.
  7. What is a static variable?
  8. What are the advantages of using pointers?
  9. Write a note on the function malloc.
  10. What are the two distinct ways to perform file operations in C?

 

PART – B

 

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

 

  1. a) Describe the basic structure of a C program.

(OR)

  1. b) Explain briefly about the characteristics and purpose of escape sequences.

 

  1. a) Discuss in detail about break and continue statements.

(OR)

  1. b) Explain in detail about the various  string  handling functions.

 

  1. a) Write a program that uses a function to sort an array of integers.

(OR)

  1. b) Explain any two storage classes in C.

 

  1. a) Explain in detail about structures within structures.

(OR)

  1. b) Write a note on pointer to functions with an example.

 

  1. a) Discuss about memory allocation functions.

(OR)

  1. b) What are the error situations during I/O operations on a file?

PART – C

 

Answer any TWO questions                                                                                     (2 x 20 = 40  marks)

 

  1. a) Explain different types of constants in C with an example.

 

  1.        b)  Write a program to calculate the average of a set of N numbers.

 

  1. a) What are the types of user defined functions in C? Explain any two categories of

functions with an example.

 

  1. b) Write a function using pointers to exchange the values stored in two locations in the

memory.

 

  1.   a) Describe briefly about the command line arguments.

 

  1.   b) What are the operations that can be performed on fseek  function?

 

 

 

Go To Main Page

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