murachs_php_4E_chapter01

rtf

School

Southern Illinois University, Carbondale *

*We aren’t endorsed by this school

Course

405

Subject

Computer Science

Date

Nov 24, 2024

Type

rtf

Pages

5

Uploaded by dustinmyers

Report
Chapter 1: Introduction to web development with PHP Murach's PHP and MySQL (4th Ed.) MULTIPLE CHOICE 1. A web application is a type of a. client/server application c. client-side application b. database application d. server-side application ANS: A 2. What software does a client use to access the web server where a web application resides? a. a client-side programming language c. an IDE b. a web browser d. an FTP program ANS: B 3. Which of the following is used to make websites available to other computers over a network? a. HTTP c. a web server b. TCP/IP d. an IDE ANS: C 4. A web application starts when a. a client sends an HTTP request to a server b. a client sends an HTTP response to a server c. a web server returns an HTML page to a client d. a round trip completes ANS: A 5. When the web server receives an HTTP request for a PHP page, the web server calls the a. database server c. web browser b. static web page d. PHP interpreter ANS: D 6. What type of web pages are generated by PHP scripts that are running on the web server? a. static c. interpreted b. dynamic d. compiled ANS: B 7. The HTTP response for a dynamic web page is passed a. from PHP to the browser b. from the web server to the browser c. from the database server to the web server d. from the web server to PHP ANS: B
8. Which of the following software components generates the HTML that is returned in an HTTP response? a. Apache b. MySQL c. Chrome d. PHP ANS: D 9. Google Chrome is a. an IDE c. a web browser b. an FTP program d. a web server ANS: C 10. Which of the following is a web server that is commonly used for web applications that are written in PHP? a. XAMPP c. Apache b. IIS d. NetBeans ANS: C 11. Which of the following is NOT true about MariaDB? a. It is being maintained by many of the original developers of MySQL. b. One goal is to maintain high compatibility with MySQL. c. Newer versions of XAMPP use MariaDB rather than MySQL. d. Like MySQL, it is owned by Oracle. ANS: D 12. To deploy a PHP application on your own computer, you copy the application root directory to a. the htdocs directory of the Apache server b. the htdocs directory of the MySQL server c. the xampp directory of the Apache server d. the xampp directory of the MySQL server ANS: A 13. Which HTML tag or element is used to load an external stylesheet? a. script c. style b. link d. type ANS: B 14. 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 a. specifies just the application root directory b. uses localhost as the domain name c. specifies just the application root directory and the starting filename d. uses apache as the domain name
ANS: B 15. In HTML, parameters are called a. attributes c. switches b. properties d. options ANS: A 16. What part of a URL identifies the web server that an HTTP request will be sent to? a. web name c. domain name b. web path d. domain path ANS: C 17. The first part of a URL is called the a. domain identifier c. protocol b. directory d. filename ANS: C 18. Which of the following is NOT part of an HTTP URL: a. protocol b. path c. node d. filename ANS: C 19. When HTML was first developed, web pages were typically a. cryptic c. dynamic b. invisible d. static ANS: D 20. If a URL specifies a directory that doesn’t contain a default page, Apache displays a. an error message b. a list of the PHP applications in that directory c. a list of all of the web applications in that directory d. a list of all of the directories in that directory ANS: D 21. Which of the following is NOT a database server that can be used for dynamic Web pages? a. MySQL c. Oracle b. SQL Server d. Python ANS: D 22. To view the source code for a web page in a web browser, you can display the View Page Source command by a. restarting the browser
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
b. clicking on the File menu c. right-clicking on the page d. none of the above ANS: C 23. To make it easier to enter names into your code, NetBeans provides a feature known as a. error checking b. auto-completion c. syntax coloring d. warning icons ANS: B 24. URL stands for a. Universal Refresh Location c. Unique Register Location b. Uniform Resource Locator d. Undeclared Resource Location ANS: B 25. A request and response for a file are made by a. a browser and an application c. the Web page b. a client and an agent d. a client and a server ANS: D 26. What type of a request does a web browser typically send to a server? a. IPsec c. HTTP b. TCP/IP d. FTP ANS: C 27. What extension of a filename is typically associated with a static Web page? a. .htm c. .php b. .asp d. .pl ANS: A 28. Which of the following can be used to style a label in an id named data? a. data_label c. label.data b. .data label d. #data label ANS: D 29. Which of the following is software that is a web server? a. Apache c. phpMyAdmin b. MySQL d. htdocs ANS: A 30. Which of the following can be displayed if you omit the filename of a URL? a. index.htm c. index.php
b. index.html d. all of these ANS: D