Roger Stegeby
Quiz por , criado more than 1 year ago

A simple quiz about PHP

61
0
0
Roger Stegeby
Criado por Roger Stegeby aproximadamente 9 anos atrás
Fechar

PHP

Questão 1 de 20

1

What does PHP stand for?

Selecione uma das seguintes:

  • Private Home Page

  • PHP: Hypertext Preprocessor

  • Personal Hypertext Processor

  • Professional Hypertext Processor

Explicação

Questão 2 de 20

1

PHP server scripts are surrounded by delimiters, which?

Selecione uma das seguintes:

  • <&>...</&>

  • <?php...?>

  • <script>...</script>

  • <?php>...</?>

Explicação

Questão 3 de 20

1

3. How do you output "Hello World" in PHP

Selecione uma das seguintes:

  • "Hello World";

  • echo "Hello World";

  • Document.Write("Hello World");

Explicação

Questão 4 de 20

1

All variables in PHP start with which symbol?

Selecione uma das seguintes:

  • &

  • $

  • !

  • #

Explicação

Questão 5 de 20

1

What is the correct way to end a PHP statement?

Selecione uma das seguintes:

  • </php>

  • New line

  • ;

  • .

Explicação

Questão 6 de 20

1

The PHP syntax is most similar to:

Selecione uma das seguintes:

  • Perl and C

  • VBScript

  • JavaScript

  • Assembly

Explicação

Questão 7 de 20

1

How do you get information from a form that is submitted using the "get" method?

Selecione uma das seguintes:

  • Request.Form;

  • $_GET[];

  • Request.QueryString;

Explicação

Questão 8 de 20

1

When using the POST method, variables are displayed in the URL:

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 9 de 20

1

In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 10 de 20

1

Include files must have the file extension ".inc"

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 11 de 20

1

What is the correct way to include the file "time.inc" ?

Selecione uma das seguintes:

  • <?php include "time.inc"; ?>

  • <?php include:"time.inc"; ?>

  • <?php include file="time.inc"; ?>

  • <!-- include file="time.inc" -->

Explicação

Questão 12 de 20

1

What is the correct way to create a function in PHP?

Selecione uma das seguintes:

  • create myFunction()

  • function myFunction()

  • new_function myFunction()

Explicação

Questão 13 de 20

1

What is the correct way to open the file "time.txt" as readable?

Selecione uma das seguintes:

  • fopen("time.txt","r");

  • open("time.txt");

  • open("time.txt","read");

  • fopen("time.txt","r+");

Explicação

Questão 14 de 20

1

PHP allows you to send emails directly from a script

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 15 de 20

1

What is the correct way to connect to a MySQL database?

Selecione uma das seguintes:

  • mysqli_open(host,username,password,dbname);

  • mysqli_db(host,username,password,dbname);

  • mysqli_connect(host,username,password,dbname);

Explicação

Questão 16 de 20

1

What is the correct way to add 1 to the $count variable?

Selecione uma das seguintes:

  • $count =+1

  • ++count

  • $count++;

  • count++;

Explicação

Questão 17 de 20

1

What is a correct way to add a comment in PHP?

Selecione uma das seguintes:

  • /*...*/

  • *\...\*

  • <!--...-->

  • <comment>...</comment>

Explicação

Questão 18 de 20

1

PHP can be run on Microsoft Windows IIS (Internet Information Server)

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 19 de 20

1

In PHP, the die() and exit() functions do the exact same thing.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 20 de 20

1

Which one of these variables has an illegal name?

Selecione uma das seguintes:

  • $my_Var

  • $my-Var

  • $myVar

Explicação