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

Go To Main page

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

Go To Main page

Loyola College B.C.A. Computer Application Nov 2015 Programming In C Question Paper PDF Download

Go To Main page

Loyola College B.C.A. Computer Application April 2016 Programming In C Question Paper PDF Download

Go To Main page

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

                        LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE

AK 02

FIRST SEMESTER – NOV 2006

CS 1501 – PROGRAMMING IN C

 

 

Date & Time : 01-11-2006/1.00-4.00    Dept. No.                                                       Max. : 100 Marks

PART – A

Answer all the questions: (10 x 2 = 20)

 

  1. Mention the symbols used in flowchart.
  2. List any four library functions in C.
  3. Differentiate between getchar and gets function.
  4. What is the use of break statement?
  5. What is the use of return statement?
  6. Differentiate between strcmp() and strcpy().
  7. What is pointer? How do you declare a pointer variable?
  8. Differentiate between structure and arrays.
  9. What is a file?
  10. Write the syntax for opening and closing a file.

PART – B

Answer all the questions: (5 x 8 = 40)

 

11.a) i) Explain the problem definition phase with examples.

  1. ii) Explain any 4 data types in C.

(Or)

  1. b) Enumerate the various operators in C.

12.a)  Explain while and do-while and write programs demonstrating

those looping statements.

(Or)

  1. Write a C program to display the fibonacci series for n numbers.

13.a)  Explain the concept of ‘call by value’ and ‘call by reference’ with examples.

(Or)

  1. b) Write a C program to demonstrate any 4 string functions using switch case.
  2. a) Explain how pointers are used with arrays. Explain with an example.

(Or)

  1. b) Write a C program to enter student number, student name, and marks in two

subjects and calculate the total and average and display the same using

structures.

  1. a) Write a C program to enter employee number, employee name, basic pay

and store them in a file.

(Or)

  1. b) Explain the various input and output statements used in files.

PART – C

Answer any two questions: (2 x 20 = 40)

 

  1. a) Explain the steps that are involved in computer programming.
  2. b) Explain the different types of ‘if’ statements with examples.
  3. a) Write a C program to find the transpose of a given matrix.
  4. b) How will you pass arrays to functions? Explain with examples.
  5. a) How will you access a variable in a structure using pointers. Explain with

example.

  1. b) Explain External variables and static variables with examples.

Go To Main Page

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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

B.Sc.

HC 02

DEGREE EXAMINATION – COMPUTER SCIENCE

FIRST SEMESTER – APRIL 2007

CS 1501PROGRAMMING IN C

 

 

Date & Time: 26/04/2007 / 1:00 – 4:00          Dept. No.                                                     Max. : 100 Marks

 

 

PART – A

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

  1. Define Algorithm.
  2. Write a C program to find the greater of two numbers using conditional operator.
  3. Differentiate between getchar() and getw().
  4. What is the use of ‘if’ statement?
  5. What is function prototyping?
  6. What are external variables?
  7. How a pointer variable will be declared?
  8. Differentiate Union and Structure.
  9. Define file.
  10. What is a file pointer?

 

PART – B

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

  1. a) Draw a flowchart to
  1. find the sum of n numbers.[4 marks]
  2. display the fibonacci series. [4 marks]

(Or)

  1. b) Write short notes on constants.
  1. a) Explain any four types of input and output statements in C with suitable

examples.

(Or)

  1. b) Explain nested ‘if’ with suitable example.
  1. a) What is recursion? Explain with an example.

(Or)

  1. b) Write a C program to find the addition of two 3×3 matrices.
  1. a) Differentiate ‘call by value’ and ‘call by reference’.

(Or)

  1. b) Explain with an example how pointers are implemented with structures.
  1. a) Discuss data files with examples.

(Or)

  1. b) Explain how to open a file along with the various modes with examples.

 

PART – C

