💻
Programming Easy

Programming Basics

Simple programming concepts for absolute beginners. Start your coding journey!

10 Questions
25s Per Question
2+ Plays
← All Programming Quizzes 📚 Study Guide for this category →
💡 Create account to save scores & earn XP
📋 View All 10 Questions & Answers

1. What is the correct file extension for a Python file?

  • A. .java
  • B. .py ✓
  • C. .cpp
  • D. .js

💡 Python files use the .py extension. For example: hello.py

2. Which data type stores whole numbers?

  • A. Float
  • B. String
  • C. Boolean
  • D. Integer ✓

💡 An integer (int) stores whole numbers without decimal points, like 1, 42, or -7.

3. Which symbol is used for single-line comments in Python?

  • A. //
  • B. /*
  • C. --
  • D. # ✓

💡 In Python, the # symbol is used to write single-line comments.

4. What is a variable in programming?

  • A. A fixed value
  • B. A type of loop
  • C. A named storage location for data ✓
  • D. A programming language

💡 A variable is a named container that stores data which can change during program execution.

5. What does "bug" mean in programming?

  • A. A feature
  • B. A type of loop
  • C. An error or flaw in code ✓
  • D. A programming language

💡 A bug is an error, flaw, or unexpected behavior in a program that causes it to produce incorrect results.

6. Which of these is a programming language?

  • A. HTML
  • B. CSS
  • C. Python ✓
  • D. HTTP

💡 Python is a programming language. HTML and CSS are markup/styling languages, HTTP is a protocol.

7. What is the output of: print("Hello, World!")?

  • A. Hello World
  • B. Hello, World! ✓
  • C. hello, world!
  • D. "Hello, World!"

💡 The print() function outputs exactly what is inside the quotes: Hello, World!

8. What does CPU stand for?

  • A. Central Processing Unit ✓
  • B. Computer Personal Unit
  • C. Central Program Utility
  • D. Core Processing Unit

💡 CPU stands for Central Processing Unit — the primary component that executes instructions in a computer.

9. What does HTML stand for?

  • A. Hyper Text Markup Language ✓
  • B. High Tech Modern Language
  • C. Hyper Transfer Markup Language
  • D. Home Tool Markup Language

💡 HTML stands for HyperText Markup Language — the standard language for creating web pages.

10. Which of these is used to store a list of items in Python?

  • A. Dictionary
  • B. Tuple
  • C. String
  • D. List ✓

💡 A list in Python stores multiple items in a single variable: my_list = [1, 2, 3].

More Programming Quizzes

View all Programming quizzes →