Coding trivia

Coding Trivia Questions and Answers

12 coding trivia questions with their answers, taken from 1 quiz in our Coding quizzes collection. Read through them to learn something new, or play each quiz first and come back to check your answers.

Coding Basics Quiz for Beginners: questions and answers

  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"

Play Coding Basics Quiz for Beginners →