How To Exam?

a knowledge trading engine...


National Institute of Technology 2009 B.Tech KURUKSHETRA COT - Question Paper

Sunday, 03 February 2013 08:25Web



r

iVVl W )> . . >. I l'i l    * v >i ii ; I \.; t . \ . I\ I !\K>t i. i\ I IS I* < )\i\ !' v.V.MI V\ i in.VOi.cv on r:i|H-r

\:oni!i and Year of the L\;nraii:iueu    M.t\ 1 mp *'Ul>

Programme: B.Tech    TtcsU II"1'

L Subject: Computer llnumcerinii

f Course No: COT-Mil    vi.tMinuri Marks. 60

t


I'unc allowed: ' I lis

f Tm.iI NVv Of Questions: X

NO I K: Attempt aiiv MVK qiicslituts.

# ,

*

I

] a I (omparo and contrast: lligh level language. -\ssembi\ language and Machine language

.'M

*k V


I b; W.ile .. shorl Motc<. \Ih ! ' ; * v\ i i * -i jj) RAM <V; ROM

t ii Compiler & interpreter    - '<1,

K

J2 &J Draw the Mock diagiam of computet svslcm and'V.\plam it> major parts. . j b] Do the following a nversion: j (I) (241 )jo

(M


= t

h

(

)u

(

h

= (

)lf>

= (

h

(

)ki


[


(2)    (101 I I ()()):

(3)    (56)*

(4)    (347)8

(5)(!    10! 101):

i j (fi) f6!:.)ir.

)3 a t( iiven a -1 -digit uumlvr representing a eat. \\ rile t program lo Imd otil w hcther it is leap.

{< ; (b)

(

i

i


A year is said to be leap year if it is divided b\ 4 and not by 100 oi year which is not divided by 400. f hj Write a progiam that will read (he value ol \ and e\aluate the following function

f

I


! for \>0

0 lor \- 0

X -I |i,ry l) /    v

) *iv\ sin'g nested if

*    i ii) I 'sing if onl>

*    j

Dial \\ rile a program to evaluate the follow ing series:

I o-v I x f-\:'/2! > \ 3! - x4' 11........\''n!

. iti'ci ;he \ due of n. \ fim ke\bo.rul b | Write a program io prim the imilttpliea:ioti table of I to 10 using di -while loop, i

O'vai \Vrite a progiam to llud out prime numbers below a gr-en number N 11si11:i break s'atemenl I *nter the number N from ke\ board

i

i

b) Write down an\ program showing the use of continue statement.

Q<>aj him out the .oois of a quadratic equation ax * bx1 c 0 using switch statement, bl \\ rite a program *o print the follow mg paiiern usim: W loop.

\

(bi


1(0

*<0


> >

>

1 i 11

\ rows.

..i A i ite down a piogram to calculate

"c, n! (r!| r.-r |!)

(ft)

(6)

(6)


b) I Vlmc function prototype and how patameters are passed lo th'* imu':on'

.. i \\ iite a ptogram lo multipk two mainces A and !i

bi \\ rite a program lo compare two -;i :vx.s without um;i'.' :ibs*ar\ luiuiion







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER National Institute of Technology 2009 B.Tech KURUKSHETRA COT - Question Paper