This HTML/CSS, JavaScript, Python, Django, 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, Python, Django, and SQL online test assesses candidates' ability to develop applications using the Django web framework, front-end skills (HTML/CSS and JavaScript), and back-end skills (Python and SQL).

It's an ideal test for pre-employment screening. A good full-stack Django Python developer needs an in-depth understanding of the Django framework and how to leverage its tools and features to create robust scalable web applications quickly.

This online test requires candidates to answer questions common to the Django web framework, use HTML/CSS to implement and style web pages, and solve coding problems using JavaScript, Python, and SQL.

Sample public questions

With APPEND_SLASH set to True, the routes below are for a Django app that maintains movie archives.

from django.urls import path
from . import views

urlpatterns = [
    path('movies/2000/', views.new_millenium),
    path('movies/<int:year>/', views.by_year),
    path('movies/<int:year>/<int:month>/', views.by_year_month),
    path('movies/<int:year>/<int:month>/<slug:other>/', views.by_year_month_detail),
]

Which options are correct for the given routes?

Django
URL Routing
Easy
3 min
mca
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

HTML/CSS
Borders
Element Size
Styling
Easy
7 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

A university's Office of Admission keeps track of student majors. Each student can have a single major. Below is an example of how their system stores students, majors, and how it manipulates them:

students = [("Allen Anderson", "Computer Science"),
            ("Edgar Einstein", "Engineering"),
            ("Farrah Finn", "Fine Arts")]
     
def add_new_student(students, name, major):
    students.append((name, major))

def update_student(students, index, name, major):
    students[index] = (name, major)

def find_students_by_name(students, name):
    return [student for student in students if name in student[0]]

def get_all_majors(students):
    return [student[1] for student in students]

What can be concluded from the code snippet above?

Python
Lists
Tuples
Easy
3 min
mca
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, Python, Django, and SQL test with public questions.

Take a Certification Test

Sample silver certificate

Peter Gibbons

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

165 more premium HTML/CSS, JavaScript, Python, Django, and SQL questions

Document Store, Positive Numbers, Links, Truthy Expressions, Is Alpha, Shipping, Log Patch, Ad, Article Style, Baby Names, Category Tree, Cities, Editor, Format Table, Keywords, Label Color, Loading, Logo, Paragraph, Products, Shirts, Upload, Username, Warehouse, Widgets, Language Teacher, Reward Points, Greeter, Tuple Slice, Medical Record, Numbers to Text, Hobbies, iframe, Procedural Generator, Kilometer Converter, Max Sum, Crop Ratio, Launch Time, Function Wrapper, Link, Log Parser, Log Parser, Cargo Ship, Unique Numbers, Load URL, Photon Frequency, String Occurrence, Addition, Date Transform, Random Playlist, File Format, Book Authors, Count Hobbies, Trading Data Paging, Color Codes, Chain Link, Tax Calculator, XML Navigation, Bookmark, Screen Reader, Game Offer, Bicycle Report, Curious Leaf, Gaming Console, Travel Blog, Confirm, Blog, Special Actions, Friend, Roads, Authors, Autocomplete, Ban Users, Bank Branches, Cheapest Product, Countries, Developers, Hospital Patients, Index Performance, Menu Items, Merge Stock Index, 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, Ceramic Store, Action Stack, Read Write Execute, Demo Reports, Home Page, Add Payment, Cafe Session, Teacher Contact, Read First Line, New Folder, Post Comment, Row Appender, Vectors, Segment, Special Actions, Date Transform, 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, Veterinarian, Book Sale, Unique Numbers, Moving Total, Max Sum, Internal Nodes, Paper Strip, Friend, Flight Connections.

Skills and topics tested

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

For job roles

  • Django Developer
  • Full-Stack Developer
  • JavaScript Developer
  • Python 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 short 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?

Not exactly what you're looking for?

Related HTML/CSS, JavaScript, Python, Django, and SQL Programming Tests: