What is a variable in programming?
A variable is a storage location identified by a memory address and an associated symbolic name (an identifier), which contains a value.
True or False: A function is a reusable block of code that performs a specific task.
True
Fill in the blank: In programming, ________ is the process of finding and fixing errors in the code.
debugging
What is the purpose of a loop in programming?
A loop is used to execute a block of code repeatedly until a specified condition is met.
What does ‘syntax’ refer to in programming languages?
Syntax refers to the set of rules that defines the combinations of symbols that are considered to be correctly structured programs.
Multiple choice: Which of the following is a type of loop? A) If statement B) For loop C) Variable D) Function
B) For loop
What is an array?
An array is a data structure that can hold a fixed number of values of a single type.
True or False: Object-oriented programming is a programming paradigm based on the concept of ‘objects’.
True
What is an algorithm?
An algorithm is a step-by-step procedure or formula for solving a problem.
Fill in the blank: A ________ is a construct that allows for conditional execution of code.
conditional statement
What does ‘API’ stand for?
API stands for Application Programming Interface.
Multiple choice: Which of the following is NOT a programming language? A) Python B) HTML C) Java D) SQL
B) HTML
What is the purpose of comments in code?
Comments are used to explain and annotate code, making it easier to understand for humans.
True or False: A class is a blueprint for creating objects in object-oriented programming.
True
What is the difference between compiled and interpreted languages?
Compiled languages are translated into machine code before execution, while interpreted languages are executed line by line at runtime.
Fill in the blank: The ________ is a collection of data and functions that operate on that data.
object
What is recursion in programming?
Recursion is a technique where a function calls itself in order to solve a problem.
Multiple choice: Which of the following is a common control structure? A) Variable B) Loop C) Comment D) Function
B) Loop
What is a syntax error?
A syntax error is a mistake in the code that violates the rules of the programming language, preventing it from being compiled or executed.
True or False: A data type defines the kind of data that can be stored in a variable.
True
What is a database?
A database is an organized collection of structured information or data, typically stored electronically in a computer system.
Fill in the blank: ________ is the process of translating high-level code into machine code.
Compilation
What is the purpose of version control systems?
Version control systems are used to track changes to code, allowing multiple developers to collaborate and manage different versions of a project.
Multiple choice: Which of the following is a common programming paradigm? A) Procedural B) Functional C) Object-oriented D) All of the above
D) All of the above