HTML Form Elements

AttentivePink avatar
AttentivePink
·
·
Download

Start Quiz

Study Flashcards

40 Questions

Which one of these is a feature of web servers?

Document Root

Which web server was the top web server but no longer dominates #1?

Apache

Which type of authentication is supported by all HTTP servers?

Basic authentication

Which server-side component can be used for executing scripts?

CGI Scripting

What is the purpose of defining the location of the server root?

To specify the location of the server

Which port number is typically used for HTTP?

80

What is the origin of the name 'Apache'?

A set of PAtCHEs to NCSA’s httpd

Which operating systems is Apache available for?

Windows, Solaris, Linux, macOS

Which version of HTTP does Apache implement?

HTTP/2

Are there any GUI tools available for configuring Apache?

No

Which of the following is a characteristic of web server farms?

They eliminate single points of failure

Which company is NOT a major cloud service provider?

Salesforce

What is Amazon Elastic Compute Cloud (EC2) used for?

Creating and running virtual machines in the cloud

How many Elastic IPv4 addresses are accounts limited to per region on Amazon EC2?

5

Which CSS property value is inherited by child elements from their parent element?

padding

Which pseudo class selects a link when the user mouses over it?

:hover

Which JavaScript system runs on web browsers?

client-side JavaScript

Which method reverses the order of elements in an array?

reverse()

Which web browser uses the WebKit software component?

Google Chrome

Which layout engine is used by the Firefox web browser?

Gecko

Who is credited with inventing the World Wide Web?

Tim Berners-Lee

Which HTML version was developed around 1990?

HTML 1

Which protocol is used by web servers to execute programs and return the output to a client's web browser?

CGI

What is the purpose of a FIELDSET element in HTML forms?

To group form elements together

What are the two major categories of CGI environment variables?

Non-request specific and request specific

Which server directive is used by CGI scripts to inform the server about the type of output?

Content-type

According to the text, what is the purpose of the Same-Origin Policy in web browsers?

To prevent potentially malicious interactions between websites of different origins

Which of the following is a disadvantage of JSON compared to XML?

No validator - Every application is responsible for validating its inputs

What is the difference between JSON and JSONP?

JSONP allows specifying a callback function as an input argument of the call itself

Which JavaScript function should be used instead of eval() to parse JSON?

JSON.parse()

Which web server is currently ranked as the number one web server?

NGINX

Which port number is typically used for secure HTTP (HTTPS)?

443

What is the purpose of the 'Document Root' in a web server?

It is the location of the tree of files that the web server can deliver.

What is the main function of a proxy server in a web server?

Caching

Which operating systems is the Apache web server available for?

Windows, Solaris, Linux, and macOS

What is the origin of the name 'Apache' for the web server?

It is an acronym for 'A set of PAtCHEs to NCSA’s httpd'.

Which of the following is NOT a characteristic of Python variables?

Variables are statically typed

Which of the following is a correct way to concatenate a string and an integer in Python?

sum = str(5) + '10'

Which of the following is a correct way to define a function in Python?

def foo(arg_1, arg_2): return arg_1 * arg_2

Which of the following is NOT true about the Document Object Model (DOM)?

It is a programming language

Study Notes

Web Servers and HTTP

  • A feature of web servers is the ability to execute scripts using a server-side component.
  • The top web server that no longer dominates the #1 spot is Apache.
  • All HTTP servers support Basic Authentication.

Apache Web Server

  • Apache is available on multiple operating systems.
  • The origin of the name 'Apache' comes from the fact that the server is "a patchy" collection of code.
  • Apache implements HTTP/1.1.
  • There are GUI tools available for configuring Apache.

Web Server Farms

  • A characteristic of web server farms is that they use multiple servers to increase scalability and reliability.

Cloud Services

  • Amazon Elastic Compute Cloud (EC2) is used for scalable computing capacity in the cloud.
  • Accounts are limited to 5 Elastic IPv4 addresses per region on Amazon EC2.
  • Amazon is a major cloud service provider.

HTML, CSS, and JavaScript

  • The CSS property value 'inherit' is inherited by child elements from their parent element.
  • The pseudo class ':hover' selects a link when the user mouses over it.
  • JavaScript is executed on web browsers.
  • The method that reverses the order of elements in an array is 'reverse()'.
  • WebKit is a software component used by the Safari web browser.
  • Gecko is the layout engine used by the Firefox web browser.

Web History and Fundamentals

  • Tim Berners-Lee is credited with inventing the World Wide Web.
  • HTML 1.0 was developed around 1990.
  • The Common Gateway Interface (CGI) protocol is used by web servers to execute programs and return the output to a client's web browser.
  • The FIELDSET element in HTML forms is used to group form elements together.
  • The two major categories of CGI environment variables are HTTP headers and CGI-specific variables.
  • The 'Content-Type' server directive is used by CGI scripts to inform the server about the type of output.

Security and JSON

  • The Same-Origin Policy in web browsers is used to prevent a web page from making requests to a different origin.
  • A disadvantage of JSON compared to XML is that JSON does not support comments.
  • JSONP (JSON with Padding) is a workaround for the Same-Origin Policy by adding a padding of JavaScript code.
  • The 'JSON.parse()' function should be used instead of 'eval()' to parse JSON.

Miscellaneous

  • The 'Document Root' in a web server is the root directory of a website.
  • The main function of a proxy server in a web server is to act as an intermediary between a client and a server.
  • Port 80 is typically used for HTTP, and port 443 is typically used for secure HTTP (HTTPS).

Test your knowledge of HTML form elements with this quiz! Learn about the syntax and attributes of the select tag and how to group form elements using the fieldset element.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Functions of Web Servers
15 questions

Functions of Web Servers

CostEffectiveFauvism avatar
CostEffectiveFauvism
Web Servers Quiz
22 questions

Web Servers Quiz

InstructiveCalcite avatar
InstructiveCalcite
Use Quizgecko on...
Browser
Browser