Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
17 views3 pages

Computer 10 Mock 4

kyawtcouyarwp wrac aw976wriat8ow7c we7iatfitasicaf eta iaetefa78g

Uploaded by

mylaptopacc0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Computer 10 Mock 4

kyawtcouyarwp wrac aw976wriat8ow7c we7iatfitasicaf eta iaetefa78g

Uploaded by

mylaptopacc0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Mock -4-2024 Total

Subject: Computer Science Part: Ob j+ Sub Type Marks


50
Time Allowed: Date:
Q.No 1 2 3 4 5 6 7 8 9 10
Marks
Obtained

School Name: The Educators, Pindi Gheb , Campus. Grade:


X
Student Name: Roll #

Q.No.1: Choose the correct and fill up the bubbles: /10

a b c d a b c d
1 6
2 7
3 8
4 9
5 10
/10

i. A float uses bytes of memory.


(a) 3 (b) 4 (c) 5 (d) 6
ii. Include statement are written in _________ section.

(a) Header (b) main (c) comments (d) Explanations

iii. ______ are the values that do not change during the program execution.
(a) messages (b) constant (c) variable (d) comments
iv. ______ can be thought of as container to store constant.
(a) box (b) jar (c) variable (d) collection
v. How many types of constant.
(a) 3 (b) 4 (c) 5 (d) 6
vi. Printf is used to print ________ type of data.
(a) int (b) float (c) char (d) All of them
vii. The operator % is used to calculate ________
(a) Percentage (b) Remainder (c) Factorial (d) Square
viii. Which operator has a higher precedence among the following?
(a) / (b) = (c) > (d) !
ix. Getch() is used to take _____ as input from the user.
(a) int (b) float (c) char (d) All of them
x. Which symbol is used for NOT operator?
(a) ! (b) # (c) > (d) &

Q2: Write any six questions. /12

i. Write a program takes marks of two subjects from user and display the
sum of marks.
ii. Write the types of comments.
iii. Define escape sequence.
iv. Differentiate between unary and binary operators.
v. Write the purpose of comments.
vi. Differentiate between char and int.
vii. Define reserved words.
viii. How the int data type can be declared?

Q3: Write any six questions. /12

i. Differentiate between scanf and printf function.


ii. Define format specifiers.
iii. Write the names of four keywords.
iv. What is statement terminator?
v. Write a program to calculate the grade.
vi. Define syntax.
vii. Write down the output of the following code:
Int a=3*5/(2+3)+7%2;
Printf(“%d”,a);
viii. Write the output of the following code:
Printf(“ Hello /n World”);

Q3: Write any two questions. /16


i. Explain purpose and formation of escape sequence. explain any two-escape
sequence.
ii. Define variable declaration and variable initialization write down general
structure, Also give four examples of valid variable declaration.
iii. Explain types of variables.

You might also like