Website And Web Server Programming Quiz

10 Questions | Attempts: 58
Share

SettingsSettingsSettings
Programming Quizzes & Trivia

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


Questions and Answers
  • 1. 
    If you create a virtual site at port 8000, how would you refer to it in a browser?
    • A. 

      Http://localhost:8000

    • B. 

      Http://localhost8000

    • C. 

      Http://localhost.8000

  • 2. 
    In order to create a new IP address in Linux, where would you store the new configuration?
    • A. 

      Named.conf

    • B. 

      Rc.local

    • C. 

      Httpd.conf

  • 3. 
    Stored information about a previous visit to a Web Site is called _______ information.
    • A. 

      HTTP

    • B. 

      State information

  • 4. 
    Which of the following is not a tool for maintaining state information with PHP?
    • A. 

      Hidden form fields

    • B. 

      Query strings

    • C. 

      Functions

    • D. 

      Cookies

  • 5. 
    To open a connection to a MySQL database server, use ________ in PHP.
    • A. 

      Open_connect()

    • B. 

      Connection_mysqli()

    • C. 

      Mysqli_connect()

    • D. 

      Open_mysqli()

  • 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.
    • A. 

      Query string

    • B. 

      Function

    • C. 

      Auto-global

    • D. 

      Identifier

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

      Value

    • B. 

      Name

    • C. 

      Expires

    • D. 

      Path

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

      Script

    • B. 

      Autoglobal

    • C. 

      Function

    • D. 

      Cookie

  • 9. 
    What is the correct syntax for creating a temporary cookie containing a value of "blue"?
    • A. 

      $Color = setcookie("blue");

    • B. 

      Setcookie("blue","color");

    • C. 

      Setcookie("color","blue");

    • D. 

      Setcookie("blue");

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

      The IP address of www.leetechnology.com

    • B. 

      The host name of www.leetechnology.com

    • C. 

      The host name of my computer

    • D. 

      The IP address of my computer

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.