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 5.6
PHP 7.4
PHP 8.0
PHP 8.3
How to define a string variable in PHP?
String $var = "text";
$var = "text";
str $var = "text";
string $var = "text";
Which function converts string to uppercase?
toUpperCase()
strtoUpper()
upperCase()
strtoupper()
What does strlen() function return?
Number of lines
Number of bytes
Number of characters in string
Number of words
What types of arrays exist in PHP?
Only associative
Indexed and Associative
Mixed
Only indexed
How to properly connect to MySQL?
mysqli or PDO
mysql (deprecated)
Via SQL
Via HTTP
What is SQL Injection?
SQL error
Injection of malicious code via SQL queries
Low version of SQL
SQL organization
What is isset() function used for?
Set a variable
Delete variable
Restore variable
Check if variable is set
What is $_GET superglobal in PHP?
Data from GET method
Data from file
Data from POST method
Data from URL
What is a session in PHP?
HTTP connection
Permanent storage
Response to request
Temporary user data storage
What is the difference between isset() and empty()?
No difference
isset() checks existence, empty() checks value
They are the same
empty() checks existence
How to iterate through array in PHP?
while
map
foreach
for
What is a function in PHP?
Reusable block of code
Constant
Variable
Class
How to declare a function in PHP?
def name() {}
func name() {}
function name() {}
function: name() {}
What is OOP in PHP?
Output-Optimized Program
Open-Operated Program
Operation-Organized Package
Object-Oriented Programming
What is a class in PHP?
Constant
Function
Variable
Template for objects
What is inheritance in OOP?
Duplication
Unexpected transfer
Getting properties from parent class
Introduction
What are access modifiers?
Variable type
Part of SQL command
Types of functions
Control access to properties
How to write else if in PHP?
else if
elif
elseif
else-if
What is a constructor in a class?
__new()
__init()
__construct()
__create()
What is namespace in PHP?
Function constructor
Space for avoiding naming conflicts
Local scope
Data type
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