Paper 2 Flashcards

(24 cards)

1
Q

What are programming constructs?

A

Basic building blocks of programming languages that control the flow of execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a flowchart?

A

A diagram that represents a process or algorithm using various symbols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are syntax errors?

A

Mistakes in the code that violate the grammatical rules of the programming language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are logic errors?

A

Errors in a program that cause it to operate incorrectly but do not prevent it from running

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a binary search?

A

An efficient algorithm for finding an item from a sorted list by repeatedly dividing the search interval in half

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are sorting algorithms?

A

Algorithms that arrange the elements of a list in a certain order, typically ascending or descending

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is defensive design?

A

A design approach that anticipates potential problems and incorporates measures to prevent them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a truth table?

A

A table that shows all possible values of logical variables and the result of logical operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are logic circuits?

A

Electronic circuits that perform logical operations on one or more binary inputs to produce a single binary output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an algorithm?

A

A step-by-step procedure or formula for solving a problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are low-level languages?

A

Programming languages that provide little abstraction from a computer’s instruction set, such as assembly language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are high-level languages?

A

Programming languages that are more abstract and easier for humans to read and write, such as Python or Java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are compilers?

A

Programs that translate high-level code into machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are interpreters?

A

Programs that execute high-level code directly, translating it line by line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is maintainability in programming?

A

The ease with which software can be modified to correct faults, improve performance, or adapt to a changed environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a function in programming?

A

A block of code designed to perform a particular task, which can be reused throughout the program

17
Q

What are data types?

A

Categories of data that determine the type of value a variable can hold, such as integers, strings, or booleans

18
Q

What are arrays?

A

Data structures that store multiple values of the same type in a single variable

19
Q

What is test data?

A

Data used to test the functionality and performance of a program

20
Q

What does SQL stand for?

A

Structured Query Language

21
Q

What is abstraction in programming?

A

The concept of hiding complex implementation details and showing only the essential features of an object

22
Q

What is decomposition in programming?

A

The process of breaking down a complex problem into smaller, more manageable parts

23
Q

Fill in the blank: A __________ is a diagram that represents a process or algorithm.

24
Q

True or False: Logic errors prevent a program from running.