Sie sind auf Seite 1von 2

OAS INSTITUTE OF TECHNOLOGY AND MANAGEMENT

Pulivalam (P.O), Musiri (T.K), Trichy (D.T) - 621 006.


CYCLE TEST III ( B.E DEGREE )
Course
: GE6151 - COMPUTER PROGRAMMING. Date
Department : Computer Science and Engineering.

Max

: 22.09.16.
: 50

Marks.
Year / Sem

: I/I

Time

: 1 1/2 Hour.

Answer ALL questions


PART - A
1.

What is Pseudo Code ?

2.

What is an Algorithm ?

3.

Discuss the working of Modulo Operator.

4.

Give some examples of String Functions.

5.

What is the output of the following Program?


main()
{
int a=8, b=4, c, *p1=&a, *p2=&b;
c=*p1*p1/*p2+9;
printf("%d",c);
}

6.

Give the use of Preprocessor.

7.

What is an address operator and indirection operator ?

8.

What is the use of Pointers?

9.

Define Array.

10.

What is the need for functions ?

10 * 2 = 20 Marks

PART - B

3 * 10 = 30 Marks

11. (a) Define a structure called book with book name, author name and price. Write a
C program to read the details of book name, author name and price of 200 books
in a library and display the total cost of the books and the book details whose
price is above Rs. 500.
(10)
OR
(b) (i)
(ii)

Explain the various storage classes in C.


What is Union ? Discuss with an example.

12. (a) Perform the following :


(i) (1011.11011)2 = (

)10

(ii) (10111)2 X (1011)2 = ?


(iii) (D8BC)H = ( ? )2
(iv) (4871)10 = ( ? )8

(4)
(6)
(3)
(2)
(3)
(2)

OR
(b)
13.

Write a C Program to multiply two matrices.

(10)

What is recursion? Explain a recursive function with suitable example. Write a


recursive function to find the factorial of a number.
(10)

- All the Best -

Das könnte Ihnen auch gefallen