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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE

FIRST SEMESTER – APRIL 2011

CS 1503/CA 1503 – PROGRAMMING IN C

 

 

Date : 06-04-2011              Dept. No.                                        Max. : 100 Marks

Time : 1:00 – 4:00

 

PART – A

 

Answer ALL the Questions                                                                                          (10 x 2 = 20 marks)

 

  1. Specify the symbols used in flow charts.
  2. Define constants.
  3. Write the syntax for Nested IF statement.
  4. What is meant by Single- subscripted variable?
  5. What is Recursion?
  6. Define print line Functions.
  7. Define union.
  8. Define Pointers.
  9. Write the syntax to open and close a file.
  10. What is the use malloc ( )?

PART – B

 

Answer ALL the Questions                                                                                             (5 x 8 = 40 marks)

 

  1. a) Explain in detail about Data types with example.

(Or)

  1. b) Explain in detail about precedence of arithmetic operators with example.

 

  1. a) Write the different types of IF structure available in C.

(Or)

  1. b) Describe the various looping structure with suitable example.

 

  1. a) Explain about various string handling functions with examples.

(Or)

  1. b) Explain nesting of functions with example.

 

  1. a) Explain about pointers in C and its advantages.

(Or)

  1. b) Explain about arrays within the structure.

 

  1. a) Explain about Error handling during I/O operations.

(Or)

  1. b) Write a C program to find number of character, word, line in the given file.

 

PART – C

 

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

 

 

  1. a) Explain the various operators available in C with example.                                   (10 marks)

 

  1. b) Illustrate the various control structures available in C. (10 marks)

 

 

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

 

  1. b) Explain array concepts. Write a program to add two nxn matrices. (10 marks)

 

 

  1. a) Explain the Input and output operations on files with suitable examples.             (10marks)

 

  1. b) Explain about the dynamic memory allocation in detail. (10 marks)

 

 

 

Go To Main Page

 

 

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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE

FIRST SEMESTER – APRIL 2011

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

 

 

 

Date : 19-04-2011              Dept. No.                                                    Max. : 100 Marks

Time : 9:00 – 12:00

 

PART A

Answer ALL the Questions                                                                                      (10×2=20 marks)

 

  1. Define unary operator.
  2. What is a keyword?
  3. State the need for putchar and getchar functions.
  4. Write about goto statement.
  5. What is a Function Prototype.
  6. What are formal and actual parameters in C?
  7. What are self referential structures?
  8. Write the advantages of pointers.
  9. List the uses of ftell and rewind functions.
  10. Write down the various formats of fseek function.

PART B

Answer ALL the Questions                                                                                      (5×8=40 marks)

 

  1. Draw a flow chart to display biggest of three numbers.

(OR)

  1. Discuss on bitwise Logical Operators.

 

  1. a. Write a C program to find out the sum of n odd numbers 1+ 3 + 5 + …….. + n.

(OR)

  1. Explain about Dynamic Memory Allocation.

 

  1. a. Explain about different storage classes available in C.

(OR)

  1. Write a C program to pass an array to a function and sort it.

 

  1. a. Define the terms Union and Structure. How does they differ?

Explain structures with an example program.

(OR)

  1. Discuss on Pointers with a suitable example.

 

  1. a. Explain about Random Access Files with an example

(OR)

  1. Write about various File opening modes with description.

 

 

 

PART C

Answer any TWO  Questions                                                                                  (2×20=40 marks)

 

  1. a. Discuss on various Input/Output Functions in C.

 

  1. Write a C program to evaluate the Sine Series f(x) = x – x3/3!+x5/5!+ …….

 

  1. a. How a multidimensional array can be defined using pointers? Explain it with an example.

 

  1. Write a recursive C program to find out the factorial of a given number.

 

  1. a. Explain file I/O function and their description.

 

  1. Write a program that reads a string from the keyboard and determines whether the string is

palindrome or not.

 

 

 

Go To Main Page

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