Website And Web Server Programming Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Roadman1977
R
Roadman1977
Community Contributor
Quizzes Created: 1 | Total Attempts: 74
| Attempts: 74 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. If you create a virtual site at port 8000, how would you refer to it in a browser?

Explanation

To refer to a virtual site created at port 8000 in a browser, the correct URL would be "http://localhost:8000". The URL consists of the protocol (http), followed by the domain name (localhost), and the port number (8000) where the virtual site is hosted. This format allows the browser to establish a connection with the virtual site and display its content.

Submit
Please wait...
About This Quiz
Website And Web Server Programming Quiz - Quiz


Take this quiz and learn what it best for website and web server! Let's start this awesome programming quiz now!

2. Stored information about a previous visit to a Web Site is called _______ information.

Explanation

State information refers to the stored information about a previous visit to a website. This can include data such as user preferences, login credentials, or session details. State information allows websites to personalize the user experience and remember specific information about the user's interactions. HTTP, on the other hand, is a protocol used for communication between web servers and clients, and is not directly related to storing information about previous visits.

Submit
3. To open a connection to a MySQL database server, use ________ in PHP.

Explanation

To open a connection to a MySQL database server in PHP, the correct function to use is mysqli_connect(). This function establishes a connection to a MySQL database server using the MySQL Improved Extension (mysqli). It takes parameters for the server name, username, password, and database name, and returns a connection object that can be used to interact with the database.

Submit
4. I am triying to reach a webserver, www.leetechnology.com.  A DNS response tells me __________

Explanation

The DNS response tells the user the IP address of the website they are trying to reach, which in this case is www.leetechnology.com.

Submit
5. What is the correct syntax for creating a temporary cookie containing a value of "blue"?

Explanation

The correct syntax for creating a temporary cookie containing a value of "blue" is setcookie("color","blue"). This function is used to set a cookie in PHP, and it takes two parameters: the name of the cookie and its value. In this case, the name of the cookie is "color" and the value is "blue".

Submit
6. One way to preserve information following a user's visit to a Web page is to append a _______ at the end of a URL.

Explanation

A query string can be appended at the end of a URL to preserve information following a user's visit to a web page. It is a part of the URL that contains data in the form of key-value pairs. This data can be used to pass information to the server or to dynamically generate content on the web page. By including a query string in the URL, the information can be retained and accessed by the server or other scripts on the page.

Submit
7. Which of the following is not a tool for maintaining state information with PHP?

Explanation

Functions in PHP are not specifically designed for maintaining state information. They are used to organize and reuse code, perform specific tasks, and return values. State information is typically managed using tools like hidden form fields, query strings, and cookies. Hidden form fields allow data to be passed between web pages without displaying it to the user. Query strings can store data in the URL itself. Cookies are used to store data on the user's computer.

Submit
8. You store session state information in the $_Session __________

Explanation

The correct answer is "autoglobal" because the session state information in PHP is stored in the $_SESSION superglobal variable. This variable is automatically available in all scripts once a session is started and can be used to store and retrieve session data across multiple pages or requests.

Submit
9. You create a cookie by passing to the setcookie() function a required _________ argument and five optional arguments in PHP.

Explanation

In PHP, when creating a cookie using the setcookie() function, the required argument is the name of the cookie. This argument specifies the name of the cookie and is necessary for creating a cookie. The function also accepts five optional arguments, including value, expires, and path, which can be used to set additional properties for the cookie. However, the name argument is mandatory and must be provided when creating a cookie.

Submit
10. In order to create a new IP address in Linux, where would you store the new configuration?

Explanation

The correct answer is rc.local, httpd.conf. In Linux, the rc.local file is commonly used to store system startup commands and scripts. By adding the necessary configuration for the new IP address in the rc.local file, it will be applied during the system startup process. On the other hand, httpd.conf is the configuration file for the Apache HTTP server, which is responsible for handling web server settings. While it may not be the most appropriate location for storing IP address configurations, it could potentially be used for specific cases involving web server IP addresses.

Submit
View My Results

Quiz Review Timeline (Updated): Jun 6, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jun 06, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 18, 2009
    Quiz Created by
    Roadman1977
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
If you create a virtual site at port 8000, how would you refer to it...
Stored information about a previous visit to a Web Site is called...
To open a connection to a MySQL database server, use ________ in...
I am triying to reach a webserver, www.leetechnology.com.  A DNS...
What is the correct syntax for creating a temporary cookie containing...
One way to preserve information following a user's visit to a Web page...
Which of the following is not a tool for maintaining state information...
You store session state information in the $_Session __________
You create a cookie by passing to the setcookie() function a required...
In order to create a new IP address in Linux, where would you store...
Alert!

Advertisement