Technology medium

Coding & Programming Quiz

Variables, loops, languages, and logic — test your knowledge of coding concepts and programming history!

ā“ 20 Questions
ā± 20s Per Question
šŸ†“ Free No Sign Up

About the Coding & Programming Quiz

The Coding & Programming Quiz is a free medium-level Technology quiz featuring 20 multiple-choice questions. Variables, loops, languages, and logic — test your knowledge of coding concepts and programming history! Each question comes with a 20-second countdown timer and instant explanations after every answer so you can learn as you play. This quiz is completely free on GoKwiz — no account or sign up required.

Coding & Programming Quiz — Practice Questions

1. What is a 'variable' in programming?

  1. A fixed constant value
  2. A named storage location that holds a value
  3. A type of loop
  4. An error in the code

2. Which programming language is known for its use in data science and machine learning?

  1. PHP
  2. Python
  3. Ruby
  4. Swift

3. What does 'HTML' stand for?

  1. High-Level Text Manipulation Language
  2. Hyper Transfer Markup Language
  3. HyperText Markup Language
  4. HyperText Module Library

4. What is a 'loop' in programming?

  1. A function that calls itself
  2. A sequence of instructions repeated until a condition is met
  3. A type of data storage
  4. An error that prevents a program from running

5. What is 'open source' software?

  1. Software made by volunteer developers only
  2. Software that costs nothing to use
  3. Software whose source code is publicly available for anyone to view, modify, and distribute
  4. Software without any licensing

6. What does an 'if statement' do in programming?

  1. Declares a variable
  2. Defines a function
  3. Executes code only when a specified condition is true
  4. Repeats code a set number of times

7. What is 'debugging' in programming?

  1. Adding comments to explain code
  2. Optimising code for speed
  3. The process of finding and fixing errors in code
  4. Writing initial code from scratch

8. Which programming language was the first high-level language, designed for scientific computing in the 1950s?

  1. BASIC
  2. COBOL
  3. FORTRAN
  4. LISP

9. What is a 'function' (or method) in programming?

  1. A data storage structure
  2. A reusable named block of code that performs a specific task
  3. A type of error
  4. A type of variable

10. What does 'CSS' stand for?

  1. Cascading Style Sheets
  2. Coded Style Syntax
  3. Computer Style Sheets
  4. Creative Styling System

11. What is 'object-oriented programming' (OOP)?

  1. A paradigm organising code into objects that bundle data and behaviour
  2. A style of programming without functions
  3. Programming that only uses loops
  4. Programming using only mathematical functions

12. What is 'Git' used for?

  1. Deploying web applications
  2. Editing code files
  3. Running automated tests
  4. Version control — tracking changes to code over time

13. What does 'SQL' stand for?

  1. Sequential Query Logic
  2. Standard Queue Language
  3. Structured Query Language
  4. System Query Library

14. What is an 'API'?

  1. A type of computer virus
  2. An advanced programming instruction
  3. An automated protocol for internet connections
  4. Application Programming Interface — a way for programs to communicate with each other

15. Which company developed the Java programming language?

  1. Apple
  2. IBM
  3. Microsoft
  4. Sun Microsystems

16. What does it mean when code is described as having an 'O(n) time complexity'?

  1. The code runs in parallel
  2. The code takes the same time regardless of input size
  3. The code's time grows exponentially
  4. The code's time grows linearly with the size of the input

17. What is 'recursion' in programming?

  1. A method of sorting data
  2. A type of database query
  3. A way to optimise loops
  4. When a function calls itself as part of its execution

18. What type of error occurs when code is syntactically correct but produces unexpected results?

  1. Compile error
  2. Logic error
  3. Runtime error
  4. Syntax error

19. What is the purpose of the 'else' clause in an if-else statement?

  1. To define a new variable
  2. To end a program
  3. To execute code when the 'if' condition is false
  4. To repeat code

20. Which language is primarily used for iOS and macOS app development?

  1. Java
  2. Kotlin
  3. Objective-C
  4. Swift

Frequently Asked Questions

How many questions are in the Coding & Programming Quiz?

This quiz contains 20 questions.

Is this quiz free?

Yes, completely free with no sign up or account required. All quizzes on GoKwiz are free forever.

What category is this quiz?

This quiz is in the Technology category. Browse all Technology quizzes →

How difficult is this quiz?

This quiz is rated medium difficulty, with a 20-second timer per question.

Can I retake the Coding & Programming Quiz?

Yes, as many times as you like. Questions and answer options are shuffled every time for a fresh experience. After finishing, you can also retry only the questions you got wrong.