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