Professional Documents
Culture Documents
Section-A
A. Attempt all the parts.
(10 X 2 = 20)
1.Draw the memory hierarchial structure of computer system.
2. What will be the output of this:
#include<stdio.h>
int main()
{ int a, b = 10; a = -b--;
printf("a = %d, b = %d", a, b);
return 0; }
3.What are functions?What is the advantage of using multiple functions in program?
4. What will be the output of this:
include <stdio.h>
int main()
{ int a = -3, b = -8; // a and b both negative
printf("%d", a % b);
return 0; }
5.How to use break statement in C?Explain with code.
6.What do you mean by precedence and associativity while solving some arithmetic expression.
7.Define notations of order of complexity.
8.Differentiate between structure and union.
9.What do you mean by recursion?
10.Differentiate between function and Macro.
Section-B
B. Attempt Any Three
(3X 10 = 30)
11. Write a program to check the number is palindrome or not.The program should accept any
arbitrary number typed by the user
12.What is meant by storage class of a variable?Define all types of storage class with example.
13.What do you mean by Call by value and Call by reference?Write an algorithm for swapping two
numbers using call by reference technique.also write C program.
14.Explain selection sort Technique for sorting problem?also write an algorithm for selection sort.Sort
the following numbers using selection sort technique.
15. Write an algorithm to print all the even numbers and odd numbers between any given two
integers N1 and N2 (N1 < N2) and print the sum of all even numbers and odd numbers.
Section-C
C. Attempt allthe parts.
(5 X10 = 50)
16. Attempt Any One
a) Explain various operations defined on arrays. WAP to perform Insertion Sort on an integer array.
b) WAP to perform multiply two matrices(read size and number of element of matrices from the
keyboard.
b) A five digit positive integer is entered thorough keyboard. Write a function to calculate sum of
digits of the 5-digit number:
a. Without recursion
b. With recursion.