PHP Exam1 Questions and Answers
In a web application, the client uses a ________________ to interact with a web server. - Answer-
browser
A ________________ makes websites available to other computers over a network. - Answer-web
server
A web application starts when a client sends a/an ________________ to a server. - Answer-request
A ________________ web page is one that has .html or .htm as its extension. - Answer-static
In a PHP application, dynamic web pages are generated by PHP scripts that are running on the
________________. - Answer-web server
Google Chrome is a ________________. - Answer-browser
________________ is the web server that is commonly used for web applications that are written in
PHP. - Answer-Apache
,To deploy a PHP application on your own server, you copy or move its ________________ to the
document root directory of the Apache server. - Answer-directory
In an HTTP URL, the ________________ is coded immediately after the protocol but before the path. -
Answer-domain
If you omit the filename from a URL, the Apache web server displays a list of files and directories if the
specified directory doesn't contain a ________________ such as index.php. - Answer-default file
A web application is a type of - Answer-client/server application
When the web server receives an HTTP request for a PHP page, the web server calls the - Answer-PHP
interpreter
The HTTP response for a dynamic web page is passed - Answer-from the web server to the browser
Which of the following software components generates the HTML that is returned in an HTTP response?
- Answer-PHP
To deploy a PHP application on your own computer, you copy the application root directory to -
Answer-the htdocs directory of the Apache server
Which HTML tag or element is used to load an external stylesheet? - Answer-link
To run a PHP application that has been deployed on your own computer, you can enter a URL in the
address bar of your browser that - Answer-uses localhost as the domain name
In HTML, parameters are called - Answer-attributes
, The first part of a URL is called the - Answer-protocol
When HTML was first developed, Web pages were typically - Answer-static
If a URL specifies a directory that doesn't contain a default page, Apache displays - Answer-a list of all of
the directories in that directory
To view the source code for a web page in a web browser, you can display the View Source command by
- Answer-right-clicking on the page
To make it easier to enter names into your code, NetBeans provides a feature known as - Answer-auto-
completion
URL stands for - Answer-Uniform Resource Locator
A request and response for a file are made by - Answer-a client and a server
What type of a request does a Web browser typically send to a server? - Answer-HTTP
What extension of a filename is typically associated with a static Web page? - Answer-.htm
Which of the following can be used to style a label in an id named data? - Answer-#data label
Which of the following is software that is a Web server? - Answer-Apache
In a web application, the client uses a ________________ to interact with a web server. - Answer-
browser
A ________________ makes websites available to other computers over a network. - Answer-web
server
A web application starts when a client sends a/an ________________ to a server. - Answer-request
A ________________ web page is one that has .html or .htm as its extension. - Answer-static
In a PHP application, dynamic web pages are generated by PHP scripts that are running on the
________________. - Answer-web server
Google Chrome is a ________________. - Answer-browser
________________ is the web server that is commonly used for web applications that are written in
PHP. - Answer-Apache
,To deploy a PHP application on your own server, you copy or move its ________________ to the
document root directory of the Apache server. - Answer-directory
In an HTTP URL, the ________________ is coded immediately after the protocol but before the path. -
Answer-domain
If you omit the filename from a URL, the Apache web server displays a list of files and directories if the
specified directory doesn't contain a ________________ such as index.php. - Answer-default file
A web application is a type of - Answer-client/server application
When the web server receives an HTTP request for a PHP page, the web server calls the - Answer-PHP
interpreter
The HTTP response for a dynamic web page is passed - Answer-from the web server to the browser
Which of the following software components generates the HTML that is returned in an HTTP response?
- Answer-PHP
To deploy a PHP application on your own computer, you copy the application root directory to -
Answer-the htdocs directory of the Apache server
Which HTML tag or element is used to load an external stylesheet? - Answer-link
To run a PHP application that has been deployed on your own computer, you can enter a URL in the
address bar of your browser that - Answer-uses localhost as the domain name
In HTML, parameters are called - Answer-attributes
, The first part of a URL is called the - Answer-protocol
When HTML was first developed, Web pages were typically - Answer-static
If a URL specifies a directory that doesn't contain a default page, Apache displays - Answer-a list of all of
the directories in that directory
To view the source code for a web page in a web browser, you can display the View Source command by
- Answer-right-clicking on the page
To make it easier to enter names into your code, NetBeans provides a feature known as - Answer-auto-
completion
URL stands for - Answer-Uniform Resource Locator
A request and response for a file are made by - Answer-a client and a server
What type of a request does a Web browser typically send to a server? - Answer-HTTP
What extension of a filename is typically associated with a static Web page? - Answer-.htm
Which of the following can be used to style a label in an id named data? - Answer-#data label
Which of the following is software that is a Web server? - Answer-Apache