This HTML/CSS, JavaScript, Ruby, and SQL Online Test Separates Good From Bad Hires

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

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

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

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

Sample public questions

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

HTML/CSS
Borders
Element Size
Styling
Easy
7 min
code
Public

Implement the unique_names method. When passed two arrays of names, it will return an array containing the names that appear in either or both arrays. The returned array should have no duplicates.

For example, calling unique_names(["Ava", "Emma", "Olivia"], ["Olivia", "Sophia", "Emma"]) should return an array containing Ava, Emma, Olivia, and Sophia in any order.

Ruby
Arrays
Easy
10 min
code
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.

JavaScript
Error Handling
Language
Easy
3 min
code
Public

Given the following data definition, write a query that returns the number of students whose first name is John.

TABLE students
   id INTEGER PRIMARY KEY,
   firstName VARCHAR(30) NOT NULL,
   lastName VARCHAR(30) NOT NULL
SQL
Aggregation
Select
Easy
3 min
code
Public

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the HTML/CSS, JavaScript, Ruby, and SQL test with public questions.

Take a Certification Test

Sample silver certificate

Kera Lafleur

Java and SQL

TestDome
Certificate

TestDome logo on certificate

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

136 more premium HTML/CSS, JavaScript, Ruby, and SQL questions

  Document Store,   Positive Numbers,   Greeter,   Links,   Truthy Expressions,   Ranges,   Log Patch,   Shipping,   Numbers to Text,   Ad,   Article Style,   Baby Names,   Category Tree,   Chain Link,   Cities,   Editor,   Format Table,   Hobbies,   Keywords,   Label Color,   Loading,   Logo,   Paragraph,   Products,   Shirts,   Upload,   Username,   Warehouse,   Widgets,   Language Teacher,   iframe,   Max Sum,   Crop Ratio,   Launch Time,   Function Wrapper,   Link,   Log Parser,   Unique Numbers,   Load URL,   Photon Frequency,   String Occurrence,   Addition,   Trading Data Paging,   Color Codes,   Tax Calculator,   Bookmark,   Screen Reader,   Game Offer,   Bicycle Report,   Curious Leaf,   Gaming Console,   Travel Blog,   Confirm,   Blog,   Friend,   Roads,   Authors,   Autocomplete,   Ban Users,   Bank Branches,   Cheapest Product,   Countries,   Developers,   Hospital Patients,   Index Performance,   Menu Items,   Movies,   Projects,   Rectangles,   Restaurant Menu,   Retirees,   SMS Messages,   Poll,   Users and Accounts,   Matching Clothes,   Agents,   Sales,   Employee Manager,   Auto Show,   Delete Orders,   Welfare Organization,   Tasks,   Manager Sales,   Student Rankings,   Student Activities,   Youngest Child,   Movies Live,   Department Report,   Ingredients,   Average Salary,   Movie Genres,   Segment,   Christmas Tree,   Timesheet,   Email Tables,   Data Entry,   Price List,   Ice Cream Flavors,   Memory Game,   TestDome Logo,   River Discharge,   ATM Locations,   Read Write Execute,   Read First Line,   New Folder,   Post Comment,   Row Appender,   Vectors,   Segment,   Special Actions,   Height,   Product Rating,   Validation,   Cards,   Array Search,   Screen,   Timer,   Username,   Snapshot,   Scale Font Size,   Products,   Paragraph,   Hide Button,   A Tag,   Hobbies,   Loading Bar,   Log Patch,   Double,   Table of Names,   Filter,   Transactions,   Reorder,   Share Button,   Merge Stock Index,   Date Transform,   Date Transform.

Skills and topics tested

  • Ruby
  • Bug Fixing
  • Language
  • JavaScript
  • Closures
  • HTML/CSS
  • CSS Selectors
  • Styling
  • Ranges
  • Monkey Patching
  • Arithmetic
  • Strings
  • Element Spacing
  • Flexbox
  • Positioning
  • Exceptions
  • Hash
  • Linked List
  • Fonts
  • Elements and Attributes
  • HTML5
  • Arrays
  • Iteration
  • Animation
  • Regex
  • JSON
  • Serialization
  • Sorting
  • Forms
  • Inheritance
  • OOP
  • Hyperlink
  • IFrame
  • Algorithmic Thinking
  • Integer Division
  • Timing Events
  • XML
  • Dictionary
  • Ajax
  • HTTP
  • Promise
  • Stream
  • CSS Advanced
  • Element Size
  • Pagination
  • Associative Arrays
  • Classes
  • Objects
  • Bookmarks
  • Accessibility
  • CSS Basics
  • Tables
  • Responsive Design
  • UI
  • Dialog Box
  • Event Handling
  • Semantic Tags
  • Graphs
  • SQL
  • Conditions
  • Views
  • Select
  • Create Index
  • Database Schema
  • Performance Tuning
  • Alter Table
  • Constraints
  • Create Table
  • Aggregation
  • Subqueries
  • Ordering
  • Indexes
  • Group by
  • Update
  • Insert
  • Joins
  • Left Join
  • Right Join
  • Delete
  • SQL CASE
  • Union
  • CTE
  • Borders
  • Inline Styles
  • Selectors
  • CSS Layout
  • Database Normalization
  • Content Manipulation
  • DOM Manipulation
  • Attribute Manipulation
  • Recursion
  • ECMAScript 2015
  • Asynchronous Calls
  • Callback

For job roles

  • Full-Stack Developer
  • JavaScript Developer
  • Ruby Developer
  • SQL Developer
  • Web Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1
Choose a pre-made test or create a custom test.
2
Invite candidates via email, URL or your ATS
3
Candidates take a test remotely
4
Sort candidates and get individual reports

Want to know more?