DAW Exam

A vibrant and engaging digital illustration of a programmer working on PHP code in a modern workspace, with elements like code snippets, a computer, and visual representations of PHP fun<wbr>ctions and databases.

PHP Knowledge Challenge

Test your knowledge of PHP with our comprehensive quiz designed for both beginners and experienced developers. Dive into 32 carefully crafted questions that cover various aspects of PHP programming.

Key features:

  • Multiple choice questions
  • Instant feedback
  • Learn as you go
32 Questions8 MinutesCreated by CodingCat24
Cum se defineste o constanta in PHP?
Define("MAX", "128");
#define MAX 128;
Fisierele incluse cu include trebuie sa aiba extensia .inc?
True
False
Cum se poate crea un tablou in PHP?
$fruits = array("apple", "peach", "grape");)
$person_age = array(array("Peter", 35), array("Ben", 37), array("Joe), 43));
$fruits = array["apple", "peach", "grape"];
$age = array("Peter" => "35", "Ben" => "37", "Joe" => "43");
Cum putem deschide fisierul time.txt pentru citire?
Fopen("time.txt", r);
Fopen("time.txt", r+);
Fopen("time.txt", read);
Cum se termina o instructiune PHP?
PHP_EOL
?>
;
Functiile die() si exit() fac acelasi lucru?
True
False
Folosind metoda POST variabilele sunt vizibile in URL?
True
False
Cum se creeaza un cookie in PHP?
Createcookie()
Setcookie()
New cookie()
Sintaxa PHP seamana cu sintaxa din:
Javascript
Perl si C
VBScript
O clasa in PHP poate fi derivata din mai multe clasa?
True
False
In PHP se pot folosi si ghilimelele si apostroful pentru delimitarea sirurilor de caractere?
True
False
Bifati variantele corecte de a introduce comentarii in scripturile PHP:
/* multiple line comment */
// single line comment
Textul comentariului
# single line comment
Variabilele in PHP sunt case sensitive?
True
False
Care din numele de variabile de mai jos sunt gresite?
$Variabila-1
$Variabila_1
$Variabila_#1
$1variabila
$_variabilA1
Ce server web lucreaza si cu PHP?
NginX
Apache
Lightpd
Microsoft IIS
PHP foloseste pentru scripturi tagul:
...
< ? ... ? >
< ? php ... ? >
In PHP putem afisa siruri de caractere doar cu print?
True
False
I don't know question 18 :(
 
Cum afisez in PHP mesajul "Hello from PHP script!"?
Print "Hello from PHP script!"
Echo "Hello from PHP script!"
Document.Write("Hello from PHP script!")
Functiile include si require au comportament identic
True
False
Datele introduse intr-un formular pot fi sanitizare cu functia:
Mysqli_real_escape_string()
Htmlspecialchars()
Stripslashes()
Trim()
Care din metodele de mai jos sunt recomandate pentru lucrul cu baze de date in PHP?
MySQLi
PDO
MySQL
Cu ce functie pornim o sesiune PHP?
Session_start()
Session_unset()
Session_set()
In PHP cuvantul cheie use poate fi folosit pentru:
Traits
Namespaces
Baze de date
Care este modul corect de a adauga 1 la variabila $count?
$count =+ 1
++count
$count++;
Count++
PHP vine de la:
PHP Hypertext Preprocessor
Personal Home Page
Personal Hypertext Preprocessor
PHP ne permite sa trimitem emailuri direct din script?
True
False
Cu ce simbol incep variabilele in PHP?
&
$
#
Cum sunt create functiile in PHP?
Create function MyFunction();
Function MyFunction();
New_function MyFunction();
Care este modul corect de a include fisierul time.inc?
< ? Php include "time.inc" ? >
< ? Php include file "time.inc" ? >
Ce variabila superglobala contine informatii despre headere, calea si locatia scriptului?
$GLOBALS
$_SUPERGLOBAL
$_SERVER
Care din operatorii de mai jos este operatorul identitate?
===
=
==
?==
{"name":"DAW Exam", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of PHP with our comprehensive quiz designed for both beginners and experienced developers. Dive into 32 carefully crafted questions that cover various aspects of PHP programming.Key features:Multiple choice questionsInstant feedbackLearn as you go","img":"https:/images/course5.png"}
Powered by: Quiz Maker