Paper 2 Flashcards
(24 cards)
What are programming constructs?
Basic building blocks of programming languages that control the flow of execution
What is a flowchart?
A diagram that represents a process or algorithm using various symbols
What are syntax errors?
Mistakes in the code that violate the grammatical rules of the programming language
What are logic errors?
Errors in a program that cause it to operate incorrectly but do not prevent it from running
What is a binary search?
An efficient algorithm for finding an item from a sorted list by repeatedly dividing the search interval in half
What are sorting algorithms?
Algorithms that arrange the elements of a list in a certain order, typically ascending or descending
What is defensive design?
A design approach that anticipates potential problems and incorporates measures to prevent them
What is a truth table?
A table that shows all possible values of logical variables and the result of logical operations
What are logic circuits?
Electronic circuits that perform logical operations on one or more binary inputs to produce a single binary output
What is an algorithm?
A step-by-step procedure or formula for solving a problem
What are low-level languages?
Programming languages that provide little abstraction from a computer’s instruction set, such as assembly language
What are high-level languages?
Programming languages that are more abstract and easier for humans to read and write, such as Python or Java
What are compilers?
Programs that translate high-level code into machine code
What are interpreters?
Programs that execute high-level code directly, translating it line by line
What is maintainability in programming?
The ease with which software can be modified to correct faults, improve performance, or adapt to a changed environment
What is a function in programming?
A block of code designed to perform a particular task, which can be reused throughout the program
What are data types?
Categories of data that determine the type of value a variable can hold, such as integers, strings, or booleans
What are arrays?
Data structures that store multiple values of the same type in a single variable
What is test data?
Data used to test the functionality and performance of a program
What does SQL stand for?
Structured Query Language
What is abstraction in programming?
The concept of hiding complex implementation details and showing only the essential features of an object
What is decomposition in programming?
The process of breaking down a complex problem into smaller, more manageable parts
Fill in the blank: A __________ is a diagram that represents a process or algorithm.
flowchart
True or False: Logic errors prevent a program from running.
False