Answer any TWO from the following:                                         (2 x 20 = 40)

  1. a) Explain the various steps involved in computer programming. [10 marks]
  1. b) Explain the various Data types in C with suitable examples. [10 marks]

 

  1. a) Differentiate while and do-while statement with examples. [10 marks]
  1. b) How arrays are passed to functions? Explain with an example. [10 marks]

 

  1. a) What is a structure? Explain with an example.  [10 marks]
  1. b) Write a C program to store customer name, phone number and email id in a file

and read the same.  [10 marks]

 

 

Go To Main page

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

Go To Main Page

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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

           B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE

BH 1

FIRST SEMESTER – APRIL 2008

CS 1501 – PROGRAMMING IN C

 

 

 

Date : 07-05-08                  Dept. No.                                        Max. : 100 Marks

Time : 1:00 – 4:00

 

PART – A

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

 

  1. Give the structure of a ‘C’ program.
  2. List any 4 standard library functions in ‘C’.
  3. What is the difference between the Operators = and = = ?
  4. Explain Scanf() and Printf() functions.
  5. How arrays are declared and initialized?
  6. What do you mean by recursion?
  7. What is a pointer? How is it initialized?
  8. What is the major difference between structure and union?
  9. What does passing by reference mean?
  10. Give the general syntax of the following:
  1. Open statement
  2. Close statement

PART – B

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

 

  1. a) List and explain the rules that are to be followed while defining variables. Give examples.
  1. b) What are the relational and logical operators in ‘C’?
  1. a) Write a program for selecting largest of three values using a nested if …else statement.

(OR)

  1. b) Give the general form of switch statement and explain with an example.
  1. a) Distinguish between automatic, external and static variables.

(OR)

  1. b) Write a recursive function to generate the nth Fibonacci number.
  1. a) What do you mean by Self-referential structure?

(OR)

  1. b) Write a program using pointers to compute the sum of all elements stored in an array.
  1. a) Write a C program to accept student’s information and save it into a file ‘student.dat’.

(OR)

  1. b) Write a note on unformatted data file.

PART – C

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

 

  1. a) Discuss the steps involved in programming.                                               (4)
  1. b) What are the data types available in ‘C’? (8)
  2. c) What are the loop control structures available in ‘C’? (8)
  1. a) Write a program that will read a text and count all occurrences of a particular word. (10)
  1. b) Write a program to perform Matrix Multiplication. (10)
  1. a) Write a Program that reads in an array of numbers and calculates and displays the row and column sums, as well as the grand total. Place the sum next to their respective rows and columns.            (10)
  1. b) Write Short notes on:
  • Function Prototypes (3)
  • User defined data types (3)
  • Strings (2)
  • Break Statement (2)

 

Go To Main Page

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

LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

   B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE

NA 01

 

FIRST SEMESTER – November 2008

CS 1501 / 1500 – PROGRAMMING IN C

 

 

 

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

Time : 1:00 – 4:00

 

PART – A

ANSWER ALL THE QUESTION:                                                10×2=20 Marks

 

  1. What is the significance of  conditional operator?
  2. What is the difference between ++I and I++
  3. What are the control characters used in scanf() function?
  4. List the disadvantage of using Goto statement.
  5. Write a function declaration for the following specification:

The function has to return a float value

The arguments are int,char,int

  1. Write a note about automatic variables
  2. What is call by value?
  3. Mention any two usages of pointer.
  4. What are the different file opening modes in C?
  5. What is an unformatted data file?

 

PART –  B

    ANSWER ALL THE QUESTION:                                5 x 8 = 40 Marks

11 (a) Write down the fundamental data types in C Language..

(Or)

(b) Explain logical operators, conditional operator with example.

  • (a)Explain about the switch –case statement with an example.

(Or)

(b) Write a program finding the factorial of a given number.

13 (a) Find out the diagonal sim of a given 3×3 matrix.

(Or)

(b) Write a C program to find the second largest in the given array.

14.(a) Discuss about structure with a suitable example.

(Or)

(b) Explain the difference between call by value and call by reference.

 

  1. (a) Discuss in detail opening and closing a data file with example.

(Or)

(b) Explain about the file related functions.

