University of Madras
Chepauk, Chennai-600 005.
B.Sc Computer Science
(SAE1A)
PART A - (10 * 2 = 20 marks)
Answer any TEN questions. All questions carry equal marks. 1. What are Keywords? 2. List the four data types qualifiers. 3. What is an Operator? 4. Write the syntax of While statement in C. 5. What is the use of Continue statement? 6. Why is the goto statement generally discouraged in C? 7. What is recursion? 8. Define scope of a variable? 9. What are multidimensional arrays? 10.How to access the elements of a structure? 11.What is the use of address operator? 12. What is a file? PART B - (5 * 5 = 25 marks) Answer any FIVE questions. All questions carry equal marks. 13. Explain the four types of constants in C. 14. Give a brief account on character related I/O functions. 15. Write a C program to find the factorial value of I/O integer. 16. Write a note on storage classes in C. 17. Give a brief account on array pointers. 18. Describe bit-wise operators in C. 19. Explain the different modes of opening a file. PART C - (3 * 10 = 30 marks) Answer any THREE questions. All questions carry equal marks. 20. List and explain any ten library functions in C. 21. Explain the various branching statements in C with examples. 22. What is a function? How function are defined in C? Explain with an example program. 23. write a C program to sort the given set of n numbers. 24. Explain the following with examples (a) Call by Value (b) Call by Reference |
(PC2A)-NOVEMBER - 2011
PART A - (10 * 3 = 30 marks)
Answer any TEN questions. All questions carry equal marks. Each answer should not exceed 50 words. 1. Explain about constants. 2. Write about types of operators. 3. What is the use of Break statement? 4. Write about if statement? 5. Explain about user defined data types. 6. Give short notes on string operations. 7. What is meant by array? 8. What is meant by static variable? 9. Explain about goto statement. 10. Write short notes on Arithmetic operators. 11. Explain about scopes of a variable. 12. Give notes on Increment and Decrement operators. PART B - (5 * 6 = 30 marks) Answer any FIVE questions. All questions carry equal marks. Each answer should not exceed 200 words. 13. Explain conditional operator with an example. 14. Explain switch statement with an example. 15. Write about notes on Passing arguments. 16. Explain about Bitwise operators. 17. What is union? Explain with an example. 18. What is a loop? Write a program to display the first n terms of the Fibonacci series. 19. What is recursion? Write a program to find the factorial of a given number using recursion. PART C - (4 * 10 = 40 marks) Answer any FOUR questions. All questions carry equal marks. Each answer should not exceed 500 words. 20. Explain about logical operators with examples. 21. Write a program to arrange the given set of numbers in ascending order. 22. Write a program to get the student name, register number, class, mark1, mark2, mark3 and mark 4. Calculate the total and average. Print the results. 23. Explain about pointers with examples. 24. Briefly discuss about control statements. 25. What are structures? Explain with examples. |
SAE1A - APRIL - 2009
PART A - (10 * 2 = 20 marks)
Answer any TEN questions. All questions carry equal marks. 1. What are Keywords? 2. What is meant by declarations? Give an example. 3. What are library functions? Give an example. 4. Specify the syntax used for 'for' statement. 5. Mention the use of 'break' and 'continue' statements. 6. What are function prototypes? 7. Specify the role of static variables. 8. What is a string? Give an example. 9. Mention any two bitwise operators. 10.How do you declare a multidimensional array? 11.Specify the method of declaring a integer pointers. 12. Mention any two file manipulation statements. PART B - (5 * 5 = 25 marks) Answer any FIVE questions. All questions carry equal marks. Each answer should not exceed 200 words. 13. Explain the character set of C. 14. What are constants? How they are declared? Mention different constant types. 15.Explain various relational and logic operators. 16.Write a C program to find the average of given numbers. 17.What are nested control structures? Give an example. 18.What is meant by storage class? Explain. 19.Write about notes on unions. PART C - (3 * 10 = 30 marks) Answer any THREE questions. All questions carry equal marks. Each answer should not exceed 500 words. 20. Explain the following: (a) Expressions (b) Unary operators (c) Shorthand Assignment Operators (d) Header files 21. Write a C program to count the number of digits of the given integer number. 22. Explain the following control structures: (a) While-do (b) Switch 23. Write a C program to arrange the numbers in ascending and descending orders. 24. Write short notes on: (a) Pointers (b) Files |