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
Pregunta 4
Pregunta
All variables in PHP start with which symbol?
Pregunta 5
Pregunta
What is the correct way to end a PHP statement?
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:
Pregunta 9
Pregunta
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
Pregunta 10
Pregunta
Include files must have the file extension ".inc"
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?
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
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)
Pregunta 19
Pregunta
In PHP, the die() and exit() functions do the exact same thing.
Pregunta 20
Pregunta
Which one of these variables has an illegal name?