Search test library by skills or roles
⌘ K

Adaface Sample PHP Questions

Here are some sample PHP questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Dynamic Function Calls
Arrays
Strings
Functions
Solve
Consider the following PHP pseudo code:
 image
The processArray function processes the $data array based on the transformation operations defined in the $operations array. The operations array dictates which transformation function to call for each sub-array key. What will be the output of the above code?
 image

Hard

Alter and Change
OOPs
Solve
What does the following code output?
 image

Hard

Exceptions
Exceptions
Solve
What does the following code output?
 image

Easy

PDO MySQL
Database Connections
Solve
Consider the following table data and PHP code. What is the result?
            
 image

Medium

Session Management and Object Serialization
Sessions
Serialization
Solve
Consider the following PHP script:
 image
Assuming you run the script twice in a row without clearing the session data, what will be the output on the second run?
🧐 Question🔧 Skill

Medium

Dynamic Function Calls
Arrays
Strings
Functions

2 mins

PHP
Solve

Hard

Alter and Change
OOPs

2 mins

PHP
Solve

Hard

Exceptions
Exceptions

2 mins

PHP
Solve

Easy

PDO MySQL
Database Connections

2 mins

PHP
Solve

Medium

Session Management and Object Serialization
Sessions
Serialization

2 mins

PHP
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Dynamic Function Calls
Arrays
Strings
Functions
PHP
Medium2 mins
Solve
Alter and Change
OOPs
PHP
Hard2 mins
Solve
Exceptions
Exceptions
PHP
Hard2 mins
Solve
PDO MySQL
Database Connections
PHP
Easy2 mins
Solve
Session Management and Object Serialization
Sessions
Serialization
PHP
Medium2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1200+ companies in 75+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️