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

10th Computer 2nd Half

The document outlines an examination paper for 10th-grade students at Bab-ul-Ilm Academy, focusing on Computer Science. It includes multiple-choice questions, short answer questions, and detailed programming tasks, covering chapters 3 and 4 of the syllabus. The exam is structured to assess students' understanding of control structures, arrays, and basic programming concepts in C language.

Uploaded by

haseebahmad5479
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)
7 views

10th Computer 2nd Half

The document outlines an examination paper for 10th-grade students at Bab-ul-Ilm Academy, focusing on Computer Science. It includes multiple-choice questions, short answer questions, and detailed programming tasks, covering chapters 3 and 4 of the syllabus. The exam is structured to assess students' understanding of control structures, arrays, and basic programming concepts in C language.

Uploaded by

haseebahmad5479
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/ 2

BAB-UL-ILM ACADEMY (SCIENCE & COMMERCE)

MAIN SUI GAS ROAD NEAR NADRA OFFICE SHARAQPUR KHURD KOT ABDUL MALIK

Student Name Roll Num Class Name Paper Code

10TH

Subject Name Time Allowed Total Marks Exam Date

Computer 50

Exam Syllabus

CHAP 3 , CHAP 4 (2nd Half)

Q1. Choose the correct answer. 1X10=10

1. Sequential control is the ...... control structure in C- (A) Selection (B) (C) Relation (D) Default

language. Repetition

2. Which control structure repeats a set of statement for a (A) (B) (C) Selection (D) Relation

number of times? Sequential Repetition

3. Which of the following is a selection statements? (A) if (B) for (C) while (D) do while

4. Which symbol is used if to enter the condition? (A) [ ] (B) " " (C) { } (D) ( )

5. C programming language also provides ...... to deal with (A) (B) (C) (D)

conditions. Upper case Lower case Switch case All of these

structure structure structure

6. The index of an element in array is written within ...... (A) < > (B) [ ] (C) ( ) (D) { }

7. ...... is the output of the following code: (A) 0 (B) -1 (C) 1 (D) 3

int n {4} = {8,7,6,3}

printf ("%d", n[3]);

8. If the size of an array is 50, the range of indexes will be ...... (A) 0-50 (B) 0-49 (C) 1-49 (D) 1-50

9. What will be the output of this code? (A) Punjab (B) Pun (C) Pak (D) Pakistan

voidabc ( )

printf("Punjab");

10. Each run of a loop is called: (A) Cycle (B) Iteration (C) Duration (D) Test

Q2. Write short answers of the following questions. (Any 12) 2X12=24

I . How many type of control statements in C language? II . What is sequential statements?

III . Draw a flowchart to show the basic flow of an if statement. IV . Draw a flowchart to show the structure of if-else

statement.

V . What is condition in if statement structure? VI . Describe general structure of the if-else statement.

VII . What is common mistake in compound statement? VIII . What is Switch-Case structure?
IX . What is the output of the following? X . Find the errors.

int a = 3, b=5; int age = 20;

a=a+b; if(age>18);

if (a>8 && b<8) printf("Elder");

b=a+b;

printf("a=%d,b=%d", a,b);

XI . Write the general syntax of array initialization. XII . Differentiate between array declaration and array

initialization.

XIII . Write the example of the declaration of a float type array XIV . Declare an array of float type to store marks of 40

that holds marks of ten students. students.

XV . How is an array element accessed? XVI . How to read values from arrays using loops?

XVII . Describe the structure of for loop. XVIII . Define nested loop structure.

Q3. Write detailed answers of the following questions. 8X2=16

1. Write a program that takes the value of body temperature of 2. Write a program that displays larger one out of the three

a person as an input and displays “You have fever.” If body given numbers.

temperature is more than 98.6 otherwise displays “You don’t

have fever.”

You might also like