GoConqr has a new look! Let us know what you think.

Quiz

Chapter 6: PHP

Rebecca Walton 16 questions

Take the quiz

Questions in this quiz (16)

  1. 1All PHP statements should be surrounded by which delimiters?
    1. A<php> and </php>
    2. B<script> and ></script>
    3. C<script><php> and </php></script>
    4. D<?php and ?>
  2. 2A PHP statement is terminated with which symbol?
    1. A<end>
    2. B.
    3. C;
    4. D?
  3. 3All variables in PHP start with which symbol?
    1. A?
    2. B.
    3. Cvar
    4. D$
  4. 4In PHP, $content = "<p>Hello World</p>". Write a PHP statement that displays the content on the browser screen.
    1. Adisplay($content);
    2. Becho$content;
    3. Cecho "Hello World";
    4. Decho content;
  5. 5In PHP, you can use either single quotes ('This is a string') or double quote ("This is a string") for strings.
    1. Atrue
    2. Bfalse
  6. 6In PHP, which of the following is the correct way to comment a single line?
    1. A<!--This is a line of comment-->
    2. B<comment>This is a line of comment</comment>
    3. C<?php This is a line comment?>
    4. D//This is a line of comment
  7. 7In PHP, which of the following is NOT a correct variable name?
    1. A$3val
    2. B$val3
    3. C$val_3
    4. D$val_of_3
  8. 8In PHP, how do you add 1 to a variable called $i?
    1. Ai++
    2. Bi=+1;
    3. C++$i;
    4. D++i;
  9. 9How does PHP receive the information from an HTML form that is submitted using he "post" method? Suppose in HTML there's a text box <input type="text"name="userinput">
    1. A$_POST["userInput"];
    2. B$_GET["userInput"];
    3. C$_USERINPUT();
    4. D$_GET(userInput);
  10. 10When using the get method to submit an HTML form to a PHP file, the variables are displayed in the URL
    1. Atrue
    2. Bfalse

Information

Description
Sanchez, L. (2017). Web Programming with HTML, CSS, Bootstrap, JavaScript, JQuery, PHP, and MySQL . CreateSpace Independent Publishing Platform.
Language
English
Views
81
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?