ExamVeda
Login
Home
81
What would happen if the data in the client had been wrong?
Discuss
Answer & Solution
Answer: Option C
Solution:
If some of the data that had been entered by the client had been in the wrong form or was simply missing, the server would have to send all the data back to the client and request that the form be resubmitted with correct information.
82
What is the purpose of the basic validation?
Discuss
Answer & Solution
Answer: Option B
Solution:
First of all, the form must be checked to make sure data was entered into each form field that required it. This would need just loop through each field in the form and check for data.
83
What is the purpose of data format validation?
Discuss
Answer & Solution
Answer: Option A
Solution:
The data that is entered must be checked for correct form and value. This would need to put more logic to test correctness of data.
84
Which is the function that is called to validate a data?
Discuss
Answer & Solution
Answer: Option D
Solution:
There is no such function to validate a data) But, you can write a function with any name to validate the data.
85
How to find the index of a particular string?
Discuss
Answer & Solution
Answer: Option C
Solution:
The indexOf() function can be used to find out the index of a particular character or a string.
86
How do you focus a particular part of the HTML page in JavaScript?
Discuss
Answer & Solution
Answer: Option B
Solution:
The focus() function can be used to focus a particular part of the HTML page in JavaScript.
87
Which of the following is the child object of the JavaScript navigator?
Discuss
Answer & Solution
Answer: Option B
Solution:
The JavaScript navigator object includes a child object called plugins.
88
Which of the following are the properties of a plug-in entry?
Discuss
Answer & Solution
Answer: Option D
Solution:
Each plug-in has an entry in the array. Each entry has the following properties:
1. name – is the name of the plug-in.
2. filename – is the executable file that was loaded to install the plug-in.
3. description – is a description of the plug-in, supplied by the developer.
4. mimeTypes – is an array with one entry for each MIME type supported by the plug-in.
89
What is the purpose of the mimeTypes property of a plug-in entry?
Discuss
Answer & Solution
Answer: Option C
Solution:
mimeTypes is an array with one entry for each MIME type supported by the plug-in.
90
What is it called when we make a mistake in the script?
Discuss
Answer & Solution
Answer: Option B
Solution:
A mistake in a script is referred to as a bug.