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