Questão 1
Questão
What does PHP stand for?
Responda
-
Private Home Page
-
PHP: Hypertext Preprocessor
-
Personal Hypertext Processor
-
Professional Hypertext Processor
Questão 2
Questão
PHP server scripts are surrounded by delimiters, which?
Responda
-
<&>...</&>
-
<?php...?>
-
<script>...</script>
-
<?php>...</?>
Questão 3
Questão
3. How do you output "Hello World" in PHP
Questão 4
Questão
All variables in PHP start with which symbol?
Questão 5
Questão
What is the correct way to end a PHP statement?
Questão 6
Questão
The PHP syntax is most similar to:
Responda
-
Perl and C
-
VBScript
-
JavaScript
-
Assembly
Questão 7
Questão
How do you get information from a form that is submitted using the "get" method?
Responda
-
Request.Form;
-
$_GET[];
-
Request.QueryString;
Questão 8
Questão
When using the POST method, variables are displayed in the URL:
Questão 9
Questão
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
Questão 10
Questão
Include files must have the file extension ".inc"
Questão 11
Questão
What is the correct way to include the file "time.inc" ?
Responda
-
<?php include "time.inc"; ?>
-
<?php include:"time.inc"; ?>
-
<?php include file="time.inc"; ?>
-
<!-- include file="time.inc" -->
Questão 12
Questão
What is the correct way to create a function in PHP?
Questão 13
Questão
What is the correct way to open the file "time.txt" as readable?
Responda
-
fopen("time.txt","r");
-
open("time.txt");
-
open("time.txt","read");
-
fopen("time.txt","r+");
Questão 14
Questão
PHP allows you to send emails directly from a script
Questão 15
Questão
What is the correct way to connect to a MySQL database?
Responda
-
mysqli_open(host,username,password,dbname);
-
mysqli_db(host,username,password,dbname);
-
mysqli_connect(host,username,password,dbname);
Questão 16
Questão
What is the correct way to add 1 to the $count variable?
Responda
-
$count =+1
-
++count
-
$count++;
-
count++;
Questão 17
Questão
What is a correct way to add a comment in PHP?
Responda
-
/*...*/
-
*\...\*
-
<!--...-->
-
<comment>...</comment>
Questão 18
Questão
PHP can be run on Microsoft Windows IIS (Internet Information Server)
Questão 19
Questão
In PHP, the die() and exit() functions do the exact same thing.
Questão 20
Questão
Which one of these variables has an illegal name?