100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

PHP TEST 1 QUESTIONS & ANSWERS

Rating
-
Sold
-
Pages
15
Grade
A+
Uploaded on
23-01-2026
Written in
2025/2026

PHP TEST 1 QUESTIONS & ANSWERS

Institution
PHP
Course
PHP









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
PHP
Course
PHP

Document information

Uploaded on
January 23, 2026
Number of pages
15
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

PHP TEST 1 QUESTIONS & ANSWERS

A web application is a type of - Answers -client/server application

When the web server receives an HTTP request for a PHP page, the web server calls
the - Answers -web browser

Which of the following software components generates the HTML that is returned in an
HTTP response? - Answers -Chrome

The HTTP response for a dynamic web page is passed - Answers -from the web server
to the browser

Which of the following is NOT true about MariaDB? - Answers -it is being maintained by
many of the original developers of MySQL.

To deploy a PHP application on your own computer, you copy the application root
directory to - Answers -the htdocs directory of the Apache server

Which HTML tag or element is used to load an external stylesheet? - Answers -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 - Answers -uses localhost as the domain
name

In HTML, parameters are called - Answers -attributes

The first part of a URL is called the - Answers -protocol

Which of the following is NOT part of an HTTP URL: - Answers -node

When HTML was first developed, Web pages were typically - Answers -static

If a URL specifies a directory that doesn't contain a default page, Apache displays -
Answers -a list of all of the directories in that directory

Which of the following is not a database server that can be used for dynamic Web
pages? - Answers -Python

To view the source code for a web page in a web browser, you can display the View
Source command by - Answers -right-clicking on the page

To make it easier to enter names into your code, NetBeans provides a feature known as
- Answers -auto-completion

, URL stands for - Answers -Uniform Resource Locator

A request and response for a file are made by - Answers -a client and a server

What type of a request does a Web browser typically send to a server? - Answers -
HTTP

What extension of a filename is typically associated with a static Web page? - Answers
-.htm

Which of the following can be used to style a label in an id named data? - Answers -
#data label

Which of the following is software that is a Web server? - Answers -Apache

Which of the following can be displayed if you omit the filename of a URL? - Answers -
all of these

A PHP variable name - Answers -is case-sensitive

The order of precedence for arithmetic expressions causes - Answers -increment
operations to be done first

To round and format the value of a variable named $number to 3 decimal places and
store it in a variable named $number_formatted, you code - Answers -
$number_formatted = number_format($number, 3);

After the code that follows is executed, what will the value of $units_per_store be?
$units = 30;
$stores = 4;
$units_per_store = intdiv($units, $stores); - Answers -7

After the code that follows is executed, what will the value of $units_per_store be?
$units = 30;
$stores = 4;
$units_per_store = $units % $stores; - Answers -2

After the if statement that follows is executed, what will the value of $discount_amount
be?
$discount_amount;
$order_total = 200;
if ($order_total > 200) {
$discount_amount = $order_total * .3;
} else if ($order_total > 100) {
$discount_amount = $order_total * .2;
} else {

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA YALA UNIVERSITY
View profile
Follow You need to be logged in order to follow users or courses
Sold
2013
Member since
3 year
Number of followers
1447
Documents
48584
Last sold
14 hours ago

3.8

345 reviews

5
172
4
61
3
44
2
16
1
52

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions