• Tidak ada hasil yang ditemukan

CS-05/IT-05 {ZX}e : ¶h àíZ nÌ &quo - VMOU Question Papers

N/A
N/A
Protected

Academic year: 2025

Membagikan "CS-05/IT-05 {ZX}e : ¶h àíZ nÌ &quo - VMOU Question Papers"

Copied!
4
0
0

Teks penuh

(1)

CS-05/IT-05

December - Examination 2019 BA/BSC Pt.II Examination

Programming in C Paper - CS-05/IT-05

Time : 3 Hours ] [ Max. Marks :- 55

Note: The question paper is divided into three sections A, B and C.

Write answers as per the given instructions.

{ZX}e : ¶h àíZ nÌ "A', "~' Am¡a "g' VrZ IÊS>m| ‘| {d^m{OV h¡& à˶oH$

IÊS> Ho$ {ZX}emZwgma àíZm| Ho$ CÎma Xr{OE&

Section - A 7 × 1 = 7

(Very Short Answer Questions)

Note: Answer all questions. As per the nature of the question delimit your answer in one word, one sentence or maximum up to 30 words. Each question carries 1 mark.

IÊS> - "A' (A{V bKw CÎmar¶ àíZ)

{ZX}e : g^r àíZm| Ho$ CÎma Xr{OE& Amn AnZo CÎma H$mo àíZmZwgma EH$ eãX, EH$ dm³¶ ¶m A{YH$V‘ 30 eãXm| ‘| n[agr{‘V H$s{OE& à˶oH$ àíZ 1 A§H$ H$m h¡&

1) (i) What are the different data types that we use while writing a program?

Program

{bIVo d³V h‘ {H$VZo àH$ma Ho$

Data Types

H$mo Cn¶moJ H$aVo h¢?

800

CS-05/IT-05 / 200 / 4 (1) (P.T.O.)

(2)

CS-05/IT-05 / 200 / 4 (2) (Contd.) 800

(ii) Differentiate between arithmetic and relational operators used in programming.

Programming

‘o§

Arithmetic

Am¡a

Relational operators

Ho$

~rM A§Va {b{IE&

(iii) Write down steps that the source code written by the programmer has to go through for compiling and executing.

EH$

Programmer

Ho$ Ûmam {bIo JE

source code

H$mo

compiling

Am¡a

executing

Ho$ dº$

steps

{b{IE&

(iv) Define the term expression in C language.

C language

‘|

expression

H$mo g‘PmBE&

(v) Differentiate between an algorithm and flowchart.

Algorithm

Am¡a

Flowchart

Ho$ ~rM ‘| A§Va ñnîQ> H$s{OE&

(vi) Why do we include stdio.h in our programme?

h‘ AnZo

programme

‘|

stdio.h

³¶m| em{‘b H$aVo h¢?

(vii) Compare the use of if - else construct with that of ternary operator.

If - else construct

H$mo

ternary operator

Ho$ gmW

compare

H$s{OE&

Section - B 4

×

6 = 24 (Short Answer Questions)

Note: Answer any four questions. Each answer should not exceed 200 words. Each question carries 6 marks.

IÊS> - ~ (bKw CÎmar¶ àíZ)

{ZX}e : {H$Ýht Mma àíZm| Ho$ CÎma Xr{OE& Amn AnZo CÎma H$mo A{YH$V‘

200 eãXm| ‘| n[agr{‘V H$s{OE& à˶oH$ àíZ 6 A§H$m| H$m h¡&

(3)

CS-05/IT-05 / 200 / 4 (3) (P.T.O.) 800

2) Write a program to test if a given number is a power of 2.

EH$ {XE JE

number

H$s 2 Ho$

power

H$mo

test

H$aZo Ho$ {bE

program

{bI|&

3) Differentiate between break statement and continue statement with suitable example.

Break statement

Am¡a

continue statement

Ho$ ~rM A§Va, Cn¶w³V CXmhaU Ho$ gmW g‘PmBE&

4) Differentiate between type casting and type conversion.

Type casting

Am¡a

type conversion

Ho$ ~rM A§Va ñnîQ> H$s{OE&

5) Write a C program to implement insertion sort.

Insertion

gm°Q>© H$mo B‘ßbo‘|Q> H$aZo Ho$ {bE gr àmoJ«m‘ {bIo§&

6) Differentiate between formal parameter and actual parameter.

Formal Parameter

Am¡a

Actual parameter

Ho$ ~rM ‘| A§Va g‘PmBE&

7) Write a program to concatenate two strings without using strcat ( ).

Two strings

H$mo

strcat ( )

H$s ghm¶Vm Ho$ {~Zm

concatenate

H$aZo Ho$

{bE àmoJ«m‘ {bI|&

8) Differentiate between a structure and an array.

Structure

Am¡a

Array

Ho$ ~rM A§Va {b{IE&

9) Explain the term dianamic memory allocation.

Dianamic memory allocation

H$mo g‘PmBE&

(4)

800

CS-05/IT-05 / 200 / 4 (4)

Section - C 2

×

12 = 24 (Long Answer Questions)

Note: Answer any two questions. You have to delimit your each answer maximum up to 500 words. Each question carries 12 marks.

IÊS> - g (XrK© CÎmar¶ àíZ)

{ZX}e : {H$Ýht Xmo àíZm| Ho$ CÎma Xr{OE& Amn AnZo CÎma H$mo A{YH$V‘ 500 eãXm| ‘| n[agr{‘V H$s{OE& à˶oH$ àíZ 12 A§H$m| H$m h¡&

10) Write a program in C to multiplication of two matrices.

Xmo

matrices

Ho$

multiplication

Ho$ {bE

C program

{bI|&

11) Write a program to read a text, delete all the semi-co-lons it has and finally replace all ‘.’ with a ‘,’.

EH$

Text

H$mo n‹T>Zo Ho$ {bE

program

{bI|, gmao

semi-co-lons

H$mo

delet

H$a| ‘.’ H$mo ‘,’ Ho$ gmW ~Xb|&

12) What are storage classes in C-language? Also explain properties associated with these classes using suitable example.

gr-^mfm ‘| ñQ>moaoO ³bmgog ³¶m h¡? BZ dJm] go OwS>o JwUm| H$s ì¶m»¶m Cn¶w³V CXmhaUm| H$m Cn¶moJ H$aHo$ g‘PmBE&

13) With the help of an example, explain how pointers can be used to dynamically allocate space for two-dimensional array.

Pointers

{H$g Vah go

Two-dimensional array

Ho$ {bE

Dynamically space allocate

H$aVo h¢? Cn¶w©³V CXmhaU Ho$ gmW g‘PmBE&

Referensi

Dokumen terkait

H$moer AZwH«$‘ H$mo n[a^m{fV H$s{OE& iv Explain discontinuity of second type.. {ÛVr¶ àH$ma H$s AgmV˶Vm H$mo g‘PmBE& v Explain norm of a

Q´>m§Oo³eZ àmogoqgJ {gñQ>‘ H$s {deofVmE± ~VmBE& 3 Discuss the drafts in Ms-words and its importance also.. MS-Excel ‘| {d{^ÝZ àH$ma Ho$ MmQ>©g g‘PmB¶o& 5 What do you mean by language

boIm ‘mZH$ 14 Ho$ AwZgma EH$sH$aU H$s {d{Y¶m| H$mo g‘PmBE& 7 Write a note on consolidation of shares and sub division of shares related to internal reconstruction of companies... You

O¡d [aE³Q>a H$mo n[a^m{fV H$s{OE& ii Write the name of Microbe used in Ethyl alkohol production.. ßbJ âbmo [aE³Q>a H$m Xÿgam Zm‘ {b{IE& iv What is Critical Oxygen

ì¶mdgm{¶H$ ì¶yhaMZm Ho$ ñVam| H$mo ~VmB¶o& 5 Give main objectives of information technology Act.. BZnwQ> Ho$ àH$mam| H$m CëboI H$s{OE& 7 State any three characteristics of

{ZåZ H$mo ñnîQ> H$s{OE& i H$nmg Ho$ Cn¶moJ ii aoemo H$m dJuH$aU 12 Write an essay on the origin, botanical characteristics and cultivation of wheat.. Johÿ± H$s CËn{Îm, dmZñn{VH$ bjU

{H$ÊdZ ‘| H$åß¶yQ>a Ho$ AZwà¶moJ Ho$ ~mao ‘| {dñVma go ~VmB¶o& 3 Describe role and importance of Downstream process in biotechnological process.. ~oÝM‘m{Hª$J Am¡a CgHo$ àH$ma na

àmMrZ ^maVr¶ B{Vhmg H$mo OmZZo Ho$ nwamVmpÎdH$ ñÌm¡Vm| H$m dU©Z H$s{OE& 11 Describe the main principles of