10th Class Computer Science Guess Paper 2022
10th Class Computer Science Guess Paper 2022
100%
ب
ﮐﺎﻣﯿﺎﺑﯽﮐﯽ
ﮔﺎرﻧﭩﯽ
م رڈ
د
ر
رہ روڈ ں ں
03024741124 ا ح ا
GUESS 2022 AL-QADIR JINNAH SCIENCE ACADEMY MALLIAN KALAN SHEIKHUPURA COMPUTER 10TH
ٹسکیٹ کایڈرٹی ک
ےہوجہکرپورگارمزوکویپمکرٹرپورگاموک........................ ای
A text editor is a ....................... that allows
23 programmers to write and edit computer programs. ےنھکلاوردبتلیرکےنیکااجزتداتیےہ۔ 23
(A) Software (B) Statement ٹنمٹیٹس ()ب اسٹفورئی ()افل
(C) Command (D) Screen رکسنی ()د امکیڈ ()ج
24 All IDEs have their own specific ............ اک کIDEs امتم24
وہتاےہ۔........... ایاانپوصخمص
سنٹ کٹم
(A) Statements (B) Commands امکیڈز ()ب نٹس ()افل
(C) Text editors (D) All of these ہیامتم ()د ٹسکیٹ کایڈرٹیز ()ج
Computers only understand and work in .....................
25 language. وگنیلجئںیماتھجمساوراکمرکتاےہ۔..................... ویپمکرٹرصف 25
(A) Assembly (B) Machine نیشم ()ب ایلبمس ()افل
(C) High level (D) None of these انںیمےسوکیئںیہن ()د اہیئویلل ()ج
A ............. is a software that is responsible for ک
...................... ایاسٹفورئیےہوجنیشموگنیلجئوکڈوکویپمکرٹرپورگاموگنیلجئ
conversion of a computer program language to
26 machine language code. ںیمدبتلیرکےناکذہمدارےہ۔26
سنٹ ل
(A) Compiler (B) Syntax نکس ()ب ر اپمکئ ()افل
(C) Program (D) IDE اِیرڈٹیڈوٹنمپلیاموحل ()د رپورگام ()ج
The set of rules in programming language is known
27 as ............ of the language. ےتہکںیہ۔................... سوکوگنیلجئاکرپورگاگنموگنیلجئےکاوصولںےک ک 27
(A) Codes (B) Program رپورگام ()ب وکڈز ()افل
ل سنٹ
(C) Syntax (D) Compiler ر اپمکئ ()د نکس ()ج
وہےت................ ایلِسٹوہیتےہوجہک
ہررپورگاگنموگنیلجئیکاافلظیک ک
Every programming language has a list of words that
28 are ............... ںیہ۔ 28
(A) Other words (B) Hidden words ےپھچوہےئاافلظ ()ب دورسےاافلظ ()افل
(C) Predefined words (D) Defined ڈافیڈنئ ()د رپیڈافیڈنئاافلظ ()ج
29 Predefined words are known as ............... الہکےتںیہ۔................ رپیڈافیڈنئورڈز 29
(A) Reserved words (B) Keywords یکورڈز ()ب ذریخہاافلظ ()افل
(C) Both A & B (D) None of these انںیمےسوکیئںیہن ()د A اورB دوونں ()ج
30 Reserved word(s) is/are ................... ںیہ۔............... ذریخہاافلظ 30
(A) auto (B) double double ()ب auto ()افل
(C) Int (D) All of these ہیامتم ()د int ()ج
31 Reserved word(s) is/are ............. ںیہ۔/ ےہ................ ذریخہاافلظ 31
(A) case (B) do do ()ب case ()افل
(C) Both A & B (D) do-it do-it ()د A اورB دوونں ()ج
32 Reserved word(s) is/are ................. ںیہ۔/ ےہ................... ذریخہاافلظ 32
(A) volatile (B) union union ()ب volatile ()افل
(C) return (D) All of these ہیامتم ()د return ()ج
ٹنمٹیٹسےتھکلوہےئ ڈیہرافلئ................ مہاےنپرپورگامںیمرپورگامےکاُورپ
We include header files in our program by writing
33 ............ statement at the top of program. شالمرکےتںیہ۔ 33
(A) include (B) break break ()ب include ()افل
(C) void (D) main main ()د void ()ج
شالمرکےتںیہسجںیماِن ُناورا ٔٓوٹ ُنزنشکنفےک..................مہافلئ
We include file .................................. that contains
34 information related to input and output functions. ہقلعتمولعمامتوہیتںیہ۔ 34
العموکوھبلاجتا ک
scanf نشکنفںیم.................................. ایتہب
It is a very common mistake to forget
94 .................................. sign in the scanf function. اعمیطلغےہ۔ 94
(A) % (B) ! ! ()ب % ()افل
(C) @ (D) & & ()د @ ()ج
.................................. العمےکریغبرپورگامازگیویکیٹوہاجتاےہرگم
Without .................................. sign, the program gets
95 executed but does not behave as expected. ادیمےکاطمقبںیہناتلچ۔ 95
(A) % (B) & & ()ب % ()افل
(C) @ (D) $ $ ()د @ ()ج
.................................. نشکنفویزرےسرکرٹکیڑپےنھےکےیلاامعتسلایکاجتا
.................................. function is used to read a
96 character from user. ےہ۔ 96
(A) printf (B) scanf scanf ()ب printf ()افل
(C) getch() (D) None of these انںیمےسوکیئںیہن ()د getch() ()ج
To use getch() function, we need to include the ()getch ںیمہرپورگامےکڈیہرنشکیسںیم،نشکنفاامعتسلرکےنےکےیل
library .................................. in the header section of
97 program. ک
الربئئری .................................. شالمرکتاڑپیتےہ۔ 97
(A) math.h (B) conio.h conio.h ()ب math.h ()افل
(C) stdio.h (D) All of these ہیامتم ()د ()ج
ل لstdio.h
ایالنئ ایٹنمٹیٹسرٹمنکٹنکٹرر ر
اپمکئےکےیلآڈیئیٹنافئرےہوجہک ک ک
A statement terminator is identifier for compiler
98 which identifies .................................. of a line. وکاچہپیتنےہ۔.................................. ےک 98
(A) Start (B) End ااتتخم ()ب رشوع ()افل
(C) Both A & B (D) None of these انںیمےسوکیئںیہن ()د A اورB دوونں ()ج
C وگنیلجئںیم.................................. ایٹنمٹیٹسرٹمنکٹنکٹررےکوطررپ
ک
In C language .................................. is used as
99 statement terminator. اامعتسلایکاجتاےہ۔ 99
(A) Point . (B) Comma , ،وکام ()ب .وپاٹنئ ()افل
(C) Semi colon ; (D) Colon : :اکنل ()د یمیساکنل؛ ()ج
"and" ےکادنر.................................. نشکنفںیمانکسکی کٹوکیسزسنئ
Escape sequences are used in ..................................
101 function inside the “ and ”. اامعتسلےیکاجےتںیہ۔ 101
(A) scanf (B) printf printf ()ب scanf ()افل
(C) getch (D) getche getche ()د getch ()ج
Escape sequences consist of ..................................
102 character(s). رکرٹکیزرپلمتشموہےتںیہ۔.................................. انکسکی کٹوکیسزسنئ 102
(A) 1 (B) 2 2 ()ب 1 ()افل
(C) 3 (D) 4 4 ()د 3 ()ج
The first character of escape sequence is always
103 .................................. وہتاےہ۔.................................. انکسکی کٹوکیسسنئاکالہپرکرٹکیہشیمہ 103
(A) / (B) \ \ ()ب / ()افل
(C) ! (D) % % ()د ! ()ج
لگنسوکٹ(' )داھکےنےکےیل
Sequence .................................. is used to display
104 single quote ( ’ ) اامعتسلایکاجتاےہ۔.................................. وکیسسنئ 104
(A) \ (B) \\ \\ ()ب \ ()افل
(C) \a (D) \b \b ()د \a ()ج
کیبسلٹکس(\ )داھکےنےکےیل
Sequence .................................. is used to display
105 back slash ( \ ) \ اامعتسلایکاجتاےہ۔.................................. وکیسسنئ 105
(A) \ (B) \a \a ()ب \ ()افل
(C) \b (D) \\ \\ ()د \b ()ج
اسویڈ ک
رنجنرکےنےک ک.................................. وکیسسنئ
ٔ ایاالرم
Sequence .................................. is used to
106 generate an alert sound. ےیلاامعتسلوہتاےہ۔ 106
(A) \ (B) \\ \\ ()ب \ ()افل
(C) \a (D) \b \b ()د \a ()ج
ےلھچپرکرٹکیوکاٹمےنےکےیلاامعتسل.................................. وکیسسنئ
Sequence .................................. is used to removes
107 previous char. ایکاجتاےہ۔ 107
(A) \ (B) \\ \\ ()ب \ ()افل
(C) \a (D) \b \b ()د \a ()ج
After escape character, .................................. ایلگالنئوکرشوعرکےنےک،انکسکی کٹرکرٹکیےکدعب
specifies movement of the cursor to start of the next
108 line. رکرسیکرحتکوکوصخمصرکتاےہ۔.................................. ےیل 108
(A) n (B) A A ()ب n ()افل
(C) b (D) H H ()د b ()ج
Escape sequence .................................. specifies the ایلگایقفبیٹاٹسپیکرطفاِن،.................................. انکسکی کٹوکیسسنئ
I/O function of moving to the next tab stop
109 horizontally. ا ٔٓوٹ ُننشکنفیکرحتکوکوصخمصرکتاےہ۔/ُن 109
(A) \a (B) \b \b ()ب \a ()افل
(C) \t (D) \h \h ()د \t ()ج
A tab stop is collection of .................................. س
110 spaces. نٹکسرراکومجمہعےہ۔.................................. ،ایبیٹاٹسپ
ک 110
(A) 2 (B) 4 4 ()ب 2 ()افل
(C) 6 (D) 8 8 ()د 6 ()ج
111 Some basic operator types are .................................. ںیہ۔.................................. ھچکاینبدیآرپرٹییکااسقم 111
(A) Assignment operator (B) Arithmetic operator ارھتکٹیمآرپرٹی ()ب ااسٹنمنئآرپرٹی ()افل
(C) Logical operator (D) All of these ہیامتم ()د یقطنمآرپرٹی ()ج
ایریغتموک ک
آرپرٹی.................................. ایوویلیااسنئرکےنےکےیل ک
.................................. operator is used to assign a
112 value to a variable. اامعتسلایکاجتاےہ۔ 112
(A) Assignment (B) Arithmetic ارھتکٹیم ()ب ااسٹنمنئ ()افل
نل ٹ
(C) Logical (D) Relational ر ک کسنل ()د یقطنم ()ج
C ںیمااسٹنمنئآرپرٹیےکوطررپ.................................. اامعتسلایکاجتا
.................................. is used as assignment operator
113 in C. ےہ۔ 113
(A) % (B) < < ()ب % ()افل
(C) > (D) = = ()د > ()ج
C ںیمارھتکٹیمآرپرٹیےکوطررپ.................................. اامعتسلایکاجتا
.................................. is used as arithmetic operator in
114 C. ےہ۔ 114
(A) / (B) > > ()ب / ()افل
(C) < (D) = = ()د < ()ج
C ںیمارھتکٹیمآرپرٹیےکوطررپ.................................. اامعتسلایکاجتا
.................................. is used as arithmetic operator in
115 C. ےہ۔ 115
(A) / (B) + + ()ب / ()افل
(C) * (D) == == ()د * ()ج
.................................. آرپرٹیداںیئاورپڈنییکوویلیوکتباںیئاورپڈنییکوویلیےس
.................................. operator divides the value of left
116 operand by the value of right operand. میسقترکتاےہ۔ 116
نقسٹ
(A) Multiplication (B) Division کمی ()ب رضیب ()افل
(C) Subtraction (D) Modulus امڈوسل ()د یفنم ()ج
117 .................................. operator is a binary operator. .................................. ایتبارنئیآرپرٹیےہ۔
آرپرٹی ک117
سٹقن
(A) Division (B) Addition عمج ()ب کمی ()افل
(C) Subtraction (D) Multiplication رضیب ()د یفنم ()ج
.................................. operator calculates the sum of
118 two operands. .................................. آرپرٹیدواورپڈنیزوکعمجرکتاےہ۔ 118
(A) Addition (B) Subtraction یفنم ()ب عمج ()افل
نقسٹ
(C) Multiplication (D) Division کمی ()د رضیب ()ج
ک،a=a+1;ٹنمٹیٹس
ےکاسھت.................................. ایریغتمیکوویلی
The statement a=a+1; is used to increase the value
119 of a variable by .................................. بئراھےنےکےیلاامعتسلیکاجیتےہ۔ 119
(A) 0 (B) -1 -1 ()ب 0 ()افل
(C) 1 (D) 2 2 ()د 1 ()ج
.................................. آرپرٹیداںیئاورپڈنیوکتباںیئاورپڈنیںیمےسرفتقی
.................................. operator will subtract right
120 operand from the left operand. رکےاگ۔ 120
(A) - (B) + + ()ب - ()افل
(C) * (D) \ \ ()د * ()ج
121 Modulus operator is .................................. ےہ۔.................................. امڈوسلآرپرٹی 121
(A) / (B) \ \ ()ب / ()افل
(C) % (D) & & ()د % ()ج
Modulus operator works on .................................. data ل
122 type. ڈاٹیتانرپاکمرکتاےہ۔.................................. امڈوسلآرپرٹی 122
(A) char (B) float float ()ب char ()افل
(C) int (D) None of these انںیمےسوکیئںیہن ()د int ()ج
.................................. چرکےنےکےیلآرپرٹیوویلیزےکدرایمنقلعتوک ک
.................................. operators compare two values
123 to determine the relationship between values. دووویلیزاکومازہنرکتاےہ۔ 123
نل ٹ
(A) Arithmetic (B) Relational ر ک کسنل ()ب ارھتکٹیم ()افل
(C) Logical (D) Assignment ااسٹنمنئ ()د یقطنم ()ج
ل نلٹ
C وگنیلجئںیمہ.................................. ڈاٹیتانرپر ک کسنلآرپرٹیزوک
C language allows us to perform relational operators
124 on .................................. data type. رپافرمرکےنیکااجزتدیتیےہ۔ 124
(A) Numeric (B) char char ()ب ونریمک ()افل
(C) Both A & B (D) float float ()د A اورB دوونں ()ج
125 .................................. operator is used as equal to. Equal to ےکےیل.................................. آرپرٹیاامعتسلایکاجتاےہ۔ 125
(A) = (B) == == ()ب = ()افل
(C) > (D) != != ()د > ()ج
126 .................................. operator is used as Not equal. Not equal ےکےیل.................................. آرپرٹیاامعتسلایکاجتاےہ۔ 126
(A) != (B) == == ()ب != ()افل
(C) < (D) = = ()د < ()ج
Greater than equal to ےکےیل.................................. آرپرٹی
.................................. operator is used as greater than
127 equal to. اامعتسلایکاجتاےہ۔ 127
(A) <= (B) >= >= ()ب <= ()افل
(C) == (D) > > ()د == ()ج
نل ٹ
Relational operators perform operations on two ر ک کسنلآرپرٹیزدواورپڈنیزرپلمعرسااجنمدےتیںیہاور
operands and return the result in
128 .................................. ںیمررٹینرکےتںیہ۔.................................. رزل 128
(A) TRUE (B) FALSE FALSE ()ب TRUE ()افل
(C) Both A & B (D) None of these انںیمےسوکیئںیہن ()د A اورB دوونں ()ج
129 A true value is represented by .................................. True وویلیوک.................................. ےساظہرایکاجتاےہ۔ 129
(A) 0 (B) 1 1 ()ب 0 ()افل
(C) 0 (D) -1 -1 ()د 0 ()ج
C چرکےنےک دواسمواتیک بئ برائریوک ک،وگنیلجئںیم
In C language, .................................. operator is used
130 to check for equality of two expressions. ےیل.................................. آرپرٹیاامعتسلایکاجتاےہ۔ 130
(A) = (B) % % ()ب = ()افل
(C) & (D) == == ()د & ()ج
تباںیئرطفےکریغتمےکےیلداںیئرطف.................................. ای
ک
Single .................................. assigns right operand to
131 the variable on left side. اورپڈنیااسنئرکتاےہ۔ 131
(A) + (B) < < ()ب + ()افل
(C) > (D) = = ()د > ()ج
آرپرٹیاامعتسلایکاجتا.................................. ےکےیلANDاللکیج
.................................. operator is used as a logical
132 AND. ےہ۔ 132
(A) & (B) && && ()ب & ()افل
(C) || (D) ! ! ()د || ()ج
133 .................................. operator is used as a logical OR. آرپرٹیاامعتسلایکاجتاےہ۔.................................. ےکےیلORاللکیج 133
(A) & (B) && && ()ب & ()افل
(C) || (D) ! ! ()د || ()ج
آرپرٹیاامعتسلایکاجتا.................................. ےکےیلNOTاللکیج
.................................. operator is used as a logical
134 NOT. ےہ۔ 134
(A) ! (B) !! !! ()ب ! ()افل
(C) || (D) && && ()د || ()ج
اکFalse&&Falseاسموات
The result of the expression False && False is
135 .................................. ےہ۔.................................. رزل 135
(A) FALSE (B) TRUE TRUE ()ب FALSE ()افل
(C) 0, 1 (D) 1, 0 1, 0 ()د 0, 1 ()ج
The result of the expression True || False is
136 .................................. ےہ۔.................................. اکرزلTrue || Falseاسموات 136
(A) FALSE (B) TRUE TRUE ()ب FALSE ()افل
ک.................................. ےہوجہکویپمکرٹرکسنیرپھچکدےنھکی
printf ای
printf is a .................................. that is used to display
202 anything on computer screen. ےکےیلاامعتسلوہتاےہ۔ 202
(A) Variable (B) Constant اکٹنٹسن ()ب ریغتم ()افل
(C) Function (D) Array ارے ()د نشکنف ()ج
ک.................................. ےہوجہکویزرےساِن ُنےنیلےک
scanf ای
scanf is a .................................. that is used to take
203 input from the user. ےیلاامعتسلایکاجتاےہ۔ 203
(A) Function (B) Variable ریغتم ()ب نشکنف ()افل
(C) Program (D) Constant اکٹنٹسن ()د رپورگام ()ج
204 Types of functions are .................................. ااسقمںیہ۔.................................. زنشکنفیک 204
(A) 2 (B) 3 3 ()ب 2 ()افل
(C) 4 (D) 5 5 ()د 4 ()ج
205 Type(s) of function is/are .................................. .................................. نشکنفیکااسقمںیہ۔ 205
(A) Built-in function (B) User defined function ویزرڈافیڈنئنشکنف ()ب ِبب۔اِننشکنف ()افل
(C) Both A & B (D) Array ارے ()د A اورB دوونں ()ج
The example(s) of built-in function is/are
206 .................................. .................................. اثمںیلںیہ۔/ِبب۔اِننشکنفیکاثمل 206
(A) printf (B) scanf scanf ()ب printf ()افل
(C) Both A & B (D) Loop لپ ()د A اورB دوونں ()ج
ُ
رپورگارمیکرطفےسڈافینئےیکےئگ
The functions which are defined by a programmer
207 are called .................................. functions. زنشکنفالہکےتںیہ۔.................................. زنشکنف 207
(A) Built-in (B) User defined ویزرڈافیڈنئ ()ب ِبب۔اِن ()افل
(C) Both A & B (D) None of these انںیمےسوکیئںیہن ()د A اورB دوونں ()ج
208 Advantage(s) of functions .................................. : زنشکنفےکوفادئںیہ208
ئ
(A) Reusability (B) Separation of tasks رپیسنشیآفتاسکس ()ب ریویزا بنکلٹ کٹی ()افل
ئ
(C) Readability (D) All of these ہیامتم ()د یا بنکلٹ کٹیِر ک ڈ ()ج
ایالبکوہتاےہوجھچکاِن
ٹنمٹیٹساک ک،.................................. ای
ک
A .................................. is a block of statements that
209 gets some inputs and provides some outputs. ُپاتیلےہاورھچکا ٔٓوٹ ُپایہمرکتاےہ۔ 209
(A) Function (B) Statement ٹنمٹیٹس ()ب نشکنف ()افل
ِسگٹ کجٹ
(C) Return value (D) Function signature نشکنف رر ()د ررٹینوویلی ()ج
Inputs of a function are called .................................. of
210 the function. الہکتاےہ۔.................................. نشکنفاکاِن ُننشکنفاک210
(A) Function (B) Parameters ک
ریپامرز ()ب نشکنف ()افل
ِسگٹ کجٹ
(C) Return value (D) Function signature نشکنف رر ()د ررٹینوویلی ()ج
Output of the function is called its
211 .................................. الہکتاےہ۔.................................. نشکنفاکا ٔٓوٹ ُنااکس211
(A) Function (B) Parameters ک
ریپامرز ()ب نشکنف ()افل
ِسگٹ کجٹ
(C) Return value (D) Function signature نشکنف رر ()د ررٹینوویلی ()ج
اینشکنفےکیئک ک
رگم،ریپامرزوہتکسںیہ ک
A function can have multiple parameters, but it
212 cannot return more than .................................. values. ےسزتکادہوویلیزررٹینںیہنرکاتکس۔.................................. ہی 212
(A) 1 (B) 2 2 ()ب 1 ()افل
(C) 3 (D) 4 4 ()د 3 ()ج
نسٹ
(A) Constants (B) Functions زنشکنف ()ب اک نٹس ()افل
(C) Variables (D) Parameters ک
ریپامرز ()د ریغتمات ()ج
SHORT QUESTIONS
1 Define IDE. یکرعتفیرکںی۔IDE 1
ل
2 Define compiler. اپمکئر یکرعتفیرکںی۔ 2
3 Define reserved words. ذریخہاافلظ یکرعتفیرکںی۔ 3
4 Define main section of a program. تباڈیےکنیمنشکیس یکرعتفیرکںی۔ 4
ل
5 Define char data type. ڈاٹیتان یکرعتفیرکںی۔char 5
6 Define computer program. ویپمکرٹرپورگام یکرعتفیرکںی۔ 6
7 Define software. اسٹفورئی یکرعتفیرکںی۔ 7
8 Define computer programming. ویپمکرٹرپورگاگنم یکرعتفیرکںی۔ 8
9 Define programmer. رپورگارم یکرعتفیرکںی۔ 9
ل
10 Define programming languages. رپورگاگنم ب
وگنیلئر یکرعتفیرکںی۔ 10
11 Who developed C language and when? وگنیلجئسکےناوربکااجیدیک؟C 11
12 IDE stands for what? سکاکففخمےہ؟IDE 12
یکوصخایصت کIDEای
IDEsرپورگاگنمےکےیلھچکدایتسبCرحتئررکںی۔زین ک
Write the characteristics of an IDE. Also write some
13 available IDEs for C programming. ںیھکل۔ 13
14 What is text editor? ٹسکیٹ کایڈرٹیایکےہ؟ 14
ل
15 What does a compiler do? اپمکئایکرکتاےہ؟
ر 15
سنٹ
16 Define syntax. نکسیکرعتفیرکںی۔ 16
سنٹ
17 Define syntax error. نکس کائرریکرعتفیرکںی۔ 17
18 What are keywords? Write some examples. ذریخہاافلظایکںیہ؟ھچکاثمںیل ک ر
رحتئرکںی۔ 18
19 What do you know about link section of a C program? رپورگامےکِل ِنشکیسےکتبارےںیمایکاجےتنںیہ؟Cآپ 19
20 What are header files? ڈیہرافزلئایکںیہ؟ 20
21 What does the include statement do? ٹنمٹیٹسایکرکیتےہ؟include 21
سن
22 Write the general syntax of include statement. ٹنمٹیٹساکرنجل ٹنکس کinclude
رحتئررکںی۔ 22
What do you know about body of main() function of a
23 C program? نشکنفیکتباڈیےکتبارےںیمآپایکاجےتنںیہ؟main() رپورگامےکC 23
سنٹ
ایوپاٹنئ ک
رحتئر وگنیلجئرپورگاموکدرس نکسےکاسھتےنھکلےکےیلوکیئ کC
Write any one point to write syntactically correct C
24 language program. رکںی۔ 24
کم
25 What are comments? نٹسایکںیہ؟ 25
ک
26 Write purpose of using comments in C program. رپورگامںیم منٹساامعتسلرکےناکدصقم کC
رحتئررکںی۔ 26
How many types of comments are there in C کم
27 language? وگنیلجئںیم نٹسایکینتکااسقمںیہ؟C 27
28 Define single-line comments. لگنسالنئکیکرعتفیرکںی۔ 28
29 Define multi-line comments. یٹلمالنئک یکرعتفیرکںی۔ 29
Differentiate between single-line and multi-line کم
30 comments. لگنسالنئاوریٹلمالنئ نٹسںیمفرقایبنرکںی۔ 30
Write a program that shows your first name in رحتئررکںیوجآپےک ےلہپتاموک بئرےرحوفںیماوردورسےتاموک
ایرپورگام ک
ک
Uppercase and your last name in lower case letters
67 on screen. وھچےٹرحوفںیمرکسنیرپدِاھکےئ۔ 67
ل س ل
68 Make a table of data type and format specifier. ڈاٹیتاناورافرٹیم نٹ کسیافئراکلبیٹانبںیئ۔ 68
Write any program to show the purpose of format ل س
69 specifiers. افرٹیم نٹ کسیافئرزاکدصقمداھکےنےکےیلوکیئ ک
ایرپورگام ک
رحتئررکںی۔ 69
Write any program to show the purpose of scanf()
70 function. ایرپورگام ک
رحتئررکںی۔ نشکنفاکدصقمداھکےنےکےیلوکیئ کscanf() 70
71 Define getch() function. نشکنفیکرعتفیرکںی۔getch() 71
Write any program to show the purpose of getch()
72 function. ایرپورگام ک
رحتئررکںی۔ نشکنفاکدصقمداھکےن ےکےیلوکیئ کgetch() 72
73 Write about formation of escape sequence. انکسکی کٹوکیسسنئیک افرنشیمےکتبارےںیم ک
رحتئررکںی۔ 73
74 Make a table of escape sequences. انکسکی کٹوکیسزسنئاکلبیٹانبںیئ۔ 74
75 How to create a new line in C program? Define. رپورگامںیموینالنئےسیکانبےتںیہ؟رعتفیرکںی۔C 75
76 Write any program to show the purpose of \n. \اکدصقمداھکےنےکےیلرپورگام ک رn
رحتئرکںی۔ 76
77 What is the purpose of \t in C? \ اکدصقمایکےہ؟t ںیمC 77
78 Write any program to show the purpose of \t. ایرپورگام ک
رحتئررکںی۔ \اکدصقمداھکےن ےکےیلوکیئ کt 78
79 Define operator. آرپرٹییکرعتفیرکںی۔ 79
80 How many types of operators are there? آرپرٹییکینتکااسقمںیہ؟ 80
81 Define assignment operator. ااسٹنمنئآرپرٹییکرعتفیرکںی۔ 81
Write any program to show the purpose of
82 assignment operator. ایرپورگام ک
رحتئررکںی۔ ااسٹنمنئآرپرٹیاکدصقمداھکےن ےکےیلوکیئ ک 82
83 Define arithmetic operator. ارِھتکٹیمآرپرٹییکرعتفیرکںی۔ 83
84 Define the purpose of division operator. ک
ڈویئرنآرپرٹیےکدصقمیکرعتفیرکںی۔ 84
نلنککٹ
85 Define the purpose of multiplication operator. یٹلم کسںآرپرٹیےکدصقمیکرعتفیرکںی۔ 85
ایاسڈیئیکابملیئاکاِن ُنےلاوررمعب
ایرمعبےک ک ایرپورگام ک
رحتئررکںیوج ک ک
Write a program that takes as input the length of one
ک
ےک رےبقوک نکلکوٹیلرکںی۔
86 side of a square and calculates the area of square. 86
87 Write the purpose of addition operator. کایڈنشیآرپرٹیاکدصقم ک
رحتئررکںی۔ 87
88 Write the purpose of subtraction operator. یفنےکآرپرٹیاکدصقم ک
رحتئررکںی۔ 88
نل ٹ
89 Define relational operators. ر ک کسنلآرپرٹیزیکرعتفیرکںی۔ 89
Make a complete table of relational operators with نل ٹ
90 their description. ر ک کسنلآرپرٹیزاک ایکنلیصفتےکاسھتلمکملبیٹانبںیئ۔ 90
Make a table of relational expression, explanation and نل ٹ
91 their result. واضحاوراےکناتنجئاکلبیٹانبںیئ۔،ر ک کسنلارپسکینشی 91
92 Define equal to operator. ==یکرعتفیرکںی۔ 92
Differentiate between assignment and equal to
93 operator. =اور==ںیمفرقایبنرکںی۔ 93
94 Define logical operators. یقطنمآرپرٹیزیکرعتفیرکںی۔ 94.
Make a table of logical operators with their
95 description. یقطنمآرپرٹیزاک ایکنلیصفتےکاسھتلبیٹانبںیئ۔ 95
96 Define AND operator. آرپرٹییکرعتفیرکںی۔AND 96
97 Make a truth table for AND operator. آرپرٹیاکرٹوھتلبیٹانبںیئ۔AND 97
98 Define OR operator. آرپرٹییکرعتفیرکںی۔OR 98
99 Make a truth table for OR operator. آرپرٹیاکرٹوھتلبیٹانبںیئ۔OR 99
سنٹ ل
133 Write the general syntax of array initialization. ارےانٹکسلائرنشیاکرنجل نکس ک ر133
رحتئرکںی۔
LONG QUESTIONS
1) Write the steps to create a C program file in the IDE of
your lab computer. رپورگامافلئوکانبےنےکےیلرمالح کCںیمIDEاےنپبیلویپمکرٹےک
رحتئررکںی۔ )1
ل
2) Describe the purpose of a compiler. اپمکئاکدصقمایبنرکںی۔
ر )2
رپورگاگنموگنیلجئںیموکیئےسسیب ذریخہاافلظCذریخہاافلظیکرعتفیرکںی۔اور )3
3) Define reserved words. Also list down any
twenty reserved words in C programming language. ک
رحتئررکںی۔
13) Write the structure of if statement with brief description. ٹنمٹیٹساکرٹسرچکلیصفتےکاسھت کif )13
رحتئررکںی۔
14) Write the structure of if-else statement with brief
description. ٹنمٹیٹسےکرٹسرچکوکلیصفتےکاسھت ک رif-else )14
رحتئرکںی۔
) آپ ک15
ایارےوکےسیکڈرئیلکرکتکسںیہ؟ارےڈریلکنشیےکنیتےصحلیصفتےسایبن
15) How can you declare an array? Briefly describe the three
parts of array declaration. رکںی۔