PHP: validazione lato server

PHP: validazione lato server

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Database (4DS)

Database (4DS)

11th Grade

10 Qs

Teoria Informatica 4 12_22

Teoria Informatica 4 12_22

11th Grade

10 Qs

linguaggio c++

linguaggio c++

10th Grade

11 Qs

C++ - PEI

C++ - PEI

10th Grade

10 Qs

Informatica 3a Classe

Informatica 3a Classe

10th Grade

12 Qs

DOMANDE SEMPLICI SUL PROGRAMMA WORD

DOMANDE SEMPLICI SUL PROGRAMMA WORD

9th Grade

10 Qs

Potenziometri, trimmer e massa

Potenziometri, trimmer e massa

9th Grade - University

13 Qs

Topolino

Topolino

12th Grade

10 Qs

PHP: validazione lato server

PHP: validazione lato server

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Marco Buccione

Used 3+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

La validazione lato server avviene dopo quella lato client?

No

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

La funzione empty($nome) è vera se la variabile $nome...

...non è definita

...non è definita oppure è vuota

...vale 0

...è vuota

3.

DRAG AND DROP QUESTION

1 min • 1 pt

Componi il comando PHP che verifica se un testo è lungo almeno 10 caratteri:

​ if(​​ (a)   (​ (b)   ) ​ (c)   ​ (d)   ) {

// Qui facciamo qualcosa...

}

strlen
$nome
>=
10
strstr
length
>
<
9
<=

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In PHP, due date si possono confrontare?

Non si possono confrontare

Sì, come se fossero testi

Sì, come se fossero numeri

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

La funzione che verifica se una variabile è un numero si chiama:

is_numeric()

is_number()

is_decimal()

int()

6.

DRAG AND DROP QUESTION

1 min • 2 pts

Componi il comando PHP che verifica se $peso contiene un valore valido:

​ if(​​ ! (a)   ($peso) || ​ (b)   ​ (c)   0) {

// Qui va il messaggio di errore

}

is_numeric
$peso
<
strlen
empty
>
>=
peso
==

7.

FILL IN THE BLANK QUESTION

2 mins • 2 pts

Completa il seguente comando, che deve verificare se $altezza, obbligatoria, è un numero ed è maggiore di 0:

if( ___ ) {

// Messaggio di errore

}

8.

MATCH QUESTION

1 min • 1 pt

Match the following

strlen()

La variabile è un numero

>

Confronta due date

is_numeric()

OR logico (combina due condizioni)

||

La variabile esiste e non è vuota

empty()

Lunghezza del testo