Answer:
Option c. you can be sure that a validated page will work correctly in a browser
Explanation:
A faulty HTML codes can result in various types of unexpected error when running the web page in different platforms or browsers. This will cause an inconsistent style or layout. HTML code validation can check if the code adopt the standard tag and structure. A validated HTML code can guarantee a web application running smoothly in different browsers and always present consistent web page layout to users. HTML code validation has become part of the standard workflow before a web page go live in internet.
D. (chart elemments) - correct answer
Answer:
Option a, b, d, f, and j is legal method calls.
Explanation:
In the given question some information is missing, that is the method definition which can be described as follows:
Method definition:
int x =2, y=3; //defining integer variable
int mathMethod (int x) //method definition
{//method body
int z=x+y; //calculate value
return z; //return value
}
In the given question option a, b, d, f, and j is legal, because these options follow the correct syntax, and other option were incorrect which can be defined as follows:
- In option c, It is illegal because it accepts only one parameter.
- In option e, It is accepts long number, that's why it is illegal.
- In option g, It accepts float value, that's why it is illegal.
- In option h, It doesn't accepts any parameter.
- In option i, It isn't use in method.