12th class (Fsc) computer unit 9 MCQs
26. Which is a valid character constant?
a. ‘6’
b. A
c. =
d. “Hello”
27. An ampersand before the name of a variable denotes:
a. Address
b. Actual values
c. Data type
d. Variable name
28. Variable and constant names cannot contain a(n):
a. Letter
b. Number
c. Period
d. Underscore
29. A memory location with some data that cannot be changed is called:
a. Keyword
b. Constant
c. Variable
d. None
30. Which of the following constant definitions is correct?
a. Const float COST=$700.0;
b. Const float PRICE=3,500;
c. Const int MY_HEIGHT=60/12;
d. Const int LENGTH=6.5;
31. Which of the following can be used as character constant:
a. Special characters
b. Characters
c. Digits
d. All
32. Which of the following are valid examples of character constant?
a. ‘$’
b. ‘A’
c. ‘9’
d. All
33. A character constant must be enclosed in:
a. Exclamation point (!)
b. Quotation marks(“)
c. Pound sign(#)
d. Single quotes(‘)
34. Which of the following data type offers the highest precision?
a. Long double
b. Float
c. Unsigned long
d. Long int
35. When the result of the computation of two very small numbers is too small to be represented, this phenomenon is called:
a. Truncation
b. Arithmetic overflows
c. Round off
d. Arithmetic underflow
36. How many bytes the float data type takes in memory?
a. 4
b. 2
c. 8
d. 3
37. Which term describes the kind of values that a variable can store?
a. Variable type
b. Variable Name
c. Variable size
d. Data type
38. The number of bytes used by int data type in C is?
a. 4
b. 8
c. 2
d. 6
39. Number of bytes used by long double data type is:
a. 10
b. 4
c. 12
d. 8
40. The data type in C that can handle fractional values is called:
a. Float
b. Long
c. Int
d. Char
41. The number of digits after a decimal point is called:
a. Range
b. Significance
c. Scope
d. Precision
42. Int is a ……… in C.
a. Cut word
b. Special word
c. First word
d. keyword
43. The data type which is used to store numeric value with no decimal point?
a. char
b. float
c. long
d. int
44. Which data type is the most appropriate for storing a name?
a. char
b. float
c. long
d. int
45. Which data type is used to store numeric value with no decimal point?
a. Float
b. Int
c. Char
d. All
46. Which is a numeric data type?
a. Floating point
b. Integer
c. Both A & B
d. None
47. The number of bytes used by long int data type in C is?
a. 12
b. 2
c. 16
d. 4
48. The integer, long and short data types are known as:
a. Float data types
b. Integer data types
c. Non-numeric data types
d. Non-integral data types
49. The data type that can handle decimal places is:
a. Char
b. Long
c. Float
d. None
50. The number of bytes used by float data type in C is:
a. 12
b. 2
c. 16
d. 4