0% found this document useful (0 votes)
7 views2 pages

10th Computer 1st Half

The document outlines an exam for 10th-grade students at Bab-ul-Ilm Academy, focusing on Computer Science with a total of 50 marks. It includes multiple-choice questions, short answer questions, and detailed answer questions covering various topics in C programming. The exam syllabus consists of chapters 1, 2, and 5, and the document specifies the structure and content of the exam.

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 views2 pages

10th Computer 1st Half

The document outlines an exam for 10th-grade students at Bab-ul-Ilm Academy, focusing on Computer Science with a total of 50 marks. It includes multiple-choice questions, short answer questions, and detailed answer questions covering various topics in C programming. The exam syllabus consists of chapters 1, 2, and 5, and the document specifies the structure and content of the exam.

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 1 , CHAP 2 , CHAP 5

Q1. Choose the correct answer. 1X10=10

1. In C programming, there are ...... types of comments. (A) 1 (B) 2 (C) 3 (D) 4

2. In C language ...... is used as statement terminator. (A) # (B) ; (C) % (D) &

3. It is a very common mistake to forget ...... operator in the (A) & (B) % (C) * (D) $

scanf function.

4. What will be the output of code? (A) "1" (B) "2" (C) 1 (D) 2

void abc()

printf("1/n");

5. What will be the value of variable "a" after execution of the (A) 8 (B) 8.0 (C) 8.8 (D) 8.2

following part of code?

int a=4;

float b=2.2;

a=a*b;

6. In C language, which of the following is logical operator? (A) + (B) < (C) % (D) NOT

7. The functions which are defined by a programmer are (A) (B) (C) (D)

called ...... user-defined built-in common none of

functions function function these

8. Inputs of a function are called ...... of the function. (A) (B) block (C) (D)

arguments statement parameter

9. A function can return ...... values. (A) 1 (B) 2 (C) 3 (D) 4

10. ...... is used to define the inputs and output of a function. (A) (B) main() (C) printf() (D) scanf()

function

signature

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

I . What is text editor? II . What is syntax?

III . What is syntax error? IV . What is the purpose of comments in a C program?

V . Define variable initialization. VI . What is meant by getch()?

VII . What do you know about statement terminator? VIII . What is the purpose of a modulus operator? Give an

example.
IX . What is assignment operator? Give example. X . What is the difference between unary operators and binary

operators?

XI . Write down the truth table for OR operator. XII . Solve the following expression. 6 + 5 * (3 + 2)

XIII . What is meant by divide and conquer approach? XIV . What is the general structure of a function signature?

XV . Write down advantages of functions. XVI . Write down the general structure of a function definition.

XVII . Can there are multiple return statements in a function? XVIII . What is meant by to call a function?

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

1. Explain data type in C language. 2. Explain the use of printf() and scanf() in C language with

example.

You might also like