You are on page 1of 10
‘Student Name Roll No. Marks: Computer-10____ Marks: Date: .aea9e8 Syllabus: U-1,U2.U3, 1- Circle the correct answer, (1ox1=10) wiht ines + T._| Which one from the following is not programming eA Tieden | A language? c# XML cH @ Java (4) Z| Reserved words include? ae emte | 2 all (0) ito for (8) do (A) 3._| Integer takes up bytes of memary. OF, 3 6 ©) EXC) 4@) _| The value ofa variable can be __in a program, oF, a All of these ¢2 (0) Same v5 0) Changed Js (8) 5 | ___ are used to specify format of datatype during erm LL 3 input and output operations. Format statement 2% (8) Formater 7.8 (A) VO specifier svat (0) Format specifiers iZearez (©) &_| print My name 6 VAIN"): n the above statement / TrguiprintiMy name is VAIN") | 6 is an statement terminator Ae (8) Escape sequences £1 (A) format specifier earee.t (0) 7._| What is the precedence of operator &&? 7 8 (0) 70 '& | Sequential control is the ___contfol structure in C- a language. Default ees (2) Relation v4, (0) 5. | Any expression that has a___value calculates to true. a 00 @ on-zero 2} (A) none of these 2’ s'd(D) bboth (A) and (8) (B)x(A)U#» (C) TO. | The associated code is any valid C language set of wernt AW = lbC Hater | AO All ¢2 (0) statements "(© rules control Je” (A) eS All classes comp lete test ses: GD taleemcitycom ) TALEEM CITY TEST SERIES nis available on Marks: ‘Student Name Roll No. Computer-10 Marks Datertewarzees Syllabus! U-1,U2,05, (Part-I Ji) 2- Answer any 4 short questions. (4x2=8) Baye Louse dy i, What is programming language? salt Mtg i i, Why we need IDE? teyterACSIDE di fii, List down five reserved words in C programming Pitre aii language. iv. What is linking section or header section? W ¥. Why do we use comments in programming? 3 vi. Whatis Integer Constants? fale wi 3- Answer any 4 short questions. (4x2=8) ae Lowe Levrde lI 3 i, From where the name of printf function comes? tee uve Sprint ii, What is Formation of escape sequence? Ven s re bagl iii, Define new line (\n) escape sequence with the help of "n\"(New Line), example iv. Whats Assignment Operator? Give exemple. iv Ve What is NOT operator ())? v Vi. Solve the given expression. wi nas242 4- Answer any 4 short questions. (4x2=8) Fae Lhe poten i Whatis conditional logic? sedan fi, What is mean by control statement? tee ye fii, Which control statement is default control structure in ¢ febuif teed hhc ili language? iv. Whatis if statement? wade iv ¥. Whatis the output of the following? fe Vaeiibhiou inta=7 i£@%2 0) print? “Odd; ole prin"Even"); vie Identity the errors in the following code. Swisher wi ifab return a retum b; Sey GTteaL retum keyboard vi Cart -I-¢.2) (2x8=16) eyeLew neds Be ease & é ever 5 Pf Le Mea Abefg/FOR 6 aoeewe Nes 7 te) TARY Tesr Seas Student Name Roll No. Marks: Computer-10 Marks: Date -mar202s ‘Syllabus: U4, U-S, ‘Student Name Roll No. Marks: Computer-10 Marks Date: -Maca9es Syllabus: Full Book 1- Circle the correct answer. (10x1=10) aM iveen «1 1. _] Programming language include__- eR ET] Allo () Python (¢) cH @) jaa a} | 2. | InC programming language, there are __ types of ube (FF atc [2 comments 5) 40 3 (8) 2A) 3._| When we use %f to display a float value, it display YT SALINE Mod LL vost iMloatec |S digits after the decimal point. “etic aL (Decimal Poin 9 (0) BO 7 (8) 6A) ‘4 | Multiplication Operator is denoted by: Libkgihe >| A = (2) a % (8) “A 3. | is the default control structure in C language. eh Pt he ERE 3 fandom coal J, @) Siena cod YET Allof these /7~ (0) Conditional control Uy ¥2 © | Asset of multiple instructions enclosed in braces is hohe 6 called a____statement. compound At (8) block Ss (A) control Us¥” (D) both (A)and (8) (B)CAD US» (O) 7._| Index can be used with the array name as__to FP SBE P RATED SAEED | 7 access the data stored at that particular index. nae array-namelindex] (0) _array-namelindexl; (C) _array-value(index); (B) array-namelinde;, (A) & | What is the final value of | after executing the above See Vi Folate, | & code? fb Gti = 1; 54; 6 (0) 50 4) 3A 3._| The general structure used to make a function call, emmlirigic ile | function name(value', value2, . value3); (6) function name(valuet, value2, ., value); (A) function name(valuet, value2,..,valueS); (0) function _name(valuet, value2, valued), (C) TO._| A function can return walues. ea OTA 10 4 (0) 3 © 28) All classes comp eS ‘Student Name lete test ses: GD taleemcitycom ) Roll No. TALEEM CITY TEST SERIES nis available on Marks: Computer-10 ‘Marks: Date: Wear 2025 Syllabus: Full Book ii. iv. vie ii. iv. % ii. iii, iv (Part-I Ji) Answer any 4 short questions. (4x28) Who is programmer? What is the purpose/use of Complier? Write down the general structure of an include statement, Differentiate between "char" and “int” What is Input/Output (1/0) function: programming language? What will be the output of this code? void main { printf *Pakistan\ n Punjab\n printf CPakistan\n Punjab"); } Answer any 4 short questions. (4x28) Write a program that swaps the values of two integer variables. What is the difference between = operator? Which control statement is default control structure in ¢ language? What is meant by Control Statements? Identify the errors in the following code: i> 10) = operator and = printit"Good") Write the output of code. int = if @#20"2—=45) ‘ printi"you are lucky"); } else printit"Bad Luck"); Answer any 4 short questions. (4x2=8) How we can use variables as array indexes? Give example. Write the output of the given code, int g(4}={100,200,300,400); print Write a program that displays the values from 1- 10 on the computer screen, Write a program that assigns first S multiples of 23 to an array of size 5 What is Built-in Functions? What is the function of int largest (int, int, int)? “20D; Cart -I- pe) Bee A Coveted Beye Lovrde dls Le fowaptihasc A nnd HS sgeki BN tipgieuipge terolhrtec kt Pc teine. rinnaihtizie oe PLhe tole, apt ie iiss igh A Mele SL PPP SEB te MUSA RI A ell “Built in Function Snug Sea Gint largest Cnt, int, mde o* div wi sii ai ii viv wi Attempt any two questions: (2x8=16) FeyalewOuredy 5 Define the program, Write a detailed note on the Bib eS C Bari 5 structure of C-program. 6 Write a program to print odd numbers from 1 to 19 EM aMAWeine lig lie nLANEK "for" 6 using “for’ loop. 7 Explain the use of printf() and scanf() functions in C~ language with examples. pine yr fUL 28 Oscantin Oprinttys LES TALEEM CITY TEST SERIES All classes complete test session is available on @ taleemcity.com ) Student Name Roll No. Marks: ‘Computer-10 Date -mar2023 Syllabus: Full Book

You might also like