Coding and Programming
  • 1. Coding and programming involve the process of creating instructions for computers to follow in order to perform specific tasks. It requires logical thinking, problem-solving skills, and attention to detail. Programmers use various programming languages such as Python, Java, and C++ to write code that tells a computer how to execute commands and algorithms efficiently. Coding is not only a technical skill but also a creative process that allows individuals to bring their innovative ideas to life through software development. Through coding and programming, individuals can build websites, apps, games, and other software applications that can have a significant impact on society and drive technological advancements.

    What is the purpose of coding?
A) To create physical prototypes for products.
B) To create instructions for computers to execute.
C) To fix bugs in software applications.
D) To design graphics for websites.
  • 2. What does HTML stand for?
A) HyperText Markup Language
B) High-Tech Multimedia Language
C) Home Tooling Markup Language
D) Hyperlink Text Management Language
  • 3. What is the purpose of a variable in programming?
A) To store and manipulate data.
B) To create animations in games.
C) To secure a network.
D) To display text on the screen.
  • 4. What function is used to print output in Python?
A) show()
B) display()
C) output()
D) print()
  • 5. What does CSS stand for?
A) Code Syntax Selector
B) Creative Style Solutions
C) Cascading Style Sheets
D) Computer Style System
  • 6. What is the purpose of a loop in programming?
A) To create mathematical functions.
B) To connect to a database.
C) To store data persistently.
D) To repeat a set of instructions.
  • 7. Which symbol is commonly used for comments in programming?
A) **
B) ##
C) --
D) //
  • 8. What is the core concept behind Object-Oriented Programming (OOP)?
A) Text-based user interfaces.
B) Functions that can be reused in multiple programs.
C) Objects that can contain data and code to manipulate that data.
D) Creating complex mathematical algorithms.
  • 9. Which data structure uses a last-in, first-out (LIFO) approach?
A) Linked List
B) Queue
C) Array
D) Stack
  • 10. What is the file extension for a JavaScript file?
A) .py
B) .js
C) .css
D) .html
  • 11. Which tool is commonly used for version control in programming?
A) Git
B) Notepad++
C) Photoshop
D) Microsoft Excel
  • 12. What does IDE stand for in coding?
A) Intelligent Debugging Extension
B) Integrated Development Environment
C) Interactive Design Environment
D) Internet Development Engine
  • 13. What does the 'if' statement do in programming?
A) Performs mathematical calculations.
B) Iterates over a collection of elements.
C) Defines a new variable.
D) Executes a block of code only if a specified condition is true.
  • 14. What is the process of finding and fixing errors in a program called?
A) Debugging
B) Execution
C) Compiling
D) Encoding
  • 15. Which language is often used for creating mobile applications?
A) Java
B) R
C) Ruby
D) PHP
  • 16. What does API stand for in programming?
A) Application Programming Interface
B) Automated Program Integration
C) Advanced Performance Instructions
D) Assisted Programming Interface
  • 17. What is a method in object-oriented programming?
A) A comment within the code.
B) A reserved keyword for declaring variables.
C) A way to import external libraries.
D) A function that belongs to a class and can be called on instances of that class.
  • 18. Which programming language is often used for machine learning and data science?
A) Java
B) Python
C) C++
D) Ruby
  • 19. Which data type in JavaScript can hold both text and numbers?
A) Boolean
B) Float
C) Integer
D) String
  • 20. Which symbol is used to indicate a single line comment in PHP?
A) --
B) --.
C) #
D) //
  • 21. Which programming language is commonly used for developing mobile apps?
A) C#
B) PHP
C) Ruby
D) Swift
  • 22. Which programming language is often used for building dynamic web pages?
A) Python
B) C++
C) JavaScript
D) Java
Created with That Quiz — where a math practice test is always one click away.