PHP

Descrição

A simple quiz about PHP
Roger Stegeby
Quiz por Roger Stegeby, atualizado more than 1 year ago
Roger Stegeby
Criado por Roger Stegeby quase 10 anos atrás
67
0

Resumo de Recurso

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
Responda
  • "Hello World";
  • echo "Hello World";
  • Document.Write("Hello World");

Questão 4

Questão
All variables in PHP start with which symbol?
Responda
  • &
  • $
  • !
  • #

Questão 5

Questão
What is the correct way to end a PHP statement?
Responda
  • </php>
  • New line
  • ;
  • .

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:
Responda
  • True
  • False

Questão 9

Questão
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
Responda
  • True
  • False

Questão 10

Questão
Include files must have the file extension ".inc"
Responda
  • True
  • False

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?
Responda
  • create myFunction()
  • function myFunction()
  • new_function myFunction()

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
Responda
  • True
  • False

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)
Responda
  • True
  • False

Questão 19

Questão
In PHP, the die() and exit() functions do the exact same thing.
Responda
  • True
  • False

Questão 20

Questão
Which one of these variables has an illegal name?
Responda
  • $my_Var
  • $my-Var
  • $myVar

Semelhante

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 & MySQL
hratg
PHP Exam One
tr.badhan
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