Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PHP Course

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Que signifie PHP ?

a)

·         Page Helper Process

b)

·          Programming Home Pages

·          PHP:

c)

Hypertext Preprocessor

d)

PHP: Hypertext Preprocessor

2.

Comment accède-t-on au 1er élément chaton dans le tableau suivant : $tableau = Array('chaton' , 'ornithorynque', 'dauphin'); ?

a)

$tableau[1]

b)

$tableau[0]

c)

$tableau{0}

d)

·         $tableau.get(1)

3.

Comment vérifie-t-on l'égalité de deux variables : $a et $b ?

a)

·          $a = $b

b)

·          $a == $b

c)

·          $a != $b

d)

·          if($a,$b)

4.

La boucle for ($i=0 ; $i<=3 ; $i++ ) { echo $i; }...

a)

Sera éxécutée 2 fois

b)

Sera éxécutée 3 fois

c)

Sera éxécutée 1 fois

d)

Sera éxécutée 4 fois

5.

Sachant que $dodo = 6. Quelle est la valeur de ma nuit : $dodo += 2; ?

a)

3

b)

8

c)

12

d)

6

6.

Dans le cas d'envoi d'informations plus ou moins sensibles par formulaire, quelle méthode utilisera-t-on de préférence ?

a)

GET

b)

mailto

c)

SESSION

d)

POST

7.

Les Limiteurs PHP Sont

a)

<?php>….</ ?php>

b)

<script></script>

c)

<?php… ?>

d)

<&>….</&>

8.

Une variable php commence par

a)

&

b)

$

c)

!

d)

£

9.

Une instruction php se termine par

a)

.

b)

;

c)

</php>

d)

newLine

10.

Quelle fonction permet de se connecter au serveur MYSQL 

a)

mysqli_con()

b)

mysqli_connect()

c)

mysqli_query()

d)

mysqli_error()

11.

SELECT * from client est une requête qui retourne

a)

un scalaire

b)

une colonne

c)

une table

d)

une ligne

12.

une variable envoyé par URL est stocker dans le tableau

a)

SESSION

b)

COOKIES

c)

GET

d)

POST