¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Chapter 6: PHP

Rebecca Walton 16 preguntas

Hacer el test

Preguntas del test (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

Información

Descripción
Sanchez, L. (2017). Web Programming with HTML, CSS, Bootstrap, JavaScript, JQuery, PHP, and MySQL . CreateSpace Independent Publishing Platform.
Idioma
English
Visitas
81
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?