ArmWeb
News
Video lessons
Quizzes
Messenger
Forum
Site order
Advertising
Contact
About Developer
Sitemap
Login
Register
◀ Back to list
Quiz: Basic PHP questions
Core PHP ideas and use in web development.
Which version of PHP is most stable?
PHP 7.4
PHP 8.0
PHP 5.6
PHP 8.3
How to define a string variable in PHP?
str $var = "text";
string $var = "text";
$var = "text";
String $var = "text";
Which function converts string to uppercase?
strtoupper()
toUpperCase()
upperCase()
strtoUpper()
What does strlen() function return?
Number of characters in string
Number of lines
Number of bytes
Number of words
What types of arrays exist in PHP?
Only associative
Mixed
Only indexed
Indexed and Associative
How to properly connect to MySQL?
Via SQL
Via HTTP
mysql (deprecated)
mysqli or PDO
What is SQL Injection?
SQL error
SQL organization
Low version of SQL
Injection of malicious code via SQL queries
What is isset() function used for?
Check if variable is set
Set a variable
Restore variable
Delete variable
What is $_GET superglobal in PHP?
Data from POST method
Data from file
Data from GET method
Data from URL
What is a session in PHP?
Permanent storage
HTTP connection
Response to request
Temporary user data storage
What is the difference between isset() and empty()?
isset() checks existence, empty() checks value
empty() checks existence
They are the same
No difference
How to iterate through array in PHP?
for
foreach
while
map
What is a function in PHP?
Class
Reusable block of code
Variable
Constant
How to declare a function in PHP?
def name() {}
func name() {}
function name() {}
function: name() {}
What is OOP in PHP?
Output-Optimized Program
Object-Oriented Programming
Open-Operated Program
Operation-Organized Package
What is a class in PHP?
Function
Template for objects
Constant
Variable
What is inheritance in OOP?
Introduction
Getting properties from parent class
Duplication
Unexpected transfer
What are access modifiers?
Variable type
Types of functions
Control access to properties
Part of SQL command
How to write else if in PHP?
else-if
elif
elseif
else if
What is a constructor in a class?
__construct()
__new()
__create()
__init()
What is namespace in PHP?
Space for avoiding naming conflicts
Local scope
Data type
Function constructor
Submit answers
Top participants
10
50
100
All
#
Participant
Score
%
1
admin
5 / 21
23.81%
2
admin
3 / 21
14.29%
Delete
Cancel
Delete
!
Support
ArmWeb Support
ArmAI assistant
×
ArmAI
Administrator
ArmAI answers only ArmWeb site and support questions.
Hi, I am ArmAI, the ArmWeb support assistant. I can help with registration, login, profile, news, video lessons, quizzes, site orders, or advertising.
Send