You are on page 1of 3

FG Fazaia Public Higher Secondary School (2nd Shift) Nur Khan Base Chaklala Rawalpindi

Sendup Examination 2023- COMPUTER SCIENCE (10A/B)


Name ------------------- Date --------------------------- Group------------------------ T.M (55)

SECTION-A (Marks-13) Time Allowed (15-min)


Question A B C D A B C D
1 In Flowchart “Diamond” represents Input/Output Processing Start/ Decision
Stop
2 How many logic gates are required to 1 2 3 4
make logic gate of Boolean function
F= XZ+ YZ + XYZ
3 Which Software help in finding and Linker Text Loader Debugger
removing errors from program Editor
4 Which of the following language Machine High Level Assembly Procedural
consist of symbolic codes or Language Language Language Language
abbreviations known as mnemonics?
5 Which logic Gate is represented by AND NOR OR NAND
following function

6 Which operator has highest && <= = *


precedence
7 What is the maximum number of 3 6 8 9
input combinations in a Truth table of
3 variables
8 Find the output Computer Science Computer Compiler
Science Time Error

9 Good Bad No Syntax


Output Error

10 Evaluate 100-10/4*6+4 136 91 92 156


11 Which characters terminates a C Colon Semicolon Period Comma
Statement
12 If Structure is used in programming Repetition Input Selection Sequence
for
13 Which statement is equivalent to n++5 n=5+ n=+5 n=5++
n=n+5
FG Fazaia Public Higher Secondary School (2nd Shift) Nur Khan Base Chaklala Rawalpindi
Sendup Examination 2023- COMPUTER SCIENCE (10A/B)
Name ------------------- Date --------------------------- Group------------------------ T.M (55)

SECTION-B (Marks-22)
Attempt all parts from this section. All questions carry Equal marks (11 x 2=22)
1. What are three advantages of using flowchart?
2. Differentiate between Printf() and Scanf() Function? OR
Write output of following code
Void main()
{
Int a=5, b=3;
If((a==5) ||(b==7))
printf(“Computer”);
else
printf(“OK”);
}
3. Differentiate between syntax and semantics? Give example of each
4. What is the purpose of gets() function. Give example as well. OR
Identify mistakes in following code
void main(void
{ int a,b;
print(“Hello World\n”)
scanf(“%d,%d”,&a,b);
getch();
}
5. Draw logic circuit of Boolean function
6. Write difference between assembly language and high level language?
7. Why Comments are used in programs?
8. Flowchart to print odd numbers from 1 to 100
9. Why escape sequence is used. Give example as well? OR What is the difference between =
and ==?
10. Write following statement using conditional operator
If(marks>32)
Printf(“Congratulation”);
Else
Printf(“Fail”);
FG Fazaia Public Higher Secondary School (2nd Shift) Nur Khan Base Chaklala Rawalpindi
Sendup Examination 2023- COMPUTER SCIENCE (10A/B)
Name ------------------- Date --------------------------- Group------------------------ T.M (55)
11. What are reserved words? Why they should not be used as variable name? OR
Write about logical and relational operators?
SECTION-C (Marks-20)
Attempt all parts from this section. All questions carry equal marks (4 x 5=20)
Q3. a. What is switch () statement? Explain. Also give 1 example OR
b. Write a program that reads length of cube and prints its volume?
Q4. a. Draw logic circuit diagram and truth table of NOR and NAND gate OR
b. reduce following Boolean function using K-Map

Q5. a. What is preprocessor directive? Give examples and explain OR


b. Write an algorithm to find product of given numbers
PRODUCT= 1x3x5x7x9x11x13x15
Q6. Write about programming environment IDE of C-Language and its
components?

You might also like