0% found this document useful (0 votes)
80 views

FCS-Answer Key

Uploaded by

monika
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
80 views

FCS-Answer Key

Uploaded by

monika
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 32
M-Kumarawmy Coneoe of ENoINEERANG , KARDL (AvToNomovs) B.e/B.Tect - Deke EXamtnatfon Nov/ DEC -2023 (CRewuLations - 2023 ) | CBBII01- JoNDAMENTAL? OF ComPuTeR StPeNce | C Answer Key) (computer Srence AND Butnness ystems) Part-A- ltox2=20 Marts) | Variable : Symbotic Tepswsertation 2), ary nunibert Emample - “0. Conkains nunter F | “bp! Contaxns number 10 Q, b - VariovbLea (omarts) | 9) Thput Motementi : | cane) | | Output Ghobement: | proto (a.mants ) | 3) [Operctors ee oo a Arithmetic Opeiators - + bert dA Preomont /Decoarront Operodens - pet, bao! Assignniant bperadort- 2542 ,~ #9 *=2 / tT Brown ano becgcpoue ‘ Prypaxrp Pscrwsony gyion wom af meouareeBoed campo ranyectad, (HOUT) (n4guon a 70a t Buy) (oure) oy ant buy) sasfeary Jo aiod-ang pus ¥ he + (opm # apa ee seniop & PNLIP sovenoxtof (QAR AP ( ydwa UP (240 YP (Pdaapp Curate > no purf hacagry (rasa) SANT aK tsriity - FH jeurpye br peyoN capper Yr mae Ir pounzoip eyo tr peursyouy Gr __speunyoip Barter aornsnng oporaly fO-0: -OFR - sopondg 7iM pI PLS ee - rnpondg porboy (- les ¢ Ss Management and pure Conupler dala diructuryes ere pwe Cah aceon and modify bla Vudg pout Jocalidl up momoryy, pou dla officientig beliweon qunctions . Cmorbs) Pobstey Aritimetic: 5 onbter atrithroalic — Conmprites diolted Aet of Bperotions ot work with Monony addiowes not Vols - Dpeations Preble Jpcwmerting , decrementzng Addady ttegers , eubtractong tens and computing Potnters « evan) Hooclor fiber: XK Sthio-h7 < Conic -h7 do morts ) Joy velporktal dala Aruduat! ) Mroctue daty vefeuntol Ahruchu ob OL Wak bonkers & pourter Mb a Vorb oO} Same a This allows diruckue 0 refer be sktelh, Creating 4 Doted data dtructuve - : (2 wants) { aipef- ee wa ray cet) cuorprpucn) tr ~wopuhy — emaTOEP TH he ] i a Udi _Tpuon) rr ~ Mapunp ~ Tumararpety: fe ranean sy (UEP ho) m™ qe prorey ~ JUTUYPOLP ung quourapepy PH Oop anppor We 71 Fr quourpape Fo PAN paunpopp TIT + (qw004 G) quacapopey fr + rualt PUG? andy gq prrog rua 7p aye rr aware aboscl baryour mop oyp wrO PUIMAT OLY bana dompop ML -quourgoyp Beerrouy aoaag ee * * (rps Ope XG) a- Lady > Noted ty oe totement - Annika (2. marks) df (tondytion 1) | peonditton pa Sue , Londition 2) { Iconditions 2 true y oe Icondition 2 a1 fale j J = -dbe =) ladder - 4y koe (monte) Ab Ccondttion > hakement ; oli. if Ctondrsion Statement; alse. Malkement 5 (a rots) = &sdith Stolerment - Ar4 nkaor Stottch Lembrowion) § oy Case, value ls f fe Gellamenb >, Core values + Stolerrena ; dobouudle: Golemnh ; 5 9 f amd pr 3 rpaurmps Exgrgous aenarop couroul yar Buyer cape 4 ne ; eee ri urcae Oe 2yorety y wprpar# (rent) anal ppa WON : oroabory aduong Pam ry 3 ren wit oipunl og oy GO LEM v coi} TH TMP, — UMPH S coy pun} Vi anyon wy ay yard wa wat duenl ay Pern -pewsyayy cbun( (raynpyorum prey 08 sway - 0408 & hoy ayy Jo oper peuy Ty TOM of mah a7 ‘dooy ney buyout fa spaynay “sauerayp aya fo oa og Tiyedda cr eurqaT MULE $ oULNaQ « wou TMU UO) & dooy ayy Tpowry ay pam 7 -owmpoyy yayuay doo | {pong Cryn0 G) wos pace younpots chum [ poureqo,s- arpof] : [ queusspapy— may) ¢ Cohptnuen) vous - soporedg TOO! TRUnD é proot) CS Enter the number: ")5 Stan} (Jat, Brawn )i 4 (num «|. 2 == 0) t Pasnth (" nlusnbes 24 Quer ")5 j “tL Prinkh (S Munber i oobl"); Foturn 05 Output: Enter te number: 6 The number js 2uen | Aorrectid Toput and. buiput Functions: (8marts) Formatted input and oudpub funtion Ap ou UiLined for accepr dg Adoge oy tiple Jopul tom te wer ak the donvote The junctow alko fpeibitol the display O} Agee or ruslliple veubuos 04 output Ip Do wae at ee Baie tamara) Prineb OTA funchton ps used for 0 , mubitple Values diplying wogte ov mult g Bimpoar 20 Baabroderp sot prm - pL S solfrady oud fo rdh, as o ur edie | day aa db pop m9 | Far oad powus Poy aan dp pouuah mura wo\fdase ess a Taqeracg ay woody te pro bay v aod ei erpen ach AR Faas ea Wb an os repay DOK ung Bossy peo wepaopan FORMA aor vorTeA 8 sof pane doi} ny (Quads i Ts ns ams 69 T+ Pi tars - 7 soponda rexppo oF Sas - 4 5 (FRAN of TROA A «soffoads passso} Nurs - wopilp noe] Ty po eM nef amb pder ro rmqon Adapt 19 abury Branyoron 2oh pon 7 us}runy ry - quae Canons) pndar papoustop, £9400 COLON ‘ey a) {pad - alucruy {Bon 0- LON «aaffrads paussat Gaurd - opis qos my fo sm MH fda ro a Ag ned bteqey > he ~ Wed x reodwn m ‘ . Characka a thay i ue piting ° Dib - wed for reading ard divplayeng Dh flocctang potot volue of} & feo fh ~ wed for hin playing or reali g wursip nal stig Prarple prograr (ie rants) # apclude Pronk The furiber anfiaad «/-a*jro!); Spriotyl str, “a= fa and be fa’, orb)s htan\ ate, Nasa and bed" ao, 24)5 prnth( ce Pd ahd ded, ads weturn O j ae Soe | ee a sug rapom day : ony oP Latye0 ea ts 2 TAG | O yoymp — | PHANG ronan oom PP | WO ou ve rerorala cre War. oN lg HAY nopondg quod sy oe reaporalg HHA + poparndg qoiboy ¥ rroporadg TOOL rayordg uy + 79 noporadg m a7p ‘sd a7 PrN UL (WH G6 ROME PLE AUF dey | (9. ras | Bilotonal pester: TT ta tne os Cnpution Dra | Operators | Rone ie (Ego Se ryofoana | Crus.) 4b both gapertiory Quo hue syetusna | Chu) One dy the Rapin Qualuati to Lae Nogalia oe ewprestvcn Ord Yea Bitwite AND Bitwise OR | Bitvorse. Erncbusive OF - XoR (he SV py ALT 6 OR) Np lo YAN) dts Ries pf Blix Hood (Bree Sayer Rosy nud t0ch¢ Gey yar (450-0 '4!0 SAP TE P=i PL Gad (9750/4 Mg eel o Pe =s Pi) Yor (q=706q'0 APT © PL => PE} ad £(840'q 0°.) Pr PL =< pr: qd (97059 SAP TT PL PL Mgcned (940 (4 OS NEY PIS BP ud “4/0 ° Hyp SAM POW 4) Hand «9% /0 “\ p/: dowe Nad (940 AVP /: vorpaidagnw \) 9icoud S(q-0 9] P/ mLpougap y) Lui £(q 405 ,4\P]- SSOUNPRY 9 uid £9=4' 0130 =a (2qrou fern 44 TPES Tprpar de (spat) en adanis uz % Japorda youbisry FIGOLON THE YY MHTOA ruBissy : wuoporadg prowiltasy | (al awl ig) eur +4 >> _paun¢druay 3,749 \ <=] Peau | ADE pe, A231 Pret hls pao, tu -/din"» Pd} Prot pla a -f-alot, plr)s Printh(® pray di [a\n', pA); Yeturn 0} \ (> pants’) Out put : Addutton 215 lor 5 bs | dubtraction:5 — togn 0 Mulltphicafion :5> loy=5 u | Diviviop ; » loa 5 O Modulus: 0 jo=25 U0 lol=5 & | me ie pro | Lg at? plo ut Ix 0 Pho, dt & | yal ‘ Prog roxro for dolatifle toleelador: $ optlude #," Wrong! Chock Hx. opHons "; an bo) 4 (Chrous) Output oreoge an opesstor tas *2/) Je Pole Abe Dpeation dp Colculabor - F goledtod: Addition Enkin Bu fire ruber :2y Enter the Second ruundaoe: 2b Addition eh 3x ard 26 2 + bo-00 Ypute ye pe gophers ire fo pr Typ TOM OF pom Ye pune qed frye v0 INK fom ep TY oe doy} Mpua) puted sa} yon We mafepe Bey prullop ex ator eapary Yr mp Ih ape pena yom Pp hy a - aroxhoxd 9p menop or HY» Me oF pe eye ayo aalop a pm male # AYP SOW! - PAMBG eh, qr woebasd ovmedad of ob ry ¢ qo TTS pourpip vanrpouon Kor pNP foquitp # rede a yen uy wiry - cerpaidrao aobq p99 —manay ogy rrnond, poy puraboud vP tovmachiy (pros 1) 5) OP AYP DARD sorrmorday 6 Fike Tndusion: (i roots) This ype ¢, Proprowwor clivetive Jil he Complloy be ppduole a fie tn te A0ure Code. Prog ram tuoo Epes 4 fit * Atardad Heado fils - tontains dobinition Q Pie doblned funckou Libe prodtier, scan}e) —diffeont huxuHons aus cholaud ‘pn diffoant Garton - A fdducke 10sq) sol fo=COla rm (+ [0 >f fos 0) sah C1 Saree Nh Gah spoon. ler Ma . { (£11994 fo PE Muep eae eee (2% 1427 (0= 1) 40h (peony widpoyn Puarey WMS») 14 Cad 6(C [IL 170% ‘Phd hene (2402 7f tos Quok ({§ 27 £077) 0} E(yal= ous errpON ser} M3) pied £09 uP fle (4 = Masrn|o) -ow sapy nha £(46 WP Isyfunp (y= rag Gow BMY) Ad My ae M9; Jat) m (=o; feo 4) padre" fallen, nub 3) Printg( “\nt)/ i Yeturn 0} es ae Ents ho. a, Leturnns =3 Enter rst ratria element: Jest ga2 2 33 Erin Second matrix. glomont Foi 2 2 So IuadTi plcalon of red 'ra Cees Oy=5 Jos te 12 \g Ie 16 2 i J ta | I ELON Y = Ltd S ttdy 47 ¢@)s SON yu? Mans = dy jar ~ vol nyOFTON 4240 War My Une pun xnyOrrD, wv {a hunsow my pb a7 s0porde fo agro (4) fo vn maqam raced neg af poubyey if cep AT Ree ey SLY suo} 4 Crpoy pray sntarto Caddy ee rm i ‘pode Curvmamp (1) Caoperd ropep oS ar Arar you op an oped TET ITI “Colour syed Uf ‘da porgoag: x00} Engoed or ae app to ally - edhgorep sapere ( mura - 4d sopordo berurrepoe-np -¥ fda. Mlamep - xonhy “do pooy howny Vv 2 mR aMOAD r¢70 10 rapPO ME s20Yy WHO po4y aby wep pearey vo yon 7 cared Y (sqsou 8) reine 4 Poinkex da referencing: Derojawncing pourter 21 tho prow of aucertidg the wolue Moned Lo fhe monory Adobo Apecified Ln the pointer - Pranude [poe Void tturctton C ) t ut Yar =/0} dit *ptrs Diy = + Vor; Printh Vole a pirat ploy phy); prOdthl Vole ot Vor e -fdl\n", Var), Printl' Vouuee ot “pty =. allot, ptr) = ark aint) { wentttonl) 5 Yeturn 05 Arrouy of Pototers : ‘Up roonts) Array of Pointers wed $0 port at Musi pode Vault Os monorl of fhe tame dala Rpts to pape : Declarodion of Avra a Poxbters dynton - datatype = Nase of array Lax ray /ye 13 ho ob 4 prio win LSE =A A MY | 09% IPAM mapo,! ONIEILEg - HOMPPY TT 204 OY 24 INI rym ’ 490EILEG -HOrppY TUT 204 oa ss erding * {a usmfar, f (cigamoy L220. Eph = Ppa MTN, AI P/-= HYPO MH 4 = (ryierrias sah 64a = C2) 209 (Arg = £1] suo 6d 4 =o) 430 670 =4 (097-0 ‘alt=d $47 f[e] U0» +47 Oday +07 a) Up anf ¢ Ly Mp EP> *Popar yp (rqnout 4) oe wv Panguy ag = wosbosd athuroey (447 buoy. sar i u j (8 marks) Command Line arqunorl . He am Line omgemertt ous the Volum qivan ater namo oh te progr An the [ommend Line chell of Operating tyes : Command tent argument ae harellicl by dha man 0) puncHon op & c. prpgraye Ay pion - pt main (tnt ang ¢, Chay tong v0 7) Org. ~ Otpument Count — an Drteger Vowu'cub bo. Sod Hore fhe no of Command Lene argeuments posed by dhe wer My the rams of ha progres: Orgy = Brg enient: Vector - Onrroup of Charockn Pourters LUstoog ow he ono curr A Grge a qreder Dean po20, asror Chomant pom aravCol 46 ony Carge 17 willl Contarn Porters 6 strange - argv (oJ 4 Fae hana Oly prog tam , A, ba Dot Org vC argc -1J Avo eloment wu Dine OUgumonl - ox “pay Phomr tong ‘£14 Bug © #90-0/. $00) 4 Bug ‘eita,| yerembro ney proc 70 Bermajjoy c Boo Vay + Mow] < mUgy oroebay, -grding { co umpg, ( (0 Ab09 ¥ §v0-/- KPT 7AB 0 Uj) Ipod (44 569 Bto >Y (0-7 Jor 10h «(Pry oun btg er wre Eegonis uy.) 44m)sd “(9 buy Gp hc Pry maumbu & requ 119.041 (wr 2 ae © (n word proun diy wiry joraarniay tyes ON ,) fraud (1== 619) % £( Copa Baw Sp rh « owrou woabory ,)4uud j wourbag Try promuay (cero, woyg Bi 47) ors Lay yy wm Lyons» PUTT ‘ *TOWL.g) ‘ aroeboxy aabnreug Up a) Structurp in C? (4 mots ) Structure pr a group d Veriable of Aiyuont datatypes vepuertod by o Auhale Mana Sp order fs More the hla of Sudortr to Mudent hare 092, Odden «td ete oe Ute Ghructure L bolve De Problem * To Creal a Structure. up & Prog veunminy we We dtruck Kkoeword The struct Kerrocro 81 a short form of Srudwed dala Lippe. Gruct Struct_hame { dokatre momber | — name ; datatype Monber a — Nant} dotatyps member 8_ yamey 1 K To doclore vantable of & Structure Carob) Struct dtruct_namo Vorname} dor) Strut Struck name £ dakodyro toner! — name} delay. mombey 9 name; VUY_hnome 2 o7 ae tege e EhSal =P Mbp“ rpnys © Pappy = TWA NYGp* JuaMp Fuopayy Mop wa pTufp Qarow 4ar op sa ‘abo~ apr yar “PIP par FIMO NYP». 04) ] mea qvepnyp prigy ™ \nNoume s-/-4 tn Morter= fol \n!, rome, marks) 3 ao (tptr); & Yulurn (Os j Output : (6 monks) Enter number of Stedenb : 4 | Soy Student |: ) Enter home: Rahul: | Enter maoru: 66 dor dont 2: , ror home SMVO- Eni rorks ° gs For Studonk 3: Enter ram: Sohn Enter warts. 44 doy Cudene & : Enter namo: cabs Ent mort. £0 Proun Yekuned © © | = ‘= » ; Vor} ; 7 ie [M ae oie Ap/eses] [Be Pap , Qr ar Hopd/ CSB.

You might also like