PHP

Descripción

A simple quiz about PHP
Roger Stegeby
Test por Roger Stegeby, actualizado hace más de 1 año
Roger Stegeby
Creado por Roger Stegeby hace alrededor de 9 años
60
0

Resumen del Recurso

Pregunta 1

Pregunta
What does PHP stand for?
Respuesta
  • Private Home Page
  • PHP: Hypertext Preprocessor
  • Personal Hypertext Processor
  • Professional Hypertext Processor

Pregunta 2

Pregunta
PHP server scripts are surrounded by delimiters, which?
Respuesta
  • <&>...</&>
  • <?php...?>
  • <script>...</script>
  • <?php>...</?>

Pregunta 3

Pregunta
3. How do you output "Hello World" in PHP
Respuesta
  • "Hello World";
  • echo "Hello World";
  • Document.Write("Hello World");

Pregunta 4

Pregunta
All variables in PHP start with which symbol?
Respuesta
  • &
  • $
  • !
  • #

Pregunta 5

Pregunta
What is the correct way to end a PHP statement?
Respuesta
  • </php>
  • New line
  • ;
  • .

Pregunta 6

Pregunta
The PHP syntax is most similar to:
Respuesta
  • Perl and C
  • VBScript
  • JavaScript
  • Assembly

Pregunta 7

Pregunta
How do you get information from a form that is submitted using the "get" method?
Respuesta
  • Request.Form;
  • $_GET[];
  • Request.QueryString;

Pregunta 8

Pregunta
When using the POST method, variables are displayed in the URL:
Respuesta
  • True
  • False

Pregunta 9

Pregunta
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
Respuesta
  • True
  • False

Pregunta 10

Pregunta
Include files must have the file extension ".inc"
Respuesta
  • True
  • False

Pregunta 11

Pregunta
What is the correct way to include the file "time.inc" ?
Respuesta
  • <?php include "time.inc"; ?>
  • <?php include:"time.inc"; ?>
  • <?php include file="time.inc"; ?>
  • <!-- include file="time.inc" -->

Pregunta 12

Pregunta
What is the correct way to create a function in PHP?
Respuesta
  • create myFunction()
  • function myFunction()
  • new_function myFunction()

Pregunta 13

Pregunta
What is the correct way to open the file "time.txt" as readable?
Respuesta
  • fopen("time.txt","r");
  • open("time.txt");
  • open("time.txt","read");
  • fopen("time.txt","r+");

Pregunta 14

Pregunta
PHP allows you to send emails directly from a script
Respuesta
  • True
  • False

Pregunta 15

Pregunta
What is the correct way to connect to a MySQL database?
Respuesta
  • mysqli_open(host,username,password,dbname);
  • mysqli_db(host,username,password,dbname);
  • mysqli_connect(host,username,password,dbname);

Pregunta 16

Pregunta
What is the correct way to add 1 to the $count variable?
Respuesta
  • $count =+1
  • ++count
  • $count++;
  • count++;

Pregunta 17

Pregunta
What is a correct way to add a comment in PHP?
Respuesta
  • /*...*/
  • *\...\*
  • <!--...-->
  • <comment>...</comment>

Pregunta 18

Pregunta
PHP can be run on Microsoft Windows IIS (Internet Information Server)
Respuesta
  • True
  • False

Pregunta 19

Pregunta
In PHP, the die() and exit() functions do the exact same thing.
Respuesta
  • True
  • False

Pregunta 20

Pregunta
Which one of these variables has an illegal name?
Respuesta
  • $my_Var
  • $my-Var
  • $myVar
Mostrar resumen completo Ocultar resumen completo

Similar

Test I. Introduction to web technologies
Angel Martínez Rodriguez
Evaluación de Programación (MYSQL y PHP)
Mitchel Romero C
OpenSource Programming
Faheem Ahmed
PHP Exam One
tr.badhan
PHP & MySQL
hratg
PHP intro
Māris Ozoliņš
Programming and Scripting Skills Needed
neteng33
Chapter 6: PHP
Rebecca Walton
Plugin Development
Joshua Reeves
WebTervezés
Nagy Ádám