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. 10 1

Unit No. 10 (Input and Output)
Q.1. Define standard input.
The process of giving something to computer is known as input.
‫ویپمکرٹوکھچکدےنیےکلمعوکانٹپاہکاجاتےہ۔‬
The input is mostly given by keyboard.
‫انٹپزایدہرتیکوبرڈےکذرےعیدایاجاتےہ۔‬
The term standard input refers to the input via keyboard.
‫ایعمریانٹپیکاالطصحیکوبرڈےکذرےعیانٹپےسرمادےہ۔‬
Q.2. List some important functions for input.
Ans: scanf( ) gets( ) getch( ) getche( )

Q.3. What is meant by standard output?
The process of getting something from computer is known as output.
‫ویپمکرٹےسھچکاحلصرکےنےکلمعوکآؤٹٹپاہکاجاتےہ۔‬
The output is mostly displayed on monitor.
‫آؤٹٹپزایدہرتامرٹینرپاظرہوہاتےہ۔‬
The term standard output refers to the output displayed on monitor.
‫ایعمریآؤٹٹپیکاالطصحامرٹینرپداھکےئاجےنواےلآؤٹٹپےسرمادےہ۔‬
The result of a program is the output of that program.
‫یسکرپورگاماکہجیتناسرپورگاماکآؤٹٹپوہاتےہ۔‬
Q.4. Write names of two output functions. Where are they stored?
Two output functions are printf( ) and puts( ).
‫()۔‬ftrp‫()اور‬ftiirf‫دوآؤٹٹپنشکنفںیہ‬
They are stored in the header file stdio.h.
‫ںیموفحمظںیہ۔‬prdidth‫وہڈیہرافلئ‬
Q.5. What is the use of “printf” function? Write its syntax.
The printf function is used to display output on the monitor.
‫نشکنفامرٹینرپآؤٹٹپوکاظرہرکےنےکےیلاامعتسلایکاجاتےہ۔‬printf
It can display text, constants or values of variables on screen in specified format.
‫لقتسمایریغتماتیکدقروںوکاظرہرکاتکسےہ۔‬،‫ہیوصخمصافرٹیمںیمرکسنیرپنتم‬
The syntax of printf function is:
:‫نشکنفاکوحنہیےہ‬printf
printf(Format String, argument_list);
Q.6. What is control string in printf function?
The control string is given in double quotes.
‫رٹنکولرٹسگنڈلبوکسٹںیمدییئگےہ۔‬
It may consist of Text, Format specifiers, Escape sequences and Parameters.
‫رفاریکرتبیتاورریپارٹیمزاشلموہےتکسںیہ۔‬،‫افرٹیمسپیکیفارئ‬،‫اسںیمٹسکیٹ‬




Composed by: M. Umair Nasir

, Unit No. 10 2

Q.7. What is use of format specifiers in C language?
Format specifier is used to specify the format according to which values will be read and
displayed.
‫افرٹیمسپیفارئاکاامعتسلاسافرٹیمیکواضتحرکےنےکےیلایکاجاتےہسجےکباط قادقاروکھڑ ااورداھکایاجےئا۔‬
It determines the data type of variable, field width and format of the value.
‫ڈلیفیکوچڑایئاوردقریکلکشاکنیعترکاتےہ۔‬،‫ہیریغتمےکڈاٹییکمسق‬
Q.8. Why format specifiers are important to be specified in I/O operations?
The format specifiers are important to be specified in I/O Operations.
‫آرپزنشیںیمافرٹیمیکواضتحرکےنواولںیکواضتحرضوریےہ۔‬O/I
They inform the compiler about the type of data in a variable during input using scanf( ) or
printing using printf( ).
‫()اکاامعتسلرکےتوہےئرپگنٹنےکدورانرمبترکےنواےلوکریغتمںیمڈاٹییکمسقےکابرےںیمعلطمرکےتںیہ۔‬ftiirf‫()اکاامعتسلرکےتوہےئای‬pcaif
Q.9. Write down the name and purpose of any two format specifiers.
Two format specifiers include integer format specifier %d and character format specifier %c.
‫نپی‬
‫اشلمںیہ۔‬c%‫اوررکرٹکیافرٹیمسپیفارئ‬d%‫دوافرٹیمسپیکیفارئزںیما جرافرٹیمسپیفارئ‬
The format specifier %d is used to read or print a decimal integer.
‫وکااشعرہیدعدوکھڑےنھایرپٹنرکےنےکےیلاامعتسلایکاجاتےہ۔‬d%‫افرٹیماسپیفارئ‬
The character format specifier %c is used to read or print a single character.
‫یسکاکیرکرٹکیوکھڑےنھایرپٹنرکےنےکےیلاامعتسلوہاتےہ۔‬c%‫رکرٹکیافرٹیماسپیفارئ‬
Q.10. Which symbol is used to start format specifiers?
Format specifiers are started with the symbol %.
‫ےسرشوعایکاجاتےہ۔‬%‫افرٹیمیکواضتحرکےنواولںوکالعتم‬
Q.11. List three types of format specifiers?
Three types of format specifiers are integer format specifier, character format specifier and
floating-point format specifier.
‫نپی‬
‫رکرٹکیافرٹیمسپیفارئاورولفگنٹوپاٹنئافرٹیمسپیفارئ۔‬،‫نیتمسقےکافرٹیمسپیکیفارئںیہا جرافرٹیمسپیفارئ‬
Q. 12. List five format specifiers for integer values.
Five format specifiers for integer values are %d, %i, %o, %u, and %x.
‫نپی‬
‫۔‬x%‫اور‬،t%،d%،i%،d%‫ا جروویلیےکےیلاپچنافرٹیماسپیفارئزںیہ‬
Q.13. List three format specifiers for floating-point values.
Three format specifiers for floating-point values %f, %e and %g.
‫ےکےیلنیتافرٹیماسپیفارئز۔‬g% ‫اور‬e%،f%‫ولفگنٹوپاٹنئوویلی‬
Q.14. List the format specifiers for character values.
The format specifiers for character values are %c and %s.
‫ںیہ۔‬p%‫اور‬c%‫رکرٹکیوویلیزےکےیلافرٹیمیکواضتحرکےنواےل‬
Q.15. Write the purpose of %c and %d format specifiers.
The format specifier %c is used for single character values.
‫وادحرکرٹکیوویلیزےکےیلاامعتسلوہاتےہ۔‬c%‫افرٹیمیکواضتحدننکہ‬
The format specifier %d is used for signed decimal integer value.
‫دطختسدشہااشعرہیدعدیدعدےکےیلاامعتسلوہاتےہ۔‬d%‫افرٹیماسپیفارئ‬




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