Sp2 AFF 826 Sub. Code 4BSO1C1 B.Sc. DEGREE EXAMINATION, NOVEMBER 2015 First Semester Software FUNDAMENTALS OF COMPUTERS AND C PROGRAMMING (CBCS 2014 onwards) Time : 3 Hours Maximum : 75 Marks Part A (10 2 = 20) 1. List out the characteristics of computers. 2. What is binary addition? 3. Write any four keywords in C. 4. What are the relational operators in C? 5. Write the input and output statements in C. 6. Define recursion. 7. List out the use of pointers. 8. Name any four string functions and mention their purpose. 9. What is bit field? 10. What is union?
Part B (5 5 = 25) Sp2 11. (a) List out the advantages of computers. Explain the generation of computers. 12. (a) How to work with functions? Give example. Discuss on memory types with example. 13. (a) Write short notes on control statements in C. Describe any five library functions. 14. (a) Explain arrays to pointers with example. Illustrate on dynamic memory allocation. 15. (a) How structures are passed into functions? Explain. Explain the self referential structures. Part C (3 10 = 30) Answer any three questions. 16. Explain about the computer organizations. 17. Discuss on input and output devices. 18. Describe the operators and expressions in C. 19. Explain about arrays and its types with example. 20. How data files are handled in C? 2 AFF 826
Wk 10 AFF 827 Sub. Code 4BSO2C1 B.Sc. DEGREE EXAMINATION, NOVEMBER 2015 Second Semester Software PROGRAMMING IN C ++ AND ALGORITHMS (CBCS 2014 onwards) Time : 3 Hours Maximum : 75 Marks Part A (10 2 = 20) 1. What is the use of type modifiers? 2. What is inline function? 3. When do we declare a member of a class as static? 4. What is the use of const qualifier? 5. What is parameterized constructor? 6. Is it mandatory to use constructors in a class? 7. Give the syntax of single inheritance. 8. What are the two types of polymorphism? 9. Define binary tree. 10. State the purpose of Kruskal algorithm.
Part B (5 5 = 25) Wk 10 11. (a) Explain the switch statement with an example. How a member function of a class is defined? 12. (a) What are arrays of objects? Explain. Illustrate how member functions are nested. 13. (a) Describe the importance of destructors. How is dynamic initialization of objects achieved? 14. (a) Explain multiple inheritance with an example. Write about abstract base classes. 15. (a) Describe the different ways to represent the graph. Describe the quick sort procedure. Part C (3 10 = 30) Answer any three questions. 16. Write a function power( ) to raise a number in to a power n. The function takes a double value of m and int value for n, and returns the result correctly. 2 AFF 827
17. What are the possible ways available to define a member function? Explain. Wk 10 18. Write a program to perform complex number arithmetic operations using operator over loading. 19. Explain the following : (a) Copy constructor Dynamic constructor. 20. Explain the Dijkstra's algorithm to find the shortest path. 3 AFF 827
Sp 6 AFF 828 Sub. Code 4BSO3C1 B.Sc. DEGREE EXAMINATION, NOVEMBER 2015 Third Semester Software JAVA PROGRAMMING (CBCS 2014 onwards) Time : 3 Hours Maximum : 75 Marks Part A (10 2 = 20) 1. Define JVM. 2. What is meant by type casting? 3. What are arithmetic operators? 4. What is the purpose of type conversion? 5. Why do we create objects? 6. What is a vector? 7. Define threads. 8. What is the use of finally statement? 9. How to create an executable applet? 10. Write the code for drawing bar charts.
Part B (5 5 = 25) Sp 6 11. (a) Differentiate constant and variable. Write the features of Java. 12. (a) Illustrate and explain the order of evaluation of expression. Explain for loop with an example. 13. (a) What are constructors? Give an example. How can you define and extend interfaces? 14. (a) How to create a package? Explain. Where do you need multiple catch statements? Explain. 15. (a) Describe passing parameters to applets. How to draw circles and ellipses? Explain. 2 AFF 828
Part C (3 10 = 30) Sp 6 Answer any three questions. 16. What are tokens? Explain in detail. 17. Write a java program to print the prime numbers between two limits. 18. Describe arrays and its types in java. 19. What is a thread? Describe the life cycle of a thread. 20. How can you design a web page by using applet tags? Explain. 3 AFF 828
Sp 5 AFF 829 Sub. Code 4BSOA3 U.G. DEGREE EXAMINATION, NOVEMBER 2015 Software C PROGRAMMING (CBCS 2014 onwards) Time : 3 Hours Maximum : 75 Marks Part A (10 2 = 20) 1. What is meant by Value of a Variable? 2. What does a modulus operator mean? 3. Distinguish between a pre-test looping and a post-test looping. 4. What is the purpose of a break statement? 5. How are multidimensional arrays defined? 6. Differentiate between function definition and function declaration. 7. How is a pointer variable initialised? 8. Write the purpose of size of ( ) operator. 9. What is closing of a file? How is it accomplished in a program? 10. What is the significance of EOF?
Part B (5 5 = 25) Sp 5 Answer all questions, choosing either (a) or. 11. (a) Explain the various types of constants available in C with example. Write a C program to find the biggest of two numbers using ternary operator. 12. (a) With an example compare the while and do-while structure. Write a C program to print the largest of the given n numbers. 13. (a) Write a C program to reverse a given string and to test whether it is a palindrome or not. What is meant by C library function? Explain their uses. 14. (a) With an example, explain the strcmp and strcpy functions in C. Write a C program to concatenate two strings using pointers. 15. (a) Explain the difference between getc ( ) and get char ( ) functions with an example. Explain the usages of Register and External variables. 2 AFF 829
Part C (3 10 = 30) Sp 5 Answer any three questions. 16. What are the fundamental data types supported by C? How are they declared? Give examples. 17. Explain in detail the different forms of if constructs in C. 18. Write a C program to arrange the given set of numbers in ascending order. 19. Write a C program using pointers to compute the sum of all elements stored in an array. 20. Explain the role of the C preprocessor in detail. 3 AFF 829