10th CS Test Unit-1-2
10th CS Test Unit-1-2
(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?