How To Exam?

a knowledge trading engine...


Himachal Pradesh University (HPU) 2011-1st Year B.C.A Computer Application Programming in C Time: 3 hours - Question Paper

Tuesday, 22 January 2013 02:20Web

Note: Attempt five ques. in all. Attempt 1 ques. from every part. ques. No.9 is compulsory.

Section-A

1.(a) what is character constant? How do character constants differ from numeric kind constants? Do character constants represent numerical values? [Marks 8]
(b) Write a general structure of a c program. [Marks 8]

2. (a) Name and define 4 basic data kind in C. [Marks 8]
(b) elaborate keywords in C? What restrictions apply to their use? [Marks 8]

Section-B

3. (a) What o you understand by associating of operators? [Marks 8]
(b) define the use of the conditional operator to form conditional expressions. How is a conditional expression evaluated? [Marks 8]

4. (a) What is the purpose of scanf( ) function? How is it used within C program? Compare with getchar( ) function? [Marks 8]
(b) What is the advantage of using function gets( ) over scanf ( ) for studying strings? [Marks 8]

Section-C
5. explain different ways in which function can declared and elaborate its advantages? [Marks 16]

6. Write a program to learn 4 numbers to be entered by a user and display the minimum and maximum numbers out of four. [Marks 16]

Section-D

7. What is a pointer? What is different arithmetic operations performed on pointers? [Marks 16]

8. (a) What is the difference ranging from Arrays of pointers and Pointer to array? [Marks 8]
(b) How is malloc( ) various from calloc( )?[Marks 8]

Section-E

9. (a) elaborate different modes in which file can be opened? [Marks 4]
(b) How are arrays usually processed in C? Can entire arrays be processed with single instruction without repetition? [Marks 4]

(c) What will be the output of subsequent C code:
Main ()
{
Int I = 3
For ( I++ = 0 )
Printf ("%d", I )
} [Marks 4]

(d) Main ()
{
Int I = 1
While (i< = 5)
Printf ("%d" , I )
Printf ("The value of I after loop is %d", I )
} [Marks 4]


( 16 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Himachal Pradesh University (HPU) 2011-1st Year B.C.A Computer Application Programming in C Time: 3 hours - Question Paper