Computer Science, asked by karanpushpad4, 6 months ago

SS18
1. What is meant by token ? Name the tokens available in Java.
2. What are keywords ? Can keywords be used as identifiers ?
3. What is an identifier ? What is the identifier forming rule of Java ?
4. An identifier can start with the underscore “_". True or False.
5. Is Java case sensitive ? What is meant by the term case sensitive' ?
6. An identifier in Java can begin with a digit or letter. True or False.
7. All special characters are allowed in Java identifiers. True or False.
8. Which of the following are valid identifiers and why/why not :
Data_rec, _data, 1 data, data 1, my.file, asm, switch, goto, break?
9. What are literals ? How many types of integer literals are available in Java ?
10. What is an integer constant ? Write integer forming rule of Java.
'1. How many types of integer constants are allowed in Java ? How are they written
help Karan in this question...​

Answers

Answered by vikramvijaya567
2

Answer:

1st answer A token is the smallest element of a program that is meaningful to the complier

keywords and identifiers and constants

2nd answer keywords are predefined reserved words used in programming that have special meanings to the complier

keywords are the part of the syntax and they cannot be used as an identifier

3rd answer Each identifier must have at least one character can not be a digit at rest of the characters can be from alpha,digit,underscore,or dollarsign

4th answer yes it's TRUE

5th answer java is a case sensitive language which means that the upper or lower case is letters in java programs matter

6th answer no its false

7th answer yes its true

Similar questions