#1 Flashcards
What is a variable in programming?
A storage location identified by a variable name that holds data.
True or False: A function is a reusable block of code that performs a specific task.
True
Fill in the blank: The _____ is a sequence of instructions that a computer can execute.
program
What does ‘syntax’ refer to in programming languages?
The set of rules that defines the combinations of symbols that are considered to be correctly structured programs.
What is an algorithm?
A step-by-step procedure for solving a problem or accomplishing a task.
Multiple Choice: Which of the following is NOT a programming language? A) Python B) HTML C) Java D) CSS
B) HTML
What is the purpose of a loop in programming?
To execute a block of code repeatedly until a specified condition is met.
True or False: Object-oriented programming is based on the concept of ‘objects’ which can contain data and code.
True
Fill in the blank: A _____ is a collection of data items that are stored under a single name.
data structure
What is a compiler?
A program that translates code written in a high-level programming language into machine code.
Multiple Choice: Which symbol is used for comments in Python? A) // B) # C) /* D) –
B) #
What is debugging?
The process of identifying and removing errors from computer software or hardware.
True or False: A database is used to store and manage data.
True
Fill in the blank: The _____ is a part of a program that specifies what data will be stored and how it will be organized.
data model
What does ‘API’ stand for?
Application Programming Interface
Multiple Choice: Which of the following is a type of loop? A) For loop B) While loop C) Do-while loop D) All of the above
D) All of the above
What is a class in object-oriented programming?
A blueprint for creating objects that defines a set of attributes and methods.
True or False: A stack is a data structure that follows the Last In First Out (LIFO) principle.
True
Fill in the blank: In programming, an _____ is a named section of a program that performs a specific task.
function
What is recursion?
When a function calls itself in order to solve a problem.
Multiple Choice: Which of the following is a common version control system? A) Git B) GitHub C) Bitbucket D) All of the above
D) All of the above
What is a framework?
A platform for developing software applications that provides a foundation to build upon.
True or False: A bug is an error in a program that causes it to produce incorrect or unexpected results.
True
Fill in the blank: The _____ is a section of code that is executed when a specific condition is met.
conditional statement
What is a variable scope?
The context in which a variable is defined and accessible within a program.
Multiple Choice: Which of the following is a widely used programming paradigm? A) Procedural programming B) Functional programming C) Object-oriented programming D) All of the above
D) All of the above
What does ‘debugger’ refer to?
A tool used to test and debug programs by allowing the programmer to inspect the execution of code.