AF-3125
DCA (Part- 1)
Term End Examination, 2018-19
Paper V
Programming in "C'
Time Three Hours] [Maximum Marks: 100
[Minimum Pass Marks 33
Note Question Number 1 is compulsory and answer
any one question from each Unit. The figures
in the right-hand margin indicate marks.
20
Choose the corrrect answer of the following
questions
(a) int 3iET AISY TTr ... IgE 1
(i) 2
(it) 4
(iv) 6
402 BSP_(8) (Turn Over)
(2)
byte is needed for int data
type.
()
(i) 2
(ii) 4
(iv) 6
(b) ++ 37teT H
(i) Increment
(i) Addition
(in) Plus
(iv) 30F 76i
++is called ... Operator.
(i) Increment
(i) Addition
(iii) Plus
(iv) None of the above
(c) Afea d aH Jumping edz *?
() Go
(i) For
(ii) Goto
Which of the following is Jumping
statement?
() Go
(i) For
(ii) Goto
(iv) None of the above
402_BSP_(8) (Continued)
(3)
() <Math.h>
(i) <e type.h>
(ii) <string.h>
Header file is used for string
function.
(0 <Math.h>
(i) <c type.h>
(ii) <string.h>
(iv) None of the above
) int
(i) float
(ii) union
(iv) struct
keyword is used to declare structure.
( int
(i) float
(ii) union
iv) struct
402_BSP_(8) (Turn Over)
(4)
) hNTA . . . . 5 GRI call t541 TIAII
() Function name
(i) Return
(i) Void
Function called by
is . . .
() Function name
(i) Return
(ii) Void
(iv) None of the above
(g) afea i d indirection
()&
(ii)
(iv)
Which isindirection operator among8
an
the following?
(&
*
(i)
(ii)
(iv)
402 BSP_8) (Continued)
(5)
void main ()
int x= 0;
int *Ptr &x;
Printf%d", *Ptr)
What is the output of this C code?
void main ()
int x= 0;
int *Ptr &x;
Printf"%d", *Ptr)
( Attribute zmf4T rd
() Name
(i) Type
(iin) Identified
File Attributes consist of:
( Name
(i) Type
(ii) Identified
(iv) All of the above
402 BSP_8) (Turn Over)
(6)
) Tclose 77 fTr.. NTA
() fclose(0
(i) close()
(in) fstop()
.function is used to close file.
fclose()
(i) close()
(iit) fstop()
(iv) None of the above
1/Unit-I
conditional TTer T relational 3TtET T
16
Explain conditional operator and relational
operator with example.
3. ffafsa 4HTE:
16
(a) Mathematical function
(b) Data types in C language
Explain the following:
(a) Mathematical function
(b) Data types in C language
402 BSP_(8)
(Continued)
(7)
F6TE/ Unit-II
4. Nested for loop 3E1ETT HEa FATEQ I 16
Explain Nested for loop with example.
5. C TT
Array T VHTUTA I I
l6
Write a
program in C for Arrays (For one
dimension array).
$h/Unit-II|
6.
Explain the utility of user defined function.
7. structure within structure 1
34Y 3E1EU
16
Explain structure within structure with
suitable
example.
O/Unit-IV
8. Pass By
Address 3 1 6 H6T THETErI 16
Explain Pass By Address with example.
9. fraefaa ut e fafau 16
) Pointer and Arrays
(i) Pointer and Function
Write notes on the
following:
() Pointer and Arrays
(ii) Pointer and Function
402BSP_(8) (Turn Over)
(8)
1/Unit-V
10. 7Hs FI 3TTT 374fTaT THTEI 16
Explain utility of command line argument.
11. feiTeT FATE 16
(a) fopen(0
(b) fclose()
(c) File pointer
(d) Random access file in C
Explain the following:
(a) fopen(0
b) felose(0
(c)File pointer
(d) Random access file in C
402_BSP_(8) 1,900