[go: up one dir, main page]

0% found this document useful (0 votes)
16 views2 pages

Programming Using C Bc1dvpnz

Uploaded by

paritok675
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Programming Using C Bc1dvpnz

Uploaded by

paritok675
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Code No.

: 2299
PROGRAMMING USING - C
Time : 2:30 Hours] [Maximum Marks : 50
[Minimum Marks : 17
NOTES :
i) Attempt all questions.
ii) Students are advised to specially check the Numerical Data of question paper in both versions. If there is any
difference in Hindi Translation of any question, the students should answer the question according to the English
version.
iii) Use of Pager and Mobile Phone by the students is not allowed.

Q1) Answer any two of the following. [2 × 5 = 10]

a) What are basic data types in C language? Explain.

b) What is Variable? And also explain declaration and initialization of variables.

c) Write a program to calculate the factorial of given number.

Q2) Answer any two of the following. [2 × 5 = 10]

a) Explain the data types casting.

b) Explain Input/output statement in C.

c) What is Conditional operator? Explain with an examples.

Q3) Answer any two of the following. [2 × 5 = 10]

a) What is If-else-if statement? Also, write a program to find the greatest of three numbers.

b) What is for statement? Also, write a program to print even numbers.

c) What are Break and Continue statement? Explain with an example.

Q4) Answer any two of the following. [2 × 5 = 10]

a) What is function? also, write a program to add two integers using functions.

b) Write down advantages and disadvantages of using call by Reference technique.

c) What is scope of variables? Explain.

Q5) Answer any two of the following. [2 × 5 = 10]

a) What is an Array? Also, write a program to read and display n numbers using an array.

b) What is Pointer? Write a program to print ‘Hello World’, using pointers.

c) Differentiate between Array name and pointer with an example.

F - 198 1 (P.T.O.)
2299
({hÝXr AZw d mX)

Zmo Q > : i) g^r àíZ A{Zdm¶© h¡&

ii) narjm{W©`m§o H$mo gbmh Xr OmVr h¡ {H$ do àíZ-nÌ Ho$ XmoZm§o AZwdmXmo§ _| gm§»`H$s` Am±H$‹S>m§o H$m {deof ê$n go {_bmZ H$a b§o& `{X {hÝXr AZwdmX Ho$
{H$gr àíZ _| {H$gr àH$ma H$s {^ÞVm h¡, Vmo narjmWu A§J«oOr AZwdmX Ho$ AZwgma àíZ H$m CÎma X§o&

à. 1 ) {H$Ýht Xmo Ho$ CÎma Xr{OE& [2 × 5 = 10]

A) C b¢JdoO ‘| ‘m¡{bH$ S>mQ>m àH$ma ³¶m h¢? g‘PmBE&

~) Variable ³¶m h¡? Am¡a Variable H$s KmofUm Am¡a àma§^rH$aU H$mo ^r g‘PmBE&

g) {X¶o J¶o Number H$m Factorial H$s JUZm H$aZo Ho$ {bE EH$ à«moJ«m‘ {bI|&

à. 2 ) {H$Ýht Xmo Ho$ CÎma Xr{OE& [2 × 5 = 10]

A) Data type casting H$mo g‘PmBE§&

~) C language ‘| BZnwQ>/AmCQ>nwQ> statements H$mo g‘PmBE&

g) Conditional operator ³¶m h¡? CXmhaU Ho$ gmW ì¶m»¶m H$s{OE&

à. 3 ) {H$Ýht Xmo Ho$ CÎma Xr{OE& [2 × 5 = 10]

A) If-else-if statement ³¶m h¡? VrZ g§»¶mAm| ‘| g~go ~‹S>r g§»¶m Ty>§T>Zo Ho$ {bE EH$ àmoJ«m‘ ^r {bI|&

~) For statement ³¶m h¡? Even number H$s g§»¶mAm| H$mo qàQ> H$aZo Ho$ {bE ^r EH$ àmoJ«m‘ {bI|&

g) Break Am¡a Continue statements ³¶m h¢? CXmhaU Ho$ Ûmam g‘PmBE&

à. 4 ) {H$Ýht Xmo Ho$ CÎma Xr{OE& [2 × 5 = 10]

A) Function ³¶m h¡? Functions H$m Cn¶moJ H$aHo$ Xmo Integers H$mo Omo‹S>Zo Ho$ {bE ^r EH$ àmoJ«m‘ {bI|&

~) Call by Reference VH$ZrH$ Ho$ Cn¶moJ Ho$ bm^ Am¡a hm{Z¶m| H$mo {bI|&

g) Scope of variables ³¶m h¢? ì¶m»¶m H$a§o&

à. 5 ) {H$Ýht Xmo Ho$ CÎma Xr{OE& [2 × 5 = 10]

A) Array ³¶m h¡? EH$ Array H$m Cn¶moJ H$aHo$ n g§»¶mAm| H$mo n‹T>Zo Am¡a àX{e©V H$aZo Ho$ {bE ^r EH$ àmoJ«m‘ {bI|&

~) Pointer ³¶m h¡? Pointers H$mo à¶moJ H$aHo$ ‘Hello World’ print H$aZo Ho$ {bE EH$ àmoJ«m‘ {bI|&

g) EH$ CXmhaU Ho$ gmW Array Name Am¡a Pointer Ho$ ~rM {d^oX H$s{OE&



F - 198 2

You might also like