10th Computer 1st Half
10th Computer 1st Half
MAIN SUI GAS ROAD NEAR NADRA OFFICE SHARAQPUR KHURD KOT ABDUL MALIK
10TH
Computer 50
Exam Syllabus
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
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)
8. Inputs of a function are called ...... of the function. (A) (B) block (C) (D)
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
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?
1. Explain data type in C language. 2. Explain the use of printf() and scanf() in C language with
example.