• No results found

INFORMATION AND COMMUNICATION TECHNOLOGY CLASS X CHAPTER 4 FORMS PRESENTED BY ALQA ZAFAR AMU ABK HIGH SCHOOL (BOYS) Page 1 of 5

N/A
N/A
Protected

Academic year: 2021

Share "INFORMATION AND COMMUNICATION TECHNOLOGY CLASS X CHAPTER 4 FORMS PRESENTED BY ALQA ZAFAR AMU ABK HIGH SCHOOL (BOYS) Page 1 of 5"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

Page 1 of 5

2020

PRESENTED BY

ALQA ZAFAR

AMU ABK HIGH SCHOOL (BOYS)

INFORMATION AND COMMUNICATION TECHNOLOGY

CLASS – X

CHAPTER – 4

FORMS

(2)

Page 2 of 5

Chapter - 4 FORMS

A. Multiple Choice Questions.

1. A _____ can be inserted in HTML document which can act as a container for all the input elements.

(a) Text field (b) Text area

(c) Form (d) Command Button

2. ________ method is used to sent form data as URL variables.

(a) get (b) set

(c) post (d) none of them

3. ________ method is used to sent form data as HTTP post.

(a) get (b) set

(c) post (d) none of them

4. What is the purpose of a web form

(a) An outdated feature still used to help the page load faster

(b) An useful way to send information from the user directly to the search engines (c) A way to input data into a website or an application

(d) To enable the user to navigate the website with ease

5. Which element allows for the creation of groups of options in a select menu?

(a) <select> (b) <group>

(c) <option> (d) <optgroup>

6. Which of the option will be selected with the following code snippet?

<select>

<option selected value=”Fiat”>Fiat</option>

<option value=”selected”>Saab</option>

<option value=”opel”>selected</option>

<option value=”audi”>Audi</option>

</select>

(a) Fiat (b) Saab

(c) Selected (d) Audi

(3)

Page 3 of 5

B. Answer The Following Questions.

Q.1 Why forms are used in web pages?

Ans. A form is an object that is used for collecting data from the user and pass it to a server. It acts as a container for all the input elements.

Q.2 Explain all the attributes of Form tag.

Ans. The attributes of form are:

1. Method: It specifies how to send form-data (the form-data is sent to the page specified in the action attribute). The form-data can be sent as URL variables (with method=”get”) or as HTTP post transaction (with method=”post”).

2. Action: All the information collected by a form can be submitted to a processing agent.

(a file containing a script made to process this information)

Q.3 Differentiate between Get & Post methods of Form tag.

S.

NO. GET POST

1. Appends form-data into the URL in name/value pairs.

Appends form-data inside the body of the HTTP request.

2. Data will be visible in the URL. Data is not shown is in URL.

3. The length of a URL is limited

(about 3000 characters) It has no size limitations.

4. Never use GET to send sensitive data. Use POST to send sensitive data.

5. Useful for form submissions where a user

want to bookmark the result. Form submissions with POST cannot be bookmarked.

6. GET is better for non-secure data, like query strings in Google.

POST is better for secure data, like passwords, bank account number.

7. Syntax:

<form method=”get” action=“address”>

Syntax:

<form method=”post” action= “address”>

(4)

Page 4 of 5

Q.4 How text field and text area controls are different from each other?

TEXT TEXTAREA

The Text field control accepts the input in one line.

Text areas are the fields that displays several text lines at a time.

The <textarea> tag has both start and the end tag.

Example: Name of Student, Example: Address, Body of Email, Comment from the user.

Syntax: <input type=text> Syntax: <textarea cols=30 rows=5>

</textarea>

Q.5 Explain the use of Radio buttons in HTML forms with the help of an suitable example.

Ans. Radio button enables the selection of one of the options out of the many.

Example: Gender:

<input type=radio name=”gen”> Male

<input type=radio name=”gen”> Female

Q.6 Mention all the attributes of Check box. Justify how it is different from Radio button.

Ans. Attributes of Checkbox are:

S.

No. Attributes Description

1. Name It adds an internal name to the field.

2. Value It defines what will be submitted if checked.

3. Align

It align the field on the form.

Valid entries are: TOP, MIDDLE, BOTTOM, RIGHT, LEFT, TEXTTOP, BASELINE, ABSMIDDLE, ABSBOTTOM.

4. Tabindex It defines in which order the different fields should be activated when the visitor clicks the tab key.

5. Checked This attribute can have default value when form is opened.

(e.g., checked=”checked | unchecked”).

CHECKBOX RADIO BUTTON

A checkbox allows for multiple selections of items.

Radio button enables the selection of one of the option out of the many.

Syntax: <input type=checkbox> Syntax: <input type=radio>

(5)

Page 5 of 5

Q.7 State the purpose of Submit and Reset button.

Ans. Submit button: When activated, a submit button submits a form and send all data to server. A form may contain more than one submit button.

Syntax: <input type=submit>

Reset button: When activated, a reset button resets all controls to their initial default values.

Syntax: <input type=reset>

Q.8 Which attributes are necessary to insert drop down list in a HTML page?

Ans. Drop down list is created using <SELECT> and <OPTION> tags.

Attributes of <SELECT> tag:

ATTRIBUTES DESCRIPTION

Name It adds an internal name to the field.

Size It defines the number of items to be visible when user clicks on the drop down box.

Multiple It allows for multiple selections

Value It defines what will be submitted to the computer when an item is selected.

Attributes of <OPTION> tag:

ATTRIBUTES DESCRIPTION

Selected By default the value of this option is displayed.

Q.9 Sometimes it is better to use the text area element instead of an input element of type text.

Write a short note to explain when and why?

Ans.

1. Textarea displays several text lines at a time which can show your whole content whereas Text field will display only one line at a time and show only a part.

2. We have full control over textarea using wrap attribute while in text field it have single line, when we type more words other words hide.

********

References

Related documents

Example script to create bootstrap modal popup contact form validate form rate and submit using jQuery and Ajax Learn how casual send.. Modal Confirmation Dialog

After an interactive form is rendered, a user can enter data into form fields and click a submit button located on the form to send information back to the Forms service.. Adobe

JQuery serialize Method jQuery AJAX Methods Example drove the result of serialized form values button.. Serialize the delusion in book form var

Echo360 Universal Capture works best when your screen resolution is less than the native resolution; to adjust your display to this resolution, right click on the desktop and

Is going to a file for any values submitted via a form submit button to strings for online google forms... Event and web form result in our own cgi program running on script to

Contact page or submitting payment request button at this manner by hud field is requested for information from a submit buttons on

Given time in the ajax submit form reloading page from the entire form which is created form without page editor, he enjoys doing photography and for the code.. Although you can

2) Click on the ”SharePoint Form Library” button.. Step 5, set the button action to Submit and connect to a SharePoint document library 1) Select the button. 2) Open