PART C

      ANY TWO QUESTION:                                               2 x 20 = 40 Marks

  1. (a) Write a down the stages of algorithm development with an example.
  2. (b) Explain loop structures in C.
  3. (a) Explain about storage classes in C.
  4. (b) Explain about function in detail
  5. (a) Explain in detail about pointers.
  6. (b) Write a C program to create a file with the following details.

Empname, empid, basicpay

Prepare a pay bill with 7% pf and 10% DA

 

 

Go To Main Page

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

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

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

 

 

 

 

 

 

 

 

 

 

 

 

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

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 SCI. & COMPUTER APP.

FIRST SEMESTER – NOVEMBER 2012

CS 1501/CA 1501/CS1500 – 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 Identifiers.
  2. Write the use of conditional operator to form conditional expressions.
  3. What is the purpose of ‘putchar’ functions?
  4. What is the use of break statement?
  5. Define Recursion.
  6. What is an external variable?
  7. Define pointers.
  8. What is a structure?
  9. Write the primary advantage of using a data file.
  10. What is a stream pointer?

 

PART – B                                         

Answer ALL the questions:                                                                                     5 x 8 = 40 marks

           

  1. a) Draw a flowchart to display the largest of three numbers.

                                    (OR)

  1. b) Write notes on the data types available in C.

 

  1. a) Explain about Input and output functions in C.

                                    (OR)

  1. b) How does a while statement differ from do while statement? Explain with an example.

 

  1. a) Describe the different storage classes available in C

                                    (OR)

  1. b) How arrays are passed as argument to a function? Give example.

 

  1. a) With an example explain about the passing pointers to functions.

                                    (OR)

  1. b) Explain about the self referential structures.

 

  1. a)  Explain how to open and close a data file in C.

                                    (OR)

  1. b) Write any two input operations used in files.

 

 

 

PART – C                                         

Answer any TWO questions                                                                                    2 x 20 = 40 marks

 

  1. a) Explain the various operators in C with example.

 

  1. b) Write a C program to find the biggest of three numbers.

 

  1. a) Discuss in detail about the various looping statements in C.

 

  1. b) Write a recursive C program to calculate the factorial of a given number.

 

  1. a) Describe the File I/O function and their descriptions.

 

  1. b) Write a C program to swap the values using pointers.

 

 

 

Go To Main Page

 

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 SCI. & COMPUTER APP.

FIRST SEMESTER – NOVEMBER 2012

CS 1503/CA 1503 – PROGRAMMING IN C

 

 

 

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

Time : 1:00 – 4:00

 

PART – A

Answer ALL Questions                                                                                                        (10×2=20)

 

  1. Write the rules to declare an identifiers.
  2. What are the two types of Assignment Operators?
  3. What is an Array?
  4. Define functions in C?
  5. What is global variable?
  6. What is Pointers?
  7. What are the types of linked lists?
  8. What is union?
  9. What is Command line arguments?
  10. What is the use of  # define in a C program?

 

PART – B

 

 Answer ALL Questions                                                                                                  (5×8=40)

 

  1.  a) Explain the different types of constants in C.

(OR)

  1. b) Write an algorithm to find the biggest of three numbers.

 

  1. a) Explain the different types of if statement with an example.

(OR)

  1. b) How to initialize one, two and multidimensional arrays? Explain with an example.

 

  1. a) Explain Recursion with an example.

(OR)

  1. b) Write the common string functions with an example?

 

  1. a) Write a C program to swap the values using pointers.

(OR)

  1. b) Explain (i) call by value (ii) call by reference.

 

  1. a) Explain various file operations in C programming.

(OR)

  1. b) Explain about Macro substitution.

 

PART – C

Answer ANY TWO Questions                                                                                 (2×20=40)

 

  1. a) Write the structure of C programming.

 

  1. b) Explain the different types of operators in C.

 

  1. a) Explain looping statement in detail with an example.

 

  1. b) Write a C program to add two matrices using function.

 

  1. a) Explain Array of structure and Array within the structure in detail.

 

  1. b) Write a note on Dynamic memory allocation.

 

 

Go To Main Page

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

 

 


 

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