0% found this document useful (0 votes)
624 views27 pages

ch1 10th Computer Urdu

Notes

Uploaded by

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

ch1 10th Computer Urdu

Notes

Uploaded by

ranasufi1998
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 27
03 teh saci IS eo 5.6 LAey SK tI, afer LED ES tebe le bigteby ht idfetpuiie toy pei lig tl S er Lou Ss Pagerecigel pl foSizrb 2 a. et Leyrtimie lt CE pms wi SeF tele boty tl 909 AHL cl or gattiadihicteds af Brea lou EM Lee oes L 1973 aif air. CH, GIAVA-c OY ALES on Lelie £8 uted tf BES ghndn witli P LES AS ex Python SeutenAbetantihytis eR DE LK 2 Lv, BE UsaAts (Tools) 77 bend. en SA Wo-edren Abu tote LL Best trent Lt we ANCES Appt Lb Sige bet vd Lt Sly, 2 PE ARLE ELIS geet hag 2 bo Ki ti bilge Bohiz et, ASE LEB EI gsteV Une) ertherdsn bins aerl iy) an ihige Le soutiphigkisend higiedloner Si Se er -<-t (graphical User Imertaced ud 2177S SL 1DE-< told (IDE) 2 Asheedss SIDE Hie Oh Sen, tHE Nerd emt uintsd LES L otgesioih Spi egoi the FAA Geta Gel lorie Mobile tx gi) sty IDEs £2 LGB Big Ce te OAL RS BYE DevC++(4 Code! Blocks (3 X Code (2 Visual studio (1 04 ted yh IS Sob Sg ~<-2ef¥ mainCode = Blocks eaten as Code::Blocks ee aes te Q eesam sau sens Maras masiaseenmet iB a Wee iis echiaie + rege Oi +e, IDEs 4 Ae FAS IDE Guth nipie# ncaa Caden 03 Ee tee Yor Smee fret Bald Debug Fo OEM LWNTAA ARIE $00 rey Febte-B Code = Blocks 05 ted yh LS eo Sg at shetaatlt chic ore pits bt le Me Lil Fit gs hted -ets"Hello World" Sng ESM gf" buildand nun” LEA este sige 66H CORUM ELNELL IDE Code: Blocks WW" Hello World.c" Gp AzeiL a (Complier) #22 MLE BS nh th hb Sire pre BIE Udder Apia SOF P's 1s 210s tala sole A Fut (ms) Pau fmednen2rSi Se tbe Shi 262 tL, < ‘Computer Program File Computer Binary File sofort Set op l Bihigs (Syntax. came to Uri he LA hg vtinadn rebi baste. fe Ot AN ER GL HAE eter ple Li BoA tad Lele (Syotxmee) au”) owt tet ep tizie tele lt i LEB BSE Sigel bili, et esg! FP Sok SP teeth 06 edhe S Sano yS ees i) Ld ad nee lI ft LgetnnP gece Bema A atinhgs lh ctervee tL sass wen Ni eb auto double int struct break else long switch case enum | register typedet char extem retura union const oat short unsigned continue for signed [void default ~~ goto sizeof ‘volatile do it static while suferinbesr Sige Cfo WO tur fick tL BLM S (Link Section or Header Section) o*- lad G1 Ne SULA UF i SS orn ingen SES Sf eS reso erese Include statement 22 SUC ei S1.2 SP include staremem £2 6z1L, #include eit obo tre WUE this program displays “I am a student of class 10th” on the output screen"/ void main( ) { Moody of main function starts from here printf ("1 am a student of class 10th"); } tbody of main function ends here ort lafriemy et ltr Ar SA Libs MWA Alyse HSE ASME BS, SUAS Po irid Lite ABV Dibuny2) F520 C- 9) —wel2 =I\015 Fuse vite Ewe wlan Sire Mad net nee, CN@se He) = res Sea dei while. (Constant) = 16 ee HS3 oe P 2 eer . (integer Constants) 2 *"1 2 wenturben wet tell +24 2349 ,-54 ,55555 30100 1256 ,7 met ty, (Character Constants) 2157 2S Sen eS SL ted yh LS Seo | S90 enlirigtl ALF State 9 a afie 9+ 8 AIT PLPC Le Ai 908217 BLESS wn LEI POE Sr Asl Pre Py Doprle we Lio ES ati Wariable) 21> Hiner F iL fut ek SIL, « pends uty Location) e920 Mise AB vail taint 4 s BES tlie oie Ey SP uh, height average weight up bsoo ee Abul Pave dressaltankes BES ede Ste dn Zt isle bel Cdentifier) Sesto pts dL 22 AICS ALM netic er char i float int ug Bi se Sir tb icc Meer ewer ser Matching data type in C ‘Type of data inpigs Sample value Integer int 123 Real float 235 Character char ‘a’ (Data type of Variable) #52" Jet he Vowhesdndy Lisi Papeete dt AUS EP they abi ap SE SLNL eSONLEE Cue Ire ASME LEL IGF hes Se te Ailend A Le MSIL LES S SEA SNH im aS L Signed int .1 HH tel 6 22 Ud Post ot (IL 2,147,483,647 & -2,147483,648 Ut Signed int -< TE Signed int int 10 toh hac IS no 50 nt Unsignedint .2 unsigned ae Sx 44294967295 = OSB Le SEES vu weber! unsigned int d- SELLS (floatesig£® ABE 6st float tEIe agian tn Lusty LAP Lees WA AL furl float Ligh Sem floaty CLES -e be (char) AY 3 AG unsigned int £1 3.40 10% 3.4K RMA oe OS LES Gis EP ohare. stubble bho (Rules for Naming Variable in C Language ) LLL Huthis as Pesce esy ty 3 0 2 DE G7 Stk Ae whet Amines (a {Salary ee LLA HiT SO Ker /oat rine butte Lit -< OF x Wage Se OM te wet Pir bios (Memory Location) SS, oa Phe ahs etna ® List Sed Spreifitwint” 45, height average weight Aub, aa ee wth sats 1500,75.7, seed role Ltr ee AS3 eP 2 eer ia sate LAA It BSE Higlir (Variable Declaration) «#4832 URES PBS e. oF eSir0SE be eM nS AL Data_type variable_name; unsigned int age; float heig int salary; char marital_status; eI tut hibn unsigned int age, basic_salary, gross_salary; int points_scored, steps; float height, marks; char marital_status, gender; UF be fais Sot LL. cep lPr rg ae void main () { char grade; int value; } (Variable Initialization) i 7u%1* Bee thr” be Ms pt PL ELIE HA Fe Pe Wir hg Liebe we Fnclude void main() { char grade; /Variable grade is declared int value = 25, /*Variable value is declared and initialized. */ grade ='A’; I\Variable grade is initialized | } - _ - sl CSP Welitern ly D c RB A # | f | a | As | we phi ? 1 i Bhat P iS Sigte gti 2 e v | ae pie re 4 IDE Bil | ty . pee : | Lund h & Act be Wada red Aba ht raat 3 Bool 4 main oS oe 5 (Variable Initialization) i 7u%1* Bee thr” be Ms pt PL ELIE HA Fe Pe Wir hg Liebe we Fnclude void main() { char grade; /Variable grade is declared int value = 25, /*Variable value is declared and initialized. */ grade ='A’; I\Variable grade is initialized | } - _ - sl CSP Welitern ly D c RB A # | f | a | As | we phi ? 1 i Bhat P iS Sigte gti 2 e v | ae pie re 4 IDE Bil | ty . pee : | Lund h & Act be Wada red Aba ht raat 3 Bool 4 main oS oe 5 ed had 5 Sint 9S gu 13 - LdeiL lige Sourcedtor i _ Pe | of eu eth, [ALi SoturStataPulicn | 6 ete . 2 oni S en k przrune » # oy ~ 7 vt e abn 6 5 4 3 | et Sttioasi | 8 , @ . dead fee Les | “ah “| - + A |etureyeci ney | 1 eur 1 2 3 | 4 7 [8 | 9 10 B A BB c | Bi] BB 6 bs $ern!/ wy ral we i td pS KS. iF iphie-# IDE LC enh we dre SLL MAAL LL WINE AL Sip Sig Lido ool se ~ #include void main() { "A simple C language program”! printf (“Welcome to C language’); getch(), dy dui Welcome to C language toh e SAS PL GL LSP Kernel lat Ig head P pA AE LEE SUEBE ST AGie wring Srbiarls W #include a Sy #include Ses int main() { char n="M', g int age=20: MM 206.1 float height=6.1; getch(); retum 0; } printt(" %c %c %ed %F", ng, age, height ); 16 thy haci 5 Baa 559 pt Lee Lies he SEALS, CL AL Web Browser) tice LAGS, | 4. Eclipse 2. NetBeans 3. Sublime Text whee bic tin Sigh pute ELIDEL AIDE SSSR ef Lcd 16S 7 wv #include void main() { printi(’Hello World") } Winn Lb Mee Lewin asl int, pack, create, case, return, small, math, struct, program, library. wy int struct return Rona 17 ashe S Sino Sauu testSur BL ph cussty identify different parts of the following C program: include #inciude void main() { printi('l am a student of class 10th"); getchi(); } Header files #include #include Main section void main() Body of main function ( printf(“I am a student of class 10th” ); getcni); ) Tick valid comments among the following’ + ‘comment goes here* + /comment goes here/ + %comment goes here% 7" comment goes here"! + comment goes here! + IIcomment goes here */ Comment goes here"! 18 pha (Sadia | yg yt USES nSe bieue 68S, 2 12 uae a 32.768 fa! 12.3 a 40.0 7 1. integer constant(12) 2. Real constant(1.2) 3, Character constant(‘*') 4, Integer constant(-21) 8. Real Constant(32.768) 6. Character constant(‘a’) 7, Real Constant (-12.3) 8. Integer constant(41) 9. Real Constant(40.0) 10. Character constant'\') wv Hello, — tvar roll_num Case Scar name ett ty Wt Lurten£. Air23Blue float =color Float 1. _Helio 2. roll_num. 3. name 4. Air23Blue 19 Diplo Pd Lebo. SF obi tor Lew vale fine S, . wt Abt * Srighi * Srugiets ae ALR Lgs #include #include int main() { char n="M', g= int age = 20,marks = 800; float height = 6.1; printf(" %c %e %d Yd %F",n, g, age, marks , height ); getch(); return 0; ) 20 eaylad S Stal So eT D e B A eur SPU ae ‘ole ahh pee | tigted | ety SerLetuSG fd | 1 tii.) af |, ffs PLN snMeantid | » wna | ify | bad oe thtpe tl a & Whe 7 Cree JE I higteda hn 5 anig a Vv aA ahi tif] 4 eto |. ‘ tify, Suet Bhgdsthsrarnt, | s “ur |” te [ows oath Pe ” ee ap fon eobhddhy 4 edn - | file name> | file name> | file name> oy [At ene Heer or re uit Fike Main () cetuntepligete| oO {} 0 : ~eOrisiL GSO | 20 St ute ligell Be toe |e | symte eeatt gota er Susi Sr] 2 6 teertet fede | 26 . . . edit UE eon nk 7 ce Bao ae oe hos uas a7 P ; | Lk Lest ee | eee | eee aS a * “e en SEE Euviteon| ™ LS 43 co “ eer | ee ei up nfew | 29 HS s i ya ~ eR | eer nee LIL | 30 ~7941,23457| -792345a | 79412345. | -7941.2345 tee Pe tiow | 31 eit ise thin PE | tod eo nm wetnsT lt Cdessd| eee! . | eB mt Lb Sphig wir | vf | © a tute | > 1 5 4 3 nnn | 34 Yer LEN Af Ae dak | sdsin | rite | dott | UPN EL 2H PE 35 8 6 4 2 eB tut 21) 36 23 ted hai IS Bao | pS gyn e Uisbsia | edd eft te Si signed imt Li |. 37 signed | unsigned « hi fost |) ere | “integer, | charinteger tet Sintgttolyim | 38 Oto Oto Oto Oto -4294967.295| +4294967,295 | 2.122222 | +4,294,967,295 sae Sonsigned int | 39 Ley t DAP Hie. - chardata | intdata | floatdata | realdata [2 CA en turegh ase 40 eet 34x10 44x10 34x10" 44x10" © 0 to ‘ SadSesiyess | 41 34x10" 44x10" 3.4" 10 34x10 ; float | unsigned int 7 a c® | intsatary, | floss | signe BSE Mi Pen | a2 nee 1 2 3 4 5 6 7 8 9 10 D c B D B c A D D A o6% 12 13 14 15 16 17 18 19 20 c B A D A D B A A c 21 22 23 24 25 26 27 28 29 30 B c ¢ B D B D c D A 31 32 33 34 35 36 37 38 39 40 A B A A e B c c A | B 4 D 2 D 24 te pha 1S Sco So yt ered cal suf eotas hired water leg bed Ver Let hI bed ohh seth dedo rete ES gi (I LLL Zi Leu tied eth ‘ehh mete igete eile BSE Sr ligted Baie Wettig Ske tt Boe £1973 9698 Ol! Cre tet A tihgs FB pty lh wah EAS phi mds Se Ver antils 6 eat ot An tihy, Me BSc test ath icek HisrpPL itil, he gt lpg PL pled LL LESS gine ligd eday te VODE Adee hie whi icier pean bilid Le reebiphiytityn te Sg deb afr iohh Nth Sg nel /1-g-t x (Graphical User Interface)? 2112S LW IDE-< tif (IDE) Asi we EF Sepet PLN ALIEN UR air LES K oagestoid Sing apd wes L LEG ES, C8 tWEs42 LEA BS pe ee Python w+ +, CH, C JAVA EY BES ur ils DevC++ (4 Code #: Blocks (3 X Code (2 Visual studio (1 Te phe Se Lurie 9 LEU AIL Wes Mien Sei hllip tire Lr eLiped ae uk nipht tL a7 S Complies) Hf :10 ee WELLE LHLEER fe ce nD tE BES i sibhng KenL Ae 25 ey Lai (5 Sof Sant ear CES AMIE tote tL LEP sft Lid SOL LES perl gh Ot AS Seaiprenue 2 Pi teu he BO Lilet Vel pl 68 Bihg | EP ee Smithy alt we tei SUBS te trthi AL soe SAE ten Lr Gogh BG Maal nS LP Lb puebmtha dire bre pL LER BL gp wae we Pythe tl bu Sibi Soilon ad np auto, nt ese, switch and tum eabsvpt hE sito? suena ihatthyas oe OE tur tnt iLL DLEMS we Ate? mainO.3 Sta Sete. te, ba 615 LMU var ® tf Ln tb Air nt \NOE CB ipenBh ptt ie Eph Sot bri toy tS UF Gnd Seoul Suge en ASL Short Me wad S Set Size JA include statement LEK z31 sett Se include: Hinclude tecbipcrcsv-S Include statement AR Sy feolinf include 17 #includesheader_file name> rectios23lS Include statement 4 — PB egest org LUTE SUC F6L fie pth F 6b A LUCU Co Vee SEPP L tho kel Lemath Seti te ot Sib yy ene tuts tet Ayas ngtnts Peep trze ester mainO Lit Ags lt Tee Sie OetH9 main mesbrrar ssi utah 2 2 ne GusstL Cutty Braces (uses Z USS main ioe adn tense? SAL ated rg tore yas AG Ais 0a gil Fee bn Lag Ie tio AS dt Cys terete re Vor a Lira esr dis S Se aM 0 ig (Case Sensitive) eM SAE AL (Statement 2 2-g UT ie Sin 2 ig DF Int a int ee rats 2 Cd She aoa tne sit gabe Lan PI LRAT PE pa hg lrtts Az tb gr Frnt vet sL Lis wert on sehen a OE gh Lanebalr hgh PO mt et oe LENS Lip higepre enh SF el si Mgt Set fret Inte Eatin LB fag Lig (2 bP RO EL : tai Stas of sido ot Guba aunt 2Z LOR Eth ig rng te dieu id ne fu Sirns pal de-qret eto nb gigi hin LM atk ato pel et 0S wt //This is a comment. we Lake tol wb gto nL! enol andnpe lamadnte perl Sug gah L Seung /e This is a Multi line Comment #/ Usa Semras rei Co tb Bonds 5.75.7, 1500 PCE bem L elec wiz ee £S3 ee P 2 eR wt 27 teh yh 1S Sato St wha fow# 126 Keck Sid 12349 ,-54, 55555 30100, 1256,7 nd nd bed ge te RUF Y tng . eth eteinceulf Tb her AS oho wer 27 hele ee eS 75.0 , 15.3333, 14. 3g tT i ture ul Ht FF bod en ds - 1941.2345,-1575.76, | Punctuation Hubi7 nd AE SLAL MAXIT! Stet t LLP ba SF er aps (rghig tab ® tL birt E te VP 128 es 2, -ctvoLb Lot (Memory Location) oA Suxt Mix nz Leredl rei p end (SIE ONG LS Sg x hg Corfe Pe char FES A float 241, SLELS BE AX Abi Ast fie de L LEI is Aig eds fei Sat height, average weight :Jt stuf tes PE P29 mutbitopiieLodateitt here rez] int £75 syUfertalizi30 igh td Se inebilb» SoS foro unsigned int o! signed int 31 a -l signed int unsigned int we F 2,147,483,647<--2,1 47,483,648 Signed int Fine ANH Ao So% 2 odo P whet tele Mahone Blat pore SSI LLL AE con pSLIAIE Ole LI tig AR FSGS User LES A Pc Morton Data_type variable_name; te Voksusil ear Cyyratinl une nL, AAS til Ra Pl te eV PL h we “+ aA P38 data_type variable_name = value; se WA ELIW ADL HME gan

You might also like