ICSE ?
ICSE 2
[ICSE 26
[ICSE 200
III. Write short answers:
1. What do you mean by data type?
2. Define variable with an example,
3. What do you mean by constant? Explain with an example.
4. State two kinds of data types.
5. What do you understand by Token? Name different types of tokens
6. What are the rules to assign a variable in a Java programming?
7. Explain the term 'type casting'?
8. Perform the following:
(a) Assign the value of pie (3.142857......
) to a variable with the requisite de
type, double PI = H1312; 3.142
(b) Assign the value of V3(1.732) to a variable with the requisite data type
9. Distinguish between: double L = 1.732
(a) Integer and floating constant
(b) Token and Identifier
[ICSE 200
(C) Character and String constant
(d) Character and Boolean literal
[ICSE 2012
10. Write down the data type of the following:
(a) Integer int
(b) Long Integer long
(c) A fractional number double (d) A special character Char
11. What do you understand by Boolean data type? Explain with an example.
12. What do you understand by primitive data type? Give two examples.
13. Why is it necessary to define data types in Java programming?
14. Define the following with an example each:
(a) Implicit type conversion
(b) Explicit type conversion
I
a
C
[ICSE 20
15. Define 'Coercion' with reference to type conversion.
16. What do you mean by type conversion? How is implicit conversion differ
from explicit conversion?
17. In what way is static declaration different from dynamic declaration?
18. What do you mean by non-primitive data type? Give examples.
19. Predict the return data type of the following:
(i) int p; double q;
(ii) float m;
r = +q;
p = m/3*(Math.pow(4,3));
System.out.println(r);
System.out.println();
performed? Show the result with flow lines.
int i; float f; double d; char c; byte b;
(a) i + c/b;
(b) f/d + c*f;
(c) i + f - b*c;
(d) (f/i)*c + S;
(e) i + f- c + b/d;
(f) i/c + f/b;
20.
What
are
the
resultant
data
types
,
if
the
following
implicit
conversions
an
Answers
Answered by
7
Answer:
it is very long please mark me as thanked you
Similar questions