0% found this document useful (0 votes)
6 views

Java Tokens Revision

Uehajovojg pi cups focus off ICICI cup fu copious. Coc he Doug swas

Uploaded by

chalikwarjai
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Java Tokens Revision

Uehajovojg pi cups focus off ICICI cup fu copious. Coc he Doug swas

Uploaded by

chalikwarjai
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

JAVA TOKENS REVISION-TOTAL MARKS-55 TIME:45 MINS.

Q1)FILL IN THE BLANKS [ 1 X 35 = 35 MARKS]

1. __________They convey special meaning to the compiler and are ___________words of java.
2. __________a variable means assigning an initial value to the variable.
3. __________ a variable means allocating a memory to that variable.
4. Java compiler converts ____________ to byte code(.class).
5. ________is a smallest individual unit of a program.
6. _________ are inbuilt/ fundamental data types.
7. Uppercase letters (A-Z) Unicode range is ______ and lower case letter(a-z) range is
_______.
8. ___________ are derived from primitive data types
9. Java is a case sensitive language , due to different _________values.
10. Constant variables requires _____ keyword for declaration.
11. Identifier name should not be a ________ and should not start with a ______
12. Operators based on the no. of operands are ______ operator, _______& ternary
operator
13. Unicode value of digits 0-9_____
14. _______conversion is performed by using the (type) cast operator.
15. An ________ is a name given to a package, class, interface, method, or variable.
16. “System.in” refers to the standard Input stream by default it is _______ “System.out” refers
to the standard Output stream by default it is ______.
17. Java programs are written within a ___________
18. ________ conversion is performed by the compiler automatically.
19. In _______ expression all variables are of same data type.
20. Two types of programs in java are __________ and __________
21. ________ are the non-executable statements of java and are of two types _______
and ___________
22. Java is a __________ language with its own _________
23. The logical/legal combination of java tokens is called an ____________
24. A char type variable contains a______ character. It occupies ______bytes. It can store
______characters. Its default value is ______
25. Data type _______ contains a constant as true or false
26. __________ are the symbol which tell the computer which operation to take place.
27. ++x will increment value of x ____
28. ___________ is a set of two of more programming statements written inside a balanced set
of curly braces and is also called a _______.
29. What will be the output of the following. if x=5 initially? (i) 5*++x; (ii) 5*x++;
30. int a=0,b=30,c=40; a= --b + c++ +b ; System.out.println(a);
31. Specify output of given if a=5 and b=3 initially
c=++a+ --b + ++a +--b;
System.out.println(a+”space “+b+” space “+c);

32. Write the final value of” x & y” if int x=20,y=11; x =x + (x/++y +(x++ - --y))%5 ;
33. Name the type conversions type conversions i)int x=’A’;// _______ ii) int y=(int)4.5; //_____
34. Name the literals – a)186; //_______ b)2.9f/F; ______ ,c)’R’; ______ , d)5.675;//______
35. An ________ is represented by a back slash (\) followed by one or more characters and is a
____________ character.
Q2) Difference between [ 2 X 6 = 12 Marks]

int char

float data type double data type

== =

Literals constants

int data type long data type

/ %

Q3) Fill the table [1 X 8 = 8 Marks]


Data Size in bytes Range Default
type
byte 1 byte 0
short -32768 to 32767 0
int 4 byte 0
long -263 to 263-1
float 4 byte
double -1.7 x 10308 to 1.7 x 10308 0.0

You might also like