CP_Model_Part B_Important Questions_Nov 2016
CP_Model_Part B_Important Questions_Nov 2016
MODEL EXAM
Year / Sem: I / I
Sub. Code / Name: GE6151 / Computer Programming
Unit I
1. Write in detail about the evolution and the various generations of computers. (16)
2. Explain the basic computer organization using a neat diagram. (16)
3. Draw a flow chart to find sum first 100 natural numbers. (10)
4. Draw a flow chart to find factorial of a number. (6)
5. Draw a flowchart to check whether the given number is zero, positive or negative. (6)
6. What is pseudo code? Write a pseudo code for swapping two numbers without using
temporary storage. (10)
7. Number Systems – Conversion problems.
Unit II
8. Explain the types of operators with suitable example. (16)
9. What are constants? Explain the various types of constants in C. (8)
10. Write about the need and types of looping statements in C language and discuss with
examples. (16)
11. Write about the need and types of looping statements in C language and discuss with
examples. (16)
12. Write a C program to find sum of digits of an integer. (8)
13. Describe the structure of a C program using “Calculator program” example. (8)
14. Write a C program to check whether a given number is prime or not. (8)
15. Write a C program to solve quadratic equation. (8)
Unit III
16. Write a C program to find the sum of two matrices. (10)
17. Write a C program to multiply two matrices. (12)
18. Write a C program to print the Fibonacci series of a given number. (8)
19. Write a C program to reverse a string. (4)
20. Write a C program to count the number of vowels in the string. (6)
21. Write a C program to arrange the numbers in ascending order. (8)
22. Write a C program to search an element in a given array. (8)
23. Explain the various string operations. Write a C program to find out the length of
the string without using built-in function. (8)
24. Write a C program to sort set of strings alphabetically. (8)
Unit IV
25. Explain function with and without arguments with example for each. (16)
26. Explain the use of pointers in arrays with suitable example. (8)
27. Explain the concept of pass by value and pass by reference with suitable example. (12)
28. Write a C program to find factorial of a number using recursion. (4)
29. Write a C program using pointers to read in an array of integers and print its
elements in reverse order. (8)
30. Write in detail about pointer arithmetic. Support your answer with appropriate examples. (8)
31. Write a C program to find the sum of the digits using recursive function. (8)
Unit V
32. Write a C program to create mark sheet for students using structure. (16)
33. Write a C program to accept records of 5 cricket players using array of structures. The
structure should contain name of the player, name of the country, and last 5 ODI matches
runs. Calculate the average runs of the each player and display all the details. (16)
34. Write a C program to store the employee information using structure and search a
particular employee using Employee Number. (16)
35. Explain the structure within a structure with suitable example. (8)
36. Explain the concept of storage classes with suitable example. (16)
37. Describe about the preprocessors with suitable example. (8)
38. Write short notes on: (4*4=16)
i. Union
ii. Register storage class
iii. #include statement
iv. #ifndef…#endif
*************************************************