How To Exam?

a knowledge trading engine...


Biju Patnaik University of Technology 2008-1st Sem M.C.A Programming in C - Question Paper

Friday, 24 May 2013 08:35Web



IAT#

Firs! Semester Examination - 2008 PROGRAMMING IN C FuJl Marks 70 Time: 3 Hours

/4fisivf?r QuusUon No, 1 which is compulsory tind wy five from the rest.

IWL

t


The ftgutes in the nghf-hand margin indicate' marks*

Answer the following questions : 2 *10

(a) What are the Junction of control unit of a typfcat processor ?

lb) Define and differentiate between primary memory ancf secondary memory.

(c)    Differentiate between While and Do White Loop.

(d)    What is a seif-referentia! structure ?

f e) Whai is a stream pointer ?

ff) How is an array name interpreted, when it is passed to a function ?

(g)    What are the fundamental data types in C? Explain the use of bitwise operators in C with examples.

(h)    Difference between array with functions artd array with pointers.

What is the difference between break and continue statement ? Explain with the help of examples.

PCS 10EWMCC 101 2    Contd.

(j) Read the following recursive program and answer the questions below:

int f(5nt kjnt m)

{

ff (k >= m) return 0; else {f (m%k == 0) return 1; else return ffk+t p m);

}

What is the output on inputs k = 5 and m = 9 ?

IWL


2,    What is purpose of switch statement ?

Summarize the syntax rule associated with the use of the switch statement.    4

(b) Write a C program lhat will generate a table of values for the equation :

f(x,y) = 2ex y3 + (23 + y f

where 1 x < 20 with an increment 1 and 1 s y < 5 with araiincrementO.25.

6

3y (a) Explain the structure of the hard disK. Discuss the characteristics of hard disk storage.    5

(b) Write a main function that tests odd_sumQ by reading an integer from the keyboard and If the integer is positive. odd_sum() should be called and the returned value is written on th e screen,    5

4. (a) Write a program that will generate an array oflO integer numbers from 0 to 30 using the function rand() present in stdUb.h library,    5

Jb/ Explain the role of memory in computer system. What are the most common type of computer memory and memory technology used ?    5

5. (a) Write a logical function sorted in1 C that * receives an array of ht values amid in representing Ihe number of values, The

function wiH return 1 if the array values are sorted in increasing order, 0 otherwise,

5

(b) Using array declaration for Fibonacci series, write a C program to generate first n terms.    5

6. Define a structure consisting of two floating point members, called raa/and imaginary Indude the tag complex within the definition,    5

(b) Write a function in C that takes a string as the single parameter and returns the integer 1 iMhe string is a palindrome. Otherwise zero should be returned.    5

7. /a) How an array of structure is Initialized ?

/ How Is a structure member accessed? How can a structure member be processed ? Explain with relevant example.    5

r

!    (b) Write the function oddsumf) in C with

j     f unction head

intodd=sum(SnT n)

The function should return Ifte sum of all odd numbers between 1 and n (including 1 and n), and you1 may assume that n>=i),

5

S. (a) Explain what the recursive function below does. Do nol describe, row by row, what the function does, raiher you should explain what problem, the function solves.

void seeretffnt number)

{

assert{n umber >= D); if (number)

seer et( number); printfCd", number%2);

}

Illustrate your explanation by showing what happens wheir> the function Is called by secret (12)?    5

(b) What is a structure ? What is a structure member ? Wlhal is the relationship be twee n a structure member and a structure ?

5

IWL


PCS 1001/MCC 101 7







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Biju Patnaik University of Technology 2008-1st Sem M.C.A Programming in C - Question Paper