(a) character
Tid the correct
1. constant which gives the coast representation of data called
tal variable
2. The default value of the healean data pe
b) to
3. Character literal is assigned to
(a) chat variable
(b) char type literal (c) string variable
4. A character literal is enclosed in
(d) string literal
(b)
5. A set of characters is assigned to
(a) String variable (b) Static variable
() Boolean variable (d) None
6. The ASCII codes of upper case alphabets range from
(a) 65 90
(b) 60 - 85
(0) 65 93
7. Which of the following is false to find square of a number?
(a) Math pow(2) (b) a'a
(c) Math sqrt(2)
(d) All
8. What type of value is returned by the sort function!
(a) int
(b) float
c) double
(d) All
9. Which of the following syntax is true to find the square root of a number?
(a) serta
(b) Math sqrt(a) (c) Squareroota) (d) None
10. Boolean data is used to test a particular condition, ie, true or false. Which of the
following is a correct representation?
(a) boolean m true (b) boolean me true' (c) boolean mə"true" (d) none
Answers
Answer:
1 b
2 c
3 a
4 b
5 a
6 a
7 d
8 d
9 b
10 d
Answer:
(a) character
Tid the correct
1. constant which gives the coast representation of data called
tal variable
2. The default value of the healean data pe
b) to
3. Character literal is assigned to
(a) chat variable
(b) char type literal (c) string variable
4. A character literal is enclosed in
(d) string literal
(b)
5. A set of characters is assigned to
(a) String variable (b) Static variable
() Boolean variable (d) None
6. The ASCII codes of upper case alphabets range from
(a) 65 90
(b) 60 - 85
(0) 65 93
7. Which of the following is false to find square of a number?
(a) Math pow(2) (b) a'a
(c) Math sqrt(2)
(d) All
8. What type of value is returned by the sort function!
(a) int
(b) float
c) double
(d) All
9. Which of the following syntax is true to find the square root of a number?
(a) serta
(b) Math sqrt(a) (c) Squareroota) (d) None
10. Boolean data is used to test a particular condition, ie, true or false. Which of the
following is a correct representation?