Coding quiz illustration
Coding

Coding Basics Quiz for Beginners

HTML, CSS, JavaScript, Python, and Git. Twelve questions to check your programming fundamentals.

12 questions•Instant result
Start the quiz →

About this quiz

How well do you know coding?

Whether you are learning to code or have shipped software for years, these fundamentals come up again and again.

This beginner-friendly coding quiz covers web languages, basic Python and JavaScript, data structures, binary numbers, Git, and HTTP status codes. A couple of questions catch out experienced developers too.

Advertisement slot
Take the quiz

Coding Basics Quiz for Beginners at a glance

Questions
12
Difficulty
Medium
Time
About 6 min
Type
Trivia, scored

How to play

There are 12 questions: pick the answer you think is right for each question. You get one point for every correct answer. It takes about 6 minutes. Your score appears at the end, so you can see how you compare and challenge a friend to beat it.

Part of our Coding quizzes.

Coding Basics Quiz for Beginners questions and answers

Finished playing, or stuck? Open the answer key to check every question.

Show all 12 answers (spoilers)
  1. What does HTML stand for?

    Answer: HyperText Markup Language

  2. Which language is mainly used to style the look of web pages?

    Answer: CSS

  3. In JavaScript, which keyword declares a variable that cannot be reassigned?

    Answer: const

  4. What does SQL stand for?

    Answer: Structured Query Language

  5. Which data structure follows the First In, First Out (FIFO) rule?

    Answer: Queue

  6. In Python, what does len("hello") return?

    Answer: 5

  7. Which symbol starts a single-line comment in Python?

    Answer: #

  8. What is the decimal number 5 written in binary?

    Answer: 101

  9. Which Git command makes a local copy of a remote repository?

    Answer: git clone

  10. What is the time complexity of binary search on a sorted array?

    Answer: O(log n)

  11. Which HTTP status code means the requested page was not found?

    Answer: 404

  12. In JavaScript, what does typeof null return?

    Answer: "object"

Possible results