Introduction To Web Development Coursera | Week 5

2–3 minutes

read

WEEK 5 Quiz module

Advertisements

ANSWERS ARE MARKED WITH correct SIGN.

1. Question 1 What is true of HTML forms?

Forms must be printable to be useful

They can be used to gather almost any information from visitors. Correct 

Forms are primarily used for signing up for things

All of these are true

2. Question 2 Which type of form input hides what the user types?

text

radio

text with a value

secret

password Correct 

3. Question 3 What is true of radio buttons?

They enable live radio streaming

They must have the same name to work as a group Correct 

The must have the same value to work as a group

There is a limit of three radio buttons per group

Advertisements

4. Question 4 What do we know about checkboxes? (Select all that apply.)

All of these are true

We can check one, some or all (unlike radio buttons) Correct 

They have a different shape than radio buttons Correct 

They only work in conjunction with radio buttons

5. Question 5 What do we know about the input type number?

max is required, but min is not

min is required, but max is no

Neither min nor max is required Correct 

Both min and max are required

6. Question 6 Why might we consider using the date input type?

All of these are true Correct 

It gives the user an easy way to input a date

It allows a user to type a date if they prefer

It prevents invalid date formats

7. Question 7 Which of these strings match the HTML5 pattern=”[A-Za-z]{3} (Select all that apply.)

usa Correct 

AU

GER Correct 

US3

8. Question 8 If using regular expressions to validate input, it may be better to use JavaScript than HTML5. Why?

Regular expressions are easier to write in JavaScript

HTML5 pattern isn’t supported in all browsers Correct 

JavaScript requires less code

The JavaScript approach is not supported in all browsers

9. Question 9 Are tables and HTML forms compatible?

Forms can be used to give tables structure

No, tables and forms are incompatible

Yes, if we use the table attribute of a form

Tables can be used to give a form structure Correct 

Tables can be used instead of forms if we provide an action attribute

10. Question 10 JavaScript can be maintained in a separate file by using which attribute of the script tag?

action

dest

type

src Correct 

source

11. Question 11 A placeholder in an HTML form refers to

Is a nice feature, but it requires a lot of code

A kind of prompt for the user’s input Correct 

A place for to insert JavaScript code later.

A special comment to remind us what feature we want to work on next

12. Question 12 What is true of the built JavaScript function toUpperCase() (Select all that apply.)

It makes all letters in a string upper case Correct 

It works on JavaScript strings Correct 

It must be used when processing forms

It makes most of the characters in a string upper case

Advertisements

Leave a comment