Computer
Computer
Page 175
1. In aswitch case, when the switch value does not respond to any case then
the execution transfers to:
a) a break statement
b) adefault case
c) aloop
d) none
a) Arithmetic operators
b) Relational operators
c) Logical operators
d) All
ANS: d) All
4. If (a>b)&&(a>c) thenwhich of the statement is true?
a) for statement
b) switch statement
c) if-else
d) none
Page 92
6 double c, int x.V.2, w-5, y-10, 7-11, t-x'v 2/) The valuo storod in cis
a) 550
b) 555
c) 55
d) none
ANS:a) 55.0
a) 11
b) 10
c) 8
d) 12
ANS:c) 8
Poge 63
a) Variatule
b) Litetal
) ldentifier
d) Character
ANS: b) Literal
a) Char variable
b)Char type literal
c) String variable
d) String literal
10. Boolean data is used to test a particular condition i.e. true or false. Which
of the following is a correct representation?
a) boolean m=true
b) boolean m= 'true'
c) boolean m= "true"
d) none