Question

In: Computer Science

Reserved words are keywords which will not be used for identifier. For example, Java reserved words...

Reserved words are keywords which will not be used for identifier. For example, Java reserved words include for, while, if and etc. What are the disadvantages of having “too many reserved words”?

Solutions

Expert Solution

1.    If it language has too many reserved words, then a program in this language is more difficult to write.

Example: In these days programs are based on real life i.e. programming is used to solve real world problem. If we use most of the common used word as reserved then this will create a problem in writing the program.

2. Suppose a student wants to create an application containing data about the universe and if some of the words like sun, earth,planets etc. are made reserved then it will be a diffcult task for the programmer to write the program. Also if he use some other term like blue_planet in place of earth then it might require some effort for other programmer or reader to understand the program.

3.    A programmer has to learn all the reserved words to avoid error while writing the program.

4.    If a new person cames to know that this particular programming language having 1000's of reserved word, then he might think little before learning it because it will be a diffult to task to remember these many keyword.

5.    If the programming language has too many reserved keyword then less number of people will learn it and use it and thus the popularity of the programming language will lead down.


Related Solutions

Java programming language Array - Single identifier which can store multiple values Example initialized with values:...
Java programming language Array - Single identifier which can store multiple values Example initialized with values: int[] mySimpleArray = {4, 17, 99}; Example with fixed length but no values: int[] myFixedArray = new int[11]; The brackets identify the index. Each value has its own index number. NOTE: First element is the zeroth element: mySimpleArray[0] is 4, [1] is 17 Make a new Netbeans project called ArraysAndLoops Create the simple array with 4, 17, 99. Use System.out.println with the variable with...
Question 1- Competitors’ sites Keywords The product is "Turmeric Powder" List 20 keywords that when used...
Question 1- Competitors’ sites Keywords The product is "Turmeric Powder" List 20 keywords that when used to search for your product or service result in your two competitors being in the top 5 websites. You will do this exercise in all three major browsers IE, Firefox, Chrome; and Safari for those with an Apple product (iPhone, tablet or computer). Browser – Internet Explorer Keywords Keywords 1. 11. 2. 12. 3. 13. 4. 14. 5. 15. 6. 16. 7. 17. 8....
Create a Java class with the name (identifier) MyProgram and place it in the Questions package....
Create a Java class with the name (identifier) MyProgram and place it in the Questions package. You will need to create a main method for this class and place all of your code inside of that method. Your program should complete the following steps: - Prompt the user to enter a name for a Student. - Use the Scanner class to read in the user input and store the result in a variable. - Use the Random class to generate...
Done in c++, Read an unsorted keywords file once to determine how many words are in...
Done in c++, Read an unsorted keywords file once to determine how many words are in the file. Allocate memory dynamically to store the unsorted keywords in an array of strings or an array of c-strings. (Hint: be sure to clear your input file stream before re-reading the file) Reread the keywords file a second time and store the words in the dynamically allocated array of strings or c-strings Sort the array of key words. (Hint: be sure to check...
(IN YOUR WORDS) Write ABSTRACT and keywords about the effect of student cheating be accurate please
(IN YOUR WORDS) Write ABSTRACT and keywords about the effect of student cheating be accurate please
Read an unsorted keywords file once to determine how many words are in the file. Allocate...
Read an unsorted keywords file once to determine how many words are in the file. Allocate memory dynamically to store the unsorted keywords in an array of strings or an array of c-strings. (Hint: be sure to clear your input file stream before re-reading the file) Reread the keywords file a second time and store the words in the dynamically allocated array of strings or c-strings Sort the array of key words. (Hint: be sure to check your sorted array...
Read an unsorted keywords file once to determine how many words are in the file. Allocate...
Read an unsorted keywords file once to determine how many words are in the file. Allocate memory dynamically to store the unsorted keywords in an array of strings or an array of c-strings. (Hint: be sure to clear your input file stream before re-reading the file) Reread the keywords file a second time and store the words in the dynamically allocated array of strings or c-strings Sort the array of key words. (Hint: be sure to check your sorted array...
JAVA: Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 p.m., 7...
JAVA: Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 p.m., 7 p.m., or 9 p.m. Design a JAVA program that accepts reservations for specific tables at specific times; the user enters the number of customers, the table number, and the time. Do not allow more than four guests per table or invalid table numbers or times. If an attempt is made to reserve a table already taken, re-prompt the user. Continue to accept reservations until...
(need around 1800 words or report ,include the title ,abstract ,keywords, conclusions , and refereneces) (new...
(need around 1800 words or report ,include the title ,abstract ,keywords, conclusions , and refereneces) (new situation : the impact of the epidemic on global supply chains and supply chain solution for chinese companies) thank you
Which of the following can be used as an example of the "income effect" as a...
Which of the following can be used as an example of the "income effect" as a tool in explaining the downward slope of the demand curve for a normal product?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT