What is the maximum length of string constant?
a) 64 characters
b) 128 characters
c) 256 characters
d) 512 characters
Which of the followings are examples of string constants?
a) Pakistan
b) “123”
c) 5-plates
d) none of these
Which of the following constants consists of positive or negative signed numerals?
a) string constant
b) numeric constant
c) character constant
d) all of these
Which of the following are examples of number constant?
a) +4
b) -5
c) both a & b
d) none of these
How many types of number constants?
a) one
b) two
c) three
d) four
Explanation: integer constant, floating point constant, hexadecimal constant, octal constant
Any constant, which is written in single quote is called….
a) string constant
b) numeric constant
c) character constant
d) all of these