Professional Documents
Culture Documents
X Computer Science PreBoard Exam
X Computer Science PreBoard Exam
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)