HTML And PHP Quiz

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Vendettasoldier
V
Vendettasoldier
Community Contributor
Quizzes Created: 2 | Total Attempts: 858
Questions: 11 | Attempts: 540

SettingsSettingsSettings
PHP Quizzes & Trivia

This is a quiz over basic HTML tags, and php. With a review through the information on my site you should be able to answer the questions on this quiz. Good luck!


Questions and Answers
  • 1. 

    What does HTML stand for ?

    • A.

      Hyper Transfer Protocol

    • B.

      HyperTransfer Markup Language

    • C.

      HyperText Markup Language

    Correct Answer
    C. HyperText Markup Language
    Explanation
    HTML stands for HyperText Markup Language. It is a standard markup language used for creating web pages and applications. HTML uses tags to structure the content and define the layout of a web page. These tags are interpreted by web browsers to display the content in a formatted manner. HyperText refers to the ability to link different web pages together through hyperlinks, allowing users to navigate between pages. Markup Language refers to the use of tags to define the structure and presentation of the content.

    Rate this question:

  • 2. 

    HTML code always starts with what important tag?

    • A.

      HTML

    • B.

      HEAD

    • C.

      BODY

    • D.

      TABLE

    Correct Answer
    A. HTML
    Explanation
    HTML code always starts with the tag. This tag is used to define the beginning of an HTML document. It is essential as it tells the browser that the document is written in HTML and sets the root element for the entire page. The tag is usually followed by the tag, which contains meta-information about the document, and the tag, which contains the visible content of the webpage.

    Rate this question:

  • 3. 

    This tag < P > creates a new what ?

    • A.

      Page

    • B.

      Image

    • C.

      Paragraph

    • D.

      Table

    Correct Answer
    C. Paragraph
    Explanation
    The tag is used in HTML to create a new paragraph. It is a formatting tag that indicates the start of a new paragraph in the webpage. By using this tag, the content within it is displayed as a separate paragraph, with appropriate spacing and indentation.

    Rate this question:

  • 4. 

    To put an image on your website you would use ?

    • A.

      A tag with ' a href ' in it

    • B.

      A tag with an ' P ' in it

    • C.

      A tag with an ' H1 ' in it

    • D.

      A tag with br/ in it

    Correct Answer
    A. A tag with ' a href ' in it
    Explanation
    To put an image on a website, you would use the "a" tag with the "href" attribute in it. The "a" tag is typically used for creating hyperlinks, but it can also be used to display images by setting the "href" attribute to the URL of the image file. This allows users to click on the image and be redirected to another page or location if desired.

    Rate this question:

  • 5. 

    The tag that includes OL would make what ?

    • A.

      An unordered list

    • B.

      An ordered list

    • C.

      A new table

    Correct Answer
    B. An ordered list
    Explanation
    The tag that includes OL refers to the ordered list tag in HTML. This tag is used to create a numbered list, where each item is automatically assigned a number. Therefore, the correct answer is "an ordered list."

    Rate this question:

  • 6. 

    A table is divided into rows and data. How would you make a table row ?

    • A.

      I'd use td /td tags

    • B.

      The best option is using a tag with br/

    • C.

      The only way to do it is using a tbleRW tag

    • D.

      The best answer is tr /tr tags

    Correct Answer
    D. The best answer is tr /tr tags
    Explanation
    To create a table row in HTML, the correct method is to use the "tr" opening and closing tags. The "tr" tags define a row within a table and are used to enclose the table data cells or columns ("td" tags). Therefore, the answer "the best answer is tr /tr tags" is correct as it accurately describes the appropriate way to create a table row.

    Rate this question:

  • 7. 

    The sign used at the end of this question means what in php:  /   

    • A.

      Multiplication

    • B.

      Integer

    • C.

      Division

    • D.

      Fraction

    Correct Answer
    C. Division
    Explanation
    the / in php is used to represent division

    Rate this question:

  • 8. 

    The item in the parentheses of an IF statement in php is called the ? 

    • A.

      Condition

    • B.

      Variable

    • C.

      Object

    Correct Answer
    A. Condition
    Explanation
    In PHP, the item in the parentheses of an IF statement is called the condition. The condition is a logical expression that evaluates to either true or false. It determines whether the code inside the IF statement should be executed or not. It can be a comparison between variables, a function that returns a boolean value, or any other expression that can be evaluated as true or false. The condition helps control the flow of the program and allows for decision-making based on certain criteria.

    Rate this question:

  • 9. 

    A variable in php can be described how?

    • A.

      A place where the data is compressed and stored indefinitely

    • B.

      A box in which you put data and can get it later

    • C.

      A storage of data that you can no longer access

    Correct Answer
    B. A box in which you put data and can get it later
    Explanation
    A variable in PHP can be described as a box in which you put data and can retrieve it later. It is a storage container that allows you to store and manipulate data during the execution of a program. Variables hold values that can be accessed and modified throughout the program's execution, making them essential for storing and managing data in PHP.

    Rate this question:

  • 10. 

    A line of php code must end with a ?

    • A.

      Semicolon ( ; )

    • B.

      Comma ( , )

    • C.

      Period ( . )

    Correct Answer
    A. Semicolon ( ; )
    Explanation
    In PHP, a line of code must end with a semicolon (;). This is known as a statement terminator and it is used to indicate the end of a PHP statement. The semicolon is necessary to separate multiple statements on the same line and to ensure proper syntax and execution of the code. Without a semicolon, the code will result in a syntax error.

    Rate this question:

  • 11. 

    pHP variables start with what symbol ?

    • A.

      A + symbol

    • B.

      A # symbol

    • C.

      A $ symbol

    • D.

      A @ symbol

    Correct Answer
    C. A $ symbol
    Explanation
    In PHP, variables are declared and used by prefixing them with a $ symbol. This symbol is used to indicate that the following characters represent a variable name and not a literal value. Therefore, the correct answer is a $ symbol.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 06, 2010
    Quiz Created by
    Vendettasoldier
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.