0% found this document useful (0 votes)
136 views1 page

10th CS Test Unit-1-2

Uploaded by

Nanak Pur GHS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views1 page

10th CS Test Unit-1-2

Uploaded by

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

EDUCARE ACADEMY (AWAN CHOWK) KHANEWAL

(The Hawk School, Near Punjab Petrol Pump Awan Chowk Khanewal, 03037858659)
COMPUTER SCIENCE 10TH (Unit-1,2)
1. Include statement are written in__________ section.
a. Header b. main c. comments d. print
2. ________ are the values that does not change during whole execution of program
a. Variable b. Constants c. Strings d. comments
3. For initializing a variable we use _______
a. --> b. & c. = d. @
4. The % operator is used to calculate ___________
a. percentage b. Reminder c. Factorial d. Sequare
5. Printf statement is used to print ______________type of data
a. Int b. Float c. Char d. All
6. Which of the following is a valid character
a. „here‟ b. “a” c. „9‟ d. None of the above
Short Questions
Define character data type with example ? Explain multiline comments with example?
How we can declare and initialize a variable? What is the purpose of getch()?
What are the logical operators? Write the name of escape sequence?
What is meant by operator precedence, which operator has the higher precedence in c language?

EDUCARE ACADEMY (AWAN CHOWK) KHANEWAL


(The Hawk School, Near Punjab Petrol Pump Awan Chowk Khanewal, 03037858659)
COMPUTER SCIENCE 10TH (Unit-1,2)
7. Include statement are written in__________ section.
b. Header b. main c. comments d. print
8. ________ are the values that does not change during whole execution of program
b. Variable b. Constants c. Strings d. comments
9. For initializing a variable we use _______
b. --> b. & c. = d. @
10. The % operator is used to calculate ___________
b. percentage b. Reminder c. Factorial d. Sequare
11. Printf statement is used to print ______________type of data
b. Int b. Float c. Char d. All
12. Which of the following is a valid character
b. „here‟ b. “a” c. „9‟ d. None of the above
Short Questions
Define character data type with example ? Explain multiline comments with example?
How we can declare and initialize a variable? What is the purpose of getch()?
What are the logical operators? Write the name of escape sequence?
What is meant by operator precedence, which operator has the higher precedence in c language?

EDUCARE ACADEMY (AWAN CHOWK) KHANEWAL


(The Hawk School, Near Punjab Petrol Pump Awan Chowk Khanewal, 03037858659)
COMPUTER SCIENCE 10TH (Unit-1,2)
13. Include statement are written in__________ section.
c. Header b. main c. comments d. print
14. ________ are the values that does not change during whole execution of program
c. Variable b. Constants c. Strings d. comments
15. For initializing a variable we use _______
c. --> b. & c. = d. @
16. The % operator is used to calculate ___________
c. percentage b. Reminder c. Factorial d. Sequare
17. Printf statement is used to print ______________type of data
c. Int b. Float c. Char d. All
18. Which of the following is a valid character
c. „here‟ b. “a” c. „9‟ d. None of the above
Short Questions
Define character data type with example ? Explain multiline comments with example?
How we can declare and initialize a variable? What is the purpose of getch()?
What are the logical operators? Write the name of escape sequence?
What is meant by operator precedence, which operator has the higher precedence in c language?

You might also like