This C++ 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 C++ and SQL online test assesses candidates' knowledge of programming in the C++ language and their ability to use SQL.

It's an ideal test for pre-employment screening. A good C++ developer needs to be able not only to solve problems using C++ but also to write and analyze SQL queries to access a database.

This online test requires candidates to solve coding problems in C++ and to write SQL queries that extract, combine, and manipulate data.

Sample public questions

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

For example, calling unique_names(std::vector<std::string>{"Ava", "Emma", "Olivia"}, std::vector<std::string>{"Olivia", "Sophia", "Emma"}) should return a vector containing Ava, Emma, Olivia, and Sophia in any order.

10 min

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

TABLE students
   firstName VARCHAR(30) NOT NULL,
   lastName VARCHAR(30) NOT NULL
3 min

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the C++ and SQL test with public questions.

Take a Certification Test

Sample silver certificate

Peter Gibbons

Java and SQL


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

79 more premium C++ and SQL questions

  Non Zero,   Document Store,   Babushka Doll,   Out of Range,   Max Sum,   Shipping,   Limits,   Archive,   Chain Link,   Veterinarian,   Hobbies,   Node,   Paragraph,   Platformer,   Ship,   Unique Numbers,   Username,   Weighted Average,   Window Manager,   Book Sale,   Friend,   Function Cache,   Stories,   Moving Total,   Increment,   Paper Strip,   Crop Ratio,   Battery,   Stack to Vector,   Internal Nodes,   Fire Dragon,   Kilometer Converter,   String Occurrence,   Worker,   Unique Product,   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,   Tiles,   River Discharge,   ATM Locations,   Read Write Execute,   Transactions,   Merge Stock Index,   Date Transform.

Skills and topics tested

  • C++
  • Bug Fixing
  • Language
  • Memory Management
  • Exceptions
  • Algorithmic Thinking
  • Arithmetic
  • Conditional Statements
  • Destructors
  • Linked List
  • Queue
  • Iteration
  • Map
  • Vector
  • Recursion
  • Tree
  • Regex
  • Strings
  • Data Structures
  • Unordered Map
  • Sorting
  • Graphs
  • Hash and Equals
  • Dynamic Programming
  • Unordered Set
  • Arrays
  • Pointers
  • Integer Division
  • Complexity
  • Stack
  • Higher Order Function
  • Interfaces
  • OOP
  • Inheritance
  • Method Overriding
  • Stream
  • 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
  • Union
  • CTE
  • Database Normalization

For job roles

  • Back-End Developer
  • C++ Developer
  • SQL 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

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

Want to know more?

Not exactly what you're looking for?

Related C++ and SQL Programming Tests: