0% found this document useful (0 votes)
8 views

10th Class Computer T9

Uploaded by

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

10th Class Computer T9

Uploaded by

roshaanahmad91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

AL-HADI SCHOOL AND SCIENCE ACADEMY

Main Dullu Khurd Near Rescue 1122 Feroz Pur Road


Lahore 0322 478 8317
Name: Roll #: Subject: Computer-10 Test #: 2794832
Test Detail: Type 9 - Full Marks Test - Total=50 Time:
Syllabus: U-1, U-2, U-3, Date: 03-Feb-2025

1. A B C D 4. A B C D 7. A B C D 10. A B C D
2. A B C D 5. A B C D 8. A B C D
3. A B C D 6. A B C D 9. A B C D
‫تس‬
1- Circle the correct answer. (10x1=10)
‫وجابےکرگددارئہاگلںیئ۔‬ ‫در‬ -1
1. .1
A software that facilitates programmers in writing computer programs is known as ______. ‫اکی اسٹفورئیوجرپورگارموکویپمکرٹرپورگامےنھکلںیمدمدداتیےہ____الہکاتےہ۔‬
(D) (C) (B) (A)
a debugger ‫ڈرگبی‬ an IDE IDE an editor ‫اڈیرٹی‬ a compiler ‫اپمکرلئ‬
2. .2
The Extension of the Header File is: ‫ڈیہرافلئیکانشنیٹسکیوہیتےہ۔‬
(D) (C) (B) (A)
.hdr .h .cpp .c

‫دےیئےئگوکڈیکآؤٹٹپ ایکوہیگ؟‬
3. .3
Find out the output of the code:

int a=18/(15-3 x 2) int a=18/(15-3 x 2)


(D) (C) (B) (A)
6 6 4 2

4. .4
It is a very common mistake to forget _____ operator in the scanf function. ‫ نشکنفںیم_______ٓارپرٹیوکوھبلاجانتہباعمیطلغےہ۔‬scanf
(D) (C) (B) (A)
$ * % &

‫درجذلیوکڈیکآؤٹٹپ نشکنفےہ؟‬
5. .5
What will be the output of following code?

printf(“%d”,3<4);

(D) (C) (B) (A)


1 3 4 0

6. .6
The expression 13%3 has answer: ‫اکوجابےہ۔‬3%13‫ارپسکینشی‬
(D) (C) (B) (A)
13 5 3 1

7. ‫یل شن‬ .7
_____ relational operator is used for equal in C language. ‫یسوگنیلجئںیمرباربےکےئلاامعتسلوہاتےہ۔‬،‫____ر ی لآرپرٹی‬
(D) (C) (B) (A)
>= != == =

8. .8
Which control structure executes the statement in order? ‫وکناسرٹنکولرٹسرچکدہاایتوکرتبیتےسالچاتےہ؟‬
‫یل شن‬ ‫ئنش‬
‫ری ل‬
(D) (C) (B) (A)
Relational Selection ‫نشکیلس‬ Repetition ‫رکتار‬ Sequential ‫وکیس ل‬

9. ‫سٹیٹمنٹ‬ .9
:‫ااسقمںیہ‬/‫سیکمسقےہ‬ ‫۔وگنیلجئںیمرٹنکول‬C
(D) (C) (B) (A)
4 3 2 1

