Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Best Computer Notes for 12th Grade - All Chapters Solved

Beoordeling
-
Verkocht
-
Pagina's
7
Cijfer
A+
Geüpload op
08-04-2026
Geschreven in
2025/2026

"These are high-quality, easy-to-understand notes for 12th class students. The content is written in Urdu and English to help students understand easily. They cover all important board topics and long Questions to help you get maximum marks in exams."

Meer zien Lees minder

Voorbeeld van de inhoud

Unit No.11 1


Part 1: Theoretical Questions
Q.1. what is control structure?
A statement used to control the flow of execution in a program or function is called control
structure.
‫یسکرپورگالاینشکنفںیملمعدرآدمےکاہبؤوکرٹنکوكرکےنےکےیلاامعتسكوہےنواالایبمرٹنکوكڈاھہچنالہکاتےہ۔‬
The control structures in C are used to combine individual instruction into a single logical
unit.
‫ںیمرٹنکوكڈاھےچنوکارفنادیدہاایتوکاکیوادحیقطنمااکیئںیموجڑےنےکےیلاامعتسكایکاجاتےہ۔‬C
The logical unit has one entry point and one exit point.
‫یقطنمویٹنںیماکیارٹنیوپاٹنئاوراکیازگیٹوپاٹنئوہاتےہ۔‬
Q.2. List different types of control structures for writing programs.
The basic control structures for writing programs are sequence structure, selection structure
and repetition structure.
‫ااختنبیکاستخاوررکتاریکاستخںیہ۔‬،‫رپورگالےنھکلےکےیلاینبدیرٹنکوكڈاھہچنرتبیتیکاستخ‬
Q.3. Write three selection statements and three repetition statements.
The selection statements are if, if-else and switch.
‫ںیہ۔‬switch‫اور‬if, if-else‫ااختنبےکایبانت‬
The repetition statements are while, do-while and for.
‫ںیہ۔‬for‫اور‬do-while،while‫درہاےئاجےنواےلایبانت‬
Q.4. When you must use curly braces { } with a selection or repetition statement?
The curly braces are required if selection or repetition statement has multiple statements in
body.
‫وھگرھگبایلینحنموطخطودحاینیکرضورتےہارگااختنبایرکتارایبمےکابڈیںیمدعتمدایبانتوہں۔‬
Q.5. How are instructions executed in sequence structure?
In sequence structure, the instructions are executed in the same order in which they are
specified in the program.
‫دہاایتوکایسرتبیتںیمانذفایکاجاتےہسجںیموہرپورگالںیمایبمےیکےئگںیہ۔‬،‫رتبیتےکڈاھےچنںیم‬
The control flows from one statement to other in a logical sequence.
‫رٹنکوكیقطنمرتبیتںیماکیایبمےسدورسےںیماتہبےہ۔‬
Q.6. Define flowchart.
A flowchart is the graphical representation of a program.
‫ولفاچرٹاکیرپورگالیکوصترییامندنئیگےہ۔‬
Q.7. What is a condition?
A condition is an expression that evaluates to true (1) or false (0).
‫)اکادنازہرکاتےہ۔‬0(‫)ایطلغ‬1(‫رشطاکیااسیااہظرےہوجدرتس‬
Q.8. Which structure is used to execute a statement repeatedly?
A repetition structure executes a statement or set of statements repeatedly.
‫رکتاراکڈاھہچناکیایبمایایبانتےکٹیسوکابرابرااجنلداتیےہ۔‬
It is also known as iteration structure or loop.
‫اےسرکتارڈاھہچنایولپےکانلےسیھباجاناجاتےہ۔‬



Composed by: M. Umair Nasir

, Unit No.11 2


The repetition Structures include for loop, while loop and do-while loop.
‫ل ہکولپاوررکو ول ولپلمہ ںیہ۔‬،‫رکتارےکڈاھےچنںیمولپےکےیل‬
Q.9. How does a selection structure select a Statement to execute?
A selection structure selects a Statement or set of statements to execute on the basis of a
condition.
‫ااختنباکڈاھہچنیسکرشطیکاینبدرپلمعرکےنےکےیلاکیایبمایایبانتاکٹیسبختنمرکاتےہ۔‬
In this structure, a statement or set of statements is executed when a particular condition is
true and ignored when the Condition is false.
‫اکیایبمایایبانتاکومجمہعاسول لمعںیمالایاجاتےہبجوکیئاخصرشطدرتسوہیتےہاوربجرشططلغوہیتےہوتاےس رظادنازایکاجاتےہ۔‬،‫اسڈاھےچنںیم‬
Q.10. What do you know about “if” statement?
if is a keyword in C language.
‫یسزابمںیمدیلکیظفلےہ۔‬if
if statement is a decision-making statement.
‫ایبمہلصیفاسزیاکایبمےہ۔‬if
It is the simplest form of selection Constructs.
‫ہیااختنبرٹسنکسٹکیکبسےسآاسملکشےہ۔‬
It is used to execute or skip a statement or set of statements by checking a condition.
‫ہییسکرشطیکاجچنرکےکایبمایایبانتےکٹیسوکااجنلدےنیایوھچڑےنےکےیلاامعتسكوہاتےہ۔‬
Q.11. Define compound statement.
A set of statements written in curly brackets {} is called compound statement.
‫وھگرھگبایلوطخطودحاینںیمےھکلےئگایبانتاکومجمہع{}رمبکایبمالہکاتےہ۔‬
Q.12. What is the use of “if-else” statement?
if-else statement is another type of if Statement.
‫ایبمیکاکیاورمسقےہ۔‬if‫ ایبم‬if-else
It executes one block of statement(s) when the condition is true and the other when it is false.
‫ہیایبانتےکاکیالبکوکاسول ااجنلداتیےہبجرشطدرتسوہاوردورسابجہیطلغوہ۔‬
In any Situation, one block is executed and the other is skipped.
‫اکیالبکوکاھپیسندیاجیتےہاوردورسےوکوھچڑدایاجاتےہ۔‬،‫یسکیھبوصرتاحكںیم‬
Q.13. Write the Syntax of “if-else” statement.
if(condition)
statement;
else
statement;
Q.l4. What is the use of “if-else-if” statements?
if-else-if statement can be used to choose one block of statements from many blocks of
statements.
‫اٹنمٹیٹسوکایبانتےکیئکالبسکںیمےسایبانتےکاکیالبکوکبختنمرکےنےکےیلاامعتسكایکاج اتکےہ۔‬if-else-if
It is used when there are many options and only one block of statements should be executed
on the basis of a condition.
‫ہیاسول اامعتسكوہاتےہبجتہبےساایتخراتوہںاوررشطیکاینبدرپایبانتےکرصفاکیالبکوکلمعںیمالایاجےئ۔‬



Composed by: M. Umair Nasir

Geschreven voor

Documentinformatie

Geüpload op
8 april 2026
Aantal pagina's
7
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
$8.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
umaircourses123

Maak kennis met de verkoper

Seller avatar
umaircourses123
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
1 maand
Aantal volgers
0
Documenten
36
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen