12th class (Fsc) computer unit 10 MCQs
chapter 10 MCQs 12th Class computer
Input/Output:
1. The escape sequence for backslash is:
a. \\
b. \
c. \t
d. \b
2. The format specifier %u is used for:
a. Unsigned float
b. Integer
c. Unsigned long int
d. Unsigned short
3. In C program, the number of columns that are printed are specified in:
a. Format specifier
b. Field width specifier
c. Formatting integers
d. Both A & B
4. Escape sequence \\ is used to print:
a. Space
b. New line
c. Tab
d. Backslash
5. ASCII code for a character is displayed using format specifier:
a. %c
b. %d
c. %x
d. %f
6. The escape sequence for carriage return is:
a. \r
b. \a
c. \f
d. \c
7. The function that is used to display output on screen is called:
a. Pow
b. Printf
c. Display
d. Scanf
8. How many variables can be used in one printf function?
a. Ten
b. One
c. Many
d. Two
9. Format specifier starts with symbol:
a. #
b. %
c. @
d. $
10. Which escape sequence can be used to begin a new line in C?
a. \m
b. \
c. \n
d. \b
11. Which escape sequence is used to begin new line?
a. \m
b. \a
c. \n
d. \b
12. An escape sequence begin with a character:
a. /
b. //
c. \\
d. \
13. Which escape sequence is used for backspace?
a. /b
b. \B
c. \bs
d. \b
14. The escape sequence for tab is:
a. \r
b. \f
c. \t
d. \n
15.The format specifier %f is used for:
a. Double
b. Character
c. Float
d. Float
16. The escape sequence for new line:
a. \b
b. \n
c. \f
d. \t
17.Which escape sequence is used to erase a character left to the cursor position?
a. \n
b. \b
c. \f
d. \del
18. The number of columns used to display a value on the seen is called:
a. Field format
b. Format specifier
c. Space width
d. Field width specifier
19. The format specifier %f is used for:
a. Float
b. Integer
c. Unsigned long int
d. Unsigned short
20. Which escape sequence moves the cursor at the beginning of current line?
a. \f
b. \a
c. \r
d. \b
21. Which of the following format specifier is used for float data type?
a. %f
b. %e
c. %s
d. %d
22. Printf() is a:
a. Local function
b. Keyword
c. User defined function
d. Built in function
23. The format specifier % is used for:
a. Unsigned float
b. Integer
c. Unsigned long int
d. Unsigned short
24. Which of the following format specifier is used for string?
a. %c
b. %f
c. %s
d. %d
25. Which of the following things are determined by format specifier?
a. Format of a value
b. Data type
c. All of these
d. Field width