10. .10
In If Else statement keyword IF is followed by a condition insdie: ‫ یکورڈےکدعب____ےکادنروکیسنڈنکنشیآیتےہ؟‬If‫ ٹنمٹیٹسےکڈاھےچنںیم‬If Else
(D) (C) (B) (A)
][ }{ )( ><
AL-HADI SCHOOL AND SCIENCE ACADEMY
Main Dullu Khurd Near Rescue 1122 Feroz Pur Road
Lahore 0322 478 8317
Name: Roll #: Subject: Computer-10 Test #: 2794832
Test Detail: Type 9 - Full Marks Test - Total=50 Time:
Syllabus: U-1, U-2, U-3, Date: 03-Feb-2025

(Part-I ‫)ہصحاول۔‬
2- Answer any 4 short questions. (4x2=8)
.‫وساالتےکرصتخموجاابتےئھکل‬4‫وکیئےس‬ -2
i. ‫تح‬ .i
Describe the purpose of a compiler. ‫اپمکرلئےکدصقمیکواض رکںی۔‬
ii. ‫نٹ‬ .ii
What is an Integrated Development Environment (IDE)? ‫ا یگرڈٹیڈویٹنمپلیاونارئٹنمایکوہاتےہ؟‬
iii. .iii
Describe the reason behind compiler error in a C-language program. ‫۔وگنیلجئےکرپورگامںیماپمکرلئاریرآےنیکوہجایبنےیجیک۔‬C
iv. .iv
Find out the error from the following code. ‫درجذلیوکڈںیمےساریرالتشےئجیک۔‬
include<stdio.h>
v.
‫سن ٹ‬ .v
Can a program with syntax errors be complied? ‫رپورگامںیمارگ یکساریرزوہںوتایکاےساپمکلئاہکاجاتکسےہ؟‬
‫ن‬
vi. ‫س ی ٹ لک‬ .vi
Write syntax to declare a float variable. ‫ولفٹڈاٹیاٹپئ اکریغتمڈرئیلکرکےناک کس ھیے۔‬
3- Answer any 4 short questions. (4x2=8)
.‫وساالتےکرصتخموجاابتےئھکل‬4‫وکیئےس‬ -3
i. .i
What is the difference between pintf() and scanf() ? ‫ںیمایکرفقےہ؟‬ scanf() ‫اور‬ pintf()

‫اسوکڈیکآؤٹٹپ ایکوہیگ؟‬
ii. .ii
What will be the output of this code?

void main()
{
printf ("Pakistan\ n Punjab\n ");
printf ("Pakistan\n Punjab");
}
iii. .iii
Identify errors in the following code: ‫دنمرہجذلیوکٹںیماریرالتشرکںی۔‬
printf (“Hello )
printf ( world);
iv. .iv
Solve the given Expression. 4 + 7 * (10 - 5) )5-10(*7+4‫دییئگارپسکینشیوکلحےیجیک۔‬
v. .v
Identify errors in the following code: ‫دنمرہجذلیوکڈںیماریرالتشرکںی۔‬
for (int x = 0; x<4; x+)
Printf (%d”, x);
vi. .vi
What is the difference between unary operators and binary operators? ‫ویرنیآرپرٹیزاورابرنئیآرپرٹیزںیمایکرفقےہ؟‬
4- Answer any 4 short questions. (4x2=8)
‫ےکرصتخموجاابتےئھکل۔‬4‫درجذلیوساالتںیمےس‬ -4
i. .i
What is meant by Control Statements? ‫رٹنکولٹنمٹیٹسےسایکرمادےہ؟‬
ii. ‫ئنش‬ .ii
Write the difference between sequential and selection statement. ‫وکیس لاورنشکیلسٹنمٹیٹسںیمرفقایبنےئجیک۔‬
iii.
‫نٹ‬ .iii
Write Syntax of “if else” statement. ‫ ٹنمٹیٹساکسی یکسےئھکل۔‬if-else
‫ےئی‬
‫د ےئگوکڈیکآٗوٹٹپ ایکوہیگ؟‬
iv. .iv
What will be the Output of the given code?

int i = 5;
int j = 4;
if (i == j)
printf (“i and j are not equal”);
else
printf (“i and j are equal”);
v. .v
Identify the errors in the following code. ‫دنمرہجذلیوکڈںیماریرزالتشےئجیک۔‬
if (a < b &&< c);
sum= a+b+c
else
multiply = a*b*c ;
vi. .vi
Write down output of the following code. ‫درج ذیل کوڈ کا آؤٹ پٹ لکھیں۔‬

int m = 7
if (m > = 10 )
printf ("Fast");

(Part - II - ‫)ہصحدوم‬
Attempt any two questions: (2x8=16)
‫)وساالتےکوجاابتےئھکل۔‬2(‫وکیئےسدو‬
5
Write the steps to create a C program file in the IDE of your lab computer. ‫ رپورگامافلئانبےنےکرمالحںیھکل۔‬C-‫ ںیم‬IDE‫اینپبیلےکویپمکرٹںیموموجد‬ 5
‫تح‬
‫ وگنیلجئںیماامعتسلوہےنواےلفلتخمافرٹیمسپسیفارئزیکاثمولںےسواض‬C‫افرٹیمسپسیفارئیکرعتفیےئجیک۔‬
6
Define format specifier. Explain different formatspecifier used in C-language with examples. ‫ےئجیک۔‬ 6
7
Write the structure of if statement with brief description. 7
AL-HADI SCHOOL AND SCIENCE ACADEMY
Main Dullu Khurd Near Rescue 1122 Feroz Pur Road
Lahore 0322 478 8317
Name: Roll #: Subject: Computer-10 Test #: 2794832
Test Detail: Type 9 - Full Marks Test - Total=50 Time:
Syllabus: U-1, U-2, U-3, Date: 03-Feb-2025

TEST TYPE WITH ANSWERS KEY


1 2 3 4 5 6 7 8 9 10
C C A A D A B A C B

You might also like