exam questions

Exam 98-383 All Questions

View all questions & answers for the 98-383 exam

Exam 98-383 topic 1 question 4 discussion

Actual exam question from Microsoft's 98-383
Question #: 4
Topic #: 1
[All 98-383 Questions]

You are analyzing a form that sends multiline comments to another page on the Internet. The following is the form's markup:

No data is sent when the form is submitted.
You need to solve this problem so that the data in the text box is submitted.
What should you do?

  • A. Replace the textarea element with an input element.
  • B. Set the name attribute of the textarea element.
  • C. Change the value of the method attribute to get.
  • D. Set the id attribute of the form element.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
References: https://www.w3schools.com/tags/att_form_action.asp

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Moon22
Highly Voted 2 years, 2 months ago
Yes, B : W3Schools: If the name attribute is omitted, the value of the input field will not be sent at all. https://www.w3schools.com/html/html_forms.asp
upvoted 6 times
...
Mordy
Highly Voted 3 years, 4 months ago
After trial and error, answer B seems to be the one that worked. CMIIW.
upvoted 6 times
Fjay
2 years, 11 months ago
Pls kindly explain as to how you arrived at your answer. Thanks
upvoted 1 times
Rmartinez3ije3232
2 years, 11 months ago
This seems to be the main reason: https://stackoverflow.com/questions/32858667/get-value-of-input-element-with-id-or-name ... Id and Classes are mainly for CSS or JavaScript purpose.
upvoted 1 times
...
...
...
SP_RSA
Most Recent 2 days ago
The correct answer is B. Set the name attribute of the textarea element. By setting the name attribute of the textarea element, the data entered in the text box will be included in the form submission. The name attribute specifies the name of the form field that will be sent to the server. The updated markup would be: <form action="http://www.contoso.com/receivecomments.asp" method="post"> Comments : <br> <textarea id="comments" name="comments"></textarea> <input type="submit" value="Submit"> </form>
upvoted 1 times
...
BeeThree33
1 week, 5 days ago
When using the GET method, the form data is appended to the URL as name/value pairs and sent to the server as part of the URL. The length of a URL is limited, so this method should not be used for sending large amounts of data or sensitive information. When using the POST method, the form data is sent within the body of the HTTP request and is not visible in the URL. This method has no size limitations and is more secure than GET, making it suitable for sending large amounts of data or sensitive information. Based on this part "sends multiline comments", the GET method is an invalid option and only POST can be utilized. Therefore, the answer seems to be option B. Source: https://www.w3schools.com/tags/att_form_method.asp#:~:text=Notes%20on%20GET,cannot%20be%20bookmarked You can test this theory out here: https://www.w3schools.com/html/html_forms.asp#:~:text=The%20Name%20Attribute,sent%20at%20all
upvoted 1 times
...
turkeylegs
3 months, 4 weeks ago
Selected Answer: B
Its B its B its B its B
upvoted 1 times
...
Gtidnevsg
1 year ago
Selected Answer: B
B is the correct answer
upvoted 1 times
...
royp22
1 year, 2 months ago
B is the correct answer..Id for text area wont send the data..name needed to be added.
upvoted 2 times
...
codibel
2 years ago
Can a clarification be made for this question? A number of people think that the problem is in the textarea element, not the method.
upvoted 2 times
...
Nov7
2 years, 3 months ago
100% B Set the name attribute of the textarea element
upvoted 2 times
...
Sasi7
2 years, 8 months ago
Answer: Change the value of the method attribute to get Source: https://www.w3schools.com/tags/att_form_action.asp
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago