10th Computer Ch1 MCQs
10th Computer Ch1 MCQs
PAGE: 1 OF 5]
NOTES: 10TH COMPUTER - UNIT 1 - MC S]
b. Reserved Words d. .h
c. Header files 26. Which header file contains
d. Identifiers information about standard
18. Which of the following is not a input/output functions?
reserved word? a. stdio.h
a. if b. math.h
b. Float c. time.h
c. goto d. string.h
d. void 27. Which of the following header file
19. If a reserved word is used as variable contains information about common
name, it causes error. mathematical functions?
a. Syntax a. stdio.h
b. Logical b. math.h
c. Runtime C. conio.h
d. Program d. arith.h
20. The place to write header files in C 28. The main () is a:
program is: a. Header File
a. Top of the program b. Comment
PAGE: 2 OF 5]
NOTES: 10TH COMPUTER - UNIT 1 - MC S]
PAGE: 3 OF 5]
NOTES: 10TH COMPUTER - UNIT 1 - MC S]
a. nteger eonstants a. 2
b.Real Constants b.4
c. Character Constants C. 12
d. String Constants d. 16
44. In C, character constants are written 52. char is used to declare a variable type
within: of:
a. Double quotes(") a. Integer
b. Single quotes(') b. Character
c. Exclamation points(!) c.Real
d. Pound signs(#) d. Float
45. Which of the following is a valid 53. The number of bytes used by char
example of character constant? data type in C is:
a. 'A' a. 2
b. '9' b. 1
C. '$
' C. 12
d. All d. 16
46. A location in computer memory with 54. Which of the following is not a valid
some data that can be changed is called: data type in C?
a. Constant a. float
b. Variable b. int
c. Keyword c. real
d. Address d. char
47. Variables are created in: 55. Variable names cannot begin with:
a. RAM a. Number
b.ROM b. Underscore
c. Hard disk c. Upper-case letter
d. USB d. Lower-case letter
48. The data type int stores: 56. The variable names cannot contain:
a. Whole numbers a. Digits
b. Numbers with fraction part b. Underscore
c. Comments c. Alphabets
d. Strings d. Period
49. Data type int takes___ bytes. 57. Which of the following is an invalid
a. 10 variable name?
b. 6 a.-cust-num
c.4 b. jan 2009
d. 16 c. dayOfWeek
50. Which of the following is used to d. 2dGraph
declare variables that can hold real 58. Which of the following is valid
numbers? variable name?
a int a. points_scored
b. float b. my var
c. real c. $cost
d. char d. case
51. The number of bytes used by float
data type in C is:
PAGE: 4 OF 5]
EEILM.COM]] [NOTES: 10TH COMPUTER - UNIT 1 - MCOS]]
Answers
I.a 2.a 3.b 4.a 5.d
6.d 7.d 8.c 9.a 10.b
11.a 12.a 13.a 14.b 15.a
16.c 17.b 18.b 19.a 20.a
21.d 22.b 23.a 24.c 25.d
26.a 27.b 28.c 29.c 30.a
31.a 32.c 33.a 34.d 35.b
36.b 37.d 38.b 39.d 40.a
41.b 42.a 43.c 44.b 45.d
46.b 47.a 48.a 49.c 50.b
51.b 52.b 53.b 54.c 55.a
56.d 57.d 58.a 59.d 60.a
61.d 62.d
[PAGE: 5 OF S]]