You are on page 1of 4

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

Pre-Board Examination 2024- 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 What is a pass through a loop Execution Iteration Enumeration Culmination
called?
2 How many logic gates are required 1 2 3 4
to make logic circuit of Boolean
function

3 Which operation is represented by AND OR NOT NAND


“+” Sign?
4 Mnemonics or symbolic codes are Machine High Assembly Procedural
part of which language Language Level Language Language
Language
5 Which logic Gate shows output 1 if AND NOR OR NAND
at least 1 input is 1

6 Which operator has highest && <= ! *


precedence
7 Which language is used for creating C/C++ C# HTML Java
web pages?
8 Identify incorrect variable name _name s@123 Ali_123 91abc

9 Out put of code : ABC DEF Nothing None


If((5>10) && (8<10))
Printf(“ABC”)
Elseif( (5>10) II(8!=10))
Printf(“DEF”);
Else
Printf(“Nothing”);
10 Condition of switch doesn’t contain int char float None

11 Which characters terminates a C Colon Semicolo Period Comma


Statement n
12 Which one is not part of structured Repetition Input Selection Sequence
language
13 Which one is unary operator n=n*j n=m+n n=+5 n=n/t
FG Fazaia Public Higher Secondary School (2nd Shift) Nur Khan Base Chaklala Rawalpindi
Pre-Board Examination 2024- 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 is algorithm and what is the role of algorithm in problem solving? OR
Write an algorithm to calculate the area of a rectangle for given breadth and
length by using flow chart.
2. Which tags are used in HTML for printing order and unordered lists. OR
What is purpose of break statement?
3. Differentiate between syntax and semantics? Give example of each OR
Differentiate between printf() and scanf() functions?
4. Write down any three characteristics of high level language. OR
Construct the truth table for the following Boolean Expression:

5. Write the HTML tags for the following: a) Paragraph b) Heading c) Bold d)
font size e) font color f) font face
OR What is logic gate? Also draw graphical symbols of any three logic gates.
6. Define URL and Web hosting OR
How is a search engine used for searching information on the internet?
7. What happen if header files are not used in C programs? List at least two header
files with their purpose. OR
What are the rules for specifying a variable name is C language.
8. Write about getche()and puts() function with at least one example. OR
Evaluate the following expressions.
a) 7+5*(3+4) b) 100/10/4
9. Write at least three differences between format specifiers and escape sequence
characters. with examples. OR Differentiate between else if and switch?
10. Write following statement using conditional operator
If(temp>=35)
Printf(“its very hot today”);
Else
Printf(“Temperature is Normal”); OR
Differentiate between while and do-While loop?
11. Draw logic circuit of Boolean function
OR Write about relational and arithmetic operators?
FG Fazaia Public Higher Secondary School (2nd Shift) Nur Khan Base Chaklala Rawalpindi
Pre-Board Examination 2024- COMPUTER SCIENCE (10A/B)
Name ------------------- Date --------------------------- Group------------------------ T.M (55)
SECTION-C (Marks-20)
Attempt all parts from this section. All questions carry equal marks (4 x 5=20)
Q3. a. What is looping structure? Explain for and while loops with one example
of each OR
b. Write a program that prints following series using loop
30 25 20 15 10 5 0
Q4. a. Write HTML Code for following Output
Computer Science

HTML Programing
Click to get info Class 10

OR
b. reduce following Boolean function using K-Map

Q5. A) Write a program in C language that reads temperature (t) in Celsius and
prints a message as given below:
Temperature Message to print
t>35 It is hot!
t>20, t<35 Nice day!
t<20 It is cold!
OR Write algorithm and Draw Flowchart to find exponent of a number
Q6. Write a note on:
 Educational Websites
 Search Engine
 Preprocessor Directive
 Comments
 Truth Table
FG Fazaia Public Higher Secondary School (2nd Shift) Nur Khan Base Chaklala Rawalpindi
Pre-Board Examination 2024- COMPUTER SCIENCE (10A/B)
Name ------------------- Date --------------------------- Group------------------------ T.M (55)

You might also like