HTML/CSS, JavaScript, PHP, and SQL Online Test

TestDome skill assessments are used by more than 5,000 companies and 450,000 individual test takers.

Jobseekers: Get a Certificate

Take a Practice Test

Companies: Try First, Pay Later

Sign Up To Use This Test

The HTML/CSS, JavaScript, PHP, and SQL online test assesses candidates' knowledge across the whole Web stack from HTML, CSS, and JavaScript on the Web front-end over PHP on the back-end to SQL for data access.

It's an ideal test for pre-employment screening. A good full stack PHP developer needs to be able to use a wide range of technologies.

This online test requires candidates to solve coding problems and find and fix bugs in multiple technologies.

Recommended Job Roles
Full-Stack Developer
JavaScript Developer
PHP Developer
SQL Developer
Web Developer
Sample Candidate Report

Sample Free Questions

Ensure

3min
  -  
Easy  
  -  
CODE

JavaScript Error handling Language Public

Implement the ensure function so that it throws an error if called without arguments or the argument is undefined. Otherwise it should return the given value.

Students

3min
  -  
Easy  
  -  
CODE

SQL Aggregation Select Public

Given the following data definition, write a query that returns the number of students whose first name is John. String comparisons should be case sensitive.

TABLE students
   id INTEGER PRIMARY KEY,
   firstName VARCHAR(30) NOT NULL,
   lastName VARCHAR(30) NOT NULL

Avatar

7min
  -  
Easy  
  -  
CODE

HTML/CSS Borders Element size Styling Public

Every user on your website has an image avatar that is displayed when they post a comment. You want to style these images differently from other images on your site. Add a CSS class named avatar that fulfils the following requirements:

  1. The avatar's border is rounded, so that it appears as a circle.
  2. The avatar's width and height are both 150px.
  3. The avatar has a solid border, has a width of 2px, and be colored gray.

For example, the avatar in the template should look like:

Cat avatar

File Owners

10min
  -  
Easy  
  -  
CODE

PHP Associative arrays Public

Implement a groupByOwners function that:

  • Accepts an associative array containing the file owner name for each file name.
  • Returns an associative array containing an array of file names for each owner name, in any order.

For example, for associative array ["Input.txt" => "Randy", "Code.py" => "Stan", "Output.txt" => "Randy"] the groupByOwners function should return ["Randy" => ["Input.txt", "Output.txt"], "Stan" => ["Code.py"]].

Use Free Questions On a Trial Plan

Premium Questions

The premium question library contains our unique, hand-crafted questions. We offer a refund if you find any of them answered online.

Questions
Filter, Positive Numbers, Links, Function Wrapper, Double, Truthy Expressions, Roads, Table of Names, Word Count, Cards, Greeter, Read First Line, Filter, Last Key, Word Count, Needle, Height, New Folder, Log Patch, Shipping, Loading Bar, Ingredients, Array Search, Array Search, Read Write Execute, Reorder, Segment, Segment, Hobbies, Numbers to Text, A Tag, Ad, Addition, Array Sum, Article Style, ATM Locations, Authors, Autocomplete, Baby Names, Ban Users, Bank Branches, Blog, Bookmark, Category Tree, Chain Link, Cheapest Product, Chicken, Christmas Tree, Cities, Confirm, Cookie, Countries, Crop Ratio, Date Transform, Date Transform, Department Report, Developers, Editor, Employee Manager, Format Table, Height, Hide Button, Hobbies, Hospital Patients, Index Performance, Menu Items, Merge Stock Index, Movies, Movies Live, Projects, Rectangles, Restaurant Menu, Retirees, Sales, SMS Messages, Student Activities, Tasks, Transactions, Youngest Child, iframe, Keywords, Label Color, Link, Loading, Log Parser, Log Parser, Logo, Paragraph, Paragraph, Post Comment, Product Rating, Products, Products, Row Appender, Scale Font Size, Screen Reader, Share Button, Shirts, Snapshot, TestDome Logo, Timesheet, Upload, Username, Username, Vectors, Vectors, View Count, Warehouse, Widgets, Language Teacher, Welfare Organization, Manager Sales, Delete Orders, Validation, Timer, Unique Numbers, Screen, Data Entry, Email Tables, Student Max Score, Average Salary, Movie Genres, Student Rankings, Auto Show, Ice Cream Flavors, Poll, Breakfast Menu
Skills
JavaScript Arrays Closures HTML/CSS CSS selectors Styling Exceptions DOM manipulation Event handling Language SQL Conditions Views Strings PHP Stream Arithmetic Monkey patching HTML5 Subqueries Update Recursion Iteration Attribute manipulation Element spacing CSS advanced Element size Pass by reference Constraints Create table Database schema Select Create index Performance tuning Flexbox Positioning Alter table Elements and attributes Semantic tags Bookmarks Associative arrays Linked list Aggregation Interfaces OOP Fonts Dialog box Session Ordering Bug fixing Integer division Regex Insert Left join Objects Asynchronous calls Indexes Union Group by Joins Hyperlink IFrame Animation Serialization XML Content manipulation JSON Sorting Accessibility Forms CSS layout Tables Inheritance SQL CASE CTE Delete Callback Algorithmic thinking Classes ECMAScript 2015 Borders Inline styles Responsive design Selectors
Score Distribution
# of candidates
0-33%
34-66%
67-100%
Score
Pricing For Premium Questions