Content Area 2: Introduction to Programming Flashcards

1
Q

What are program data types?

A

Fundamental classifications of data that determine the type of values a variable can hold and the operations that can be performed on it. Common data types include: string, character, integer, real/float, and Boolean.

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

What is a string data type?

A

A sequence of characters used to represent text.

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

What is a character data type?

A

A single symbol.

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

What is an integer data type?

A

A whole number (positive, negative, or zero) without a decimal point.

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

What is a real/float data type?

A

A number that can have a decimal point.

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

What is a Boolean data type?

A

A logical data type that can have one of two values: True or False.

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

What are constants in programming?

A

Fixed values that cannot be changed during the execution of a program. They are often used for values that are known and do not need to be modified.

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

What are variables?

A

Named storage locations in memory that can hold data that can be changed during the execution of a program. They are given meaningful names to represent the data they store.

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

What are data structures?

A

Ways of organising and storing data in a computer so that it can be accessed and used efficiently. Common data structures include: list, array, and dictionary.

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

What is a list data structure?

A

An ordered sequence of items that can be of different data types and can be modified.

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

What is an array data structure?

A

A collection of items of the same data type stored in contiguous memory locations, accessed using an index.

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

What is a dictionary data structure?

A

A collection of key-value pairs, where each key is unique and used to access its corresponding value.

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

What are local variables?

A

Variables that are declared and can only be accessed within a specific block of code, such as a function or procedure. They have a limited scope.

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

What are global variables?

A

Variables that are declared outside any function or procedure and can be accessed from any part of the program.

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

What are variable naming conventions?

A

Rules and best practices for naming variables to make code more readable and understandable. Common conventions include using meaningful names, consistent case, and underscores.

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

What are operators in programming?

A

Symbols or keywords that perform operations on one or more operands (values or variables).

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

What are mathematical operators?

A

Symbols used to perform arithmetic calculations, such as add (+), subtract (-), divide (/), multiply (*), integer division (//), and modulus (%).

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

What are relational operators?

A

Symbols used to compare two values. They evaluate to a Boolean value (True or False). Common relational operators include: equal to (==), not equal to (<>), less than (<), greater than (>), less than or equal to (<=), and greater than or equal to (>=).

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

What are Boolean operators?

A

Logical operators used to combine or modify Boolean values. Common Boolean operators include: NOT, AND, and OR.

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

What is file handling?

A

The process of reading data from and writing data to files stored on a computer’s storage.

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

What are text files?

A

A type of file that stores data as plain text, where each line typically ends with a newline character. They are commonly used for input and output of data.

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

What is program structure?

A

The way in which the different parts of a program are organised and how they control the flow of execution.

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

What is sequence in programming?

A

A program structure where instructions are executed one after another in a linear order.

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

What is selection (branching) in programming?

A

A program structure that allows the program to execute different blocks of code based on whether a condition is true or false. Common selection statements include IF, THEN, ELSE, ELSEIF (ELIF), and CASE.

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

What is iteration (looping) in programming?

A

A program structure that allows a block of code to be executed repeatedly until a certain condition is met or for a set number of times. Common iteration constructs include ‘For’ loops and ‘While’ loops.

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

What are functions?

A

Reusable blocks of code that perform a specific task. They can accept input values (parameters) and return an output value. Functions must be declared (defined) before they can be called (executed).

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

What are procedures?

A

Reusable blocks of code similar to functions but typically do not return a value directly.

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

What are standard searching algorithms?

A

Established methods for finding a specific item within a collection of items. Examples include linear search and binary search.

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

What is linear search?

A

A searching algorithm that checks each item in a list sequentially until the target item is found or the end of the list is reached. It can be used on unsorted data.

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

What is binary search?

A

An efficient searching algorithm that works on sorted data. It repeatedly divides the search interval in half.

31
Q

What are standard sorting algorithms?

A

Established methods for arranging items in a collection in a specific order (e.g., ascending or descending). Examples include bubble sort, insertion sort, and merge sort.

32
Q

What is bubble sort?

A

A simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.

33
Q

What is insertion sort?

A

A sorting algorithm that builds the final sorted array one item at a time. It inserts each element into its correct position in the already sorted part of the array.

34
Q

What is merge sort?

A

An efficient, general-purpose, comparison-based sorting algorithm. It divides the list into halves until each sub-list has one element, then repeatedly merges sub-lists.

35
Q

What are built-in functions?

A

Pre-written code provided by a programming language that performs specific tasks.

36
Q

What is pre-written code?

A

Code that has been developed and tested by others, which can be reused in new programs.

37
Q

What are standard libraries?

A

Collections of pre-written modules and functions that provide additional functionality beyond the built-in functions of a programming language.

38
Q

What is user-written code?

A

Code that is created by the programmer to perform specific tasks within their program.

39
Q

What is validation?

A

The process of checking if data meets certain criteria before it is processed to prevent errors and ensure data integrity.

40
Q

What is error handling?

A

The process of anticipating and managing errors that may occur during the execution of a program.

41
Q

What is a presence check?

A

A validation technique that ensures that a field has not been left empty.

42
Q

What is a length check?

A

A validation technique that ensures that data entered meets a specific length requirement (minimum or maximum number of characters).

43
Q

What is a type check?

A

A validation technique that ensures that the data entered is of the correct data type (e.g., number, text).

44
Q

What is a format check?

A

A validation technique that ensures that the data entered follows a specific pattern or format (e.g., email address, postcode).

45
Q

What is a range check?

A

A validation technique that ensures that a numerical value is within a specified range (minimum and maximum values).

46
Q

What is a check digit?

A

A single digit added to a number (e.g., a barcode) that is calculated from the other digits and used to detect errors during data entry or scanning.

47
Q

What is reliable code?

A

Code that consistently produces the expected output for valid inputs.

48
Q

What is robust code?

A

Code that can handle unexpected or invalid inputs gracefully without crashing.

49
Q

What is maintainable code?

A

Code that is easy to understand, modify, and debug over time.

50
Q

What are accepted style conventions?

A

Guidelines and best practices for formatting code to improve readability and maintainability.

51
Q

What is readable code?

A

Code that is easy for humans to understand due to clear formatting, meaningful variable names, and comments.

52
Q

What is testing?

A

The process of executing a program or system to find errors or defects and ensure that it meets the specified requirements.

53
Q

What is software testing?

A

The process of verifying that a software application functions as expected.

54
Q

What is hardware testing?

A

The process of verifying that the physical components of a system function as expected.

55
Q

What is data testing?

A

The process of verifying the integrity and accuracy of data used by a system.

56
Q

What is interface testing?

A

The process of verifying the communication and interaction between different components or systems.

57
Q

What is concept testing?

A

A type of testing used early in development to evaluate the viability and desirability of a product or feature.

58
Q

What is unit testing?

A

A testing method where individual units or components of a program are tested in isolation.

59
Q

What is boundary testing?

A

A testing method that focuses on testing the limits or boundaries of input values to check for errors.

60
Q

What is integration testing?

A

A testing method where multiple units or components of a program are combined and tested together to verify their interaction.

61
Q

What is performance testing?

A

A testing method used to evaluate the speed, responsiveness, and stability of a system under various workloads.

62
Q

What is system testing?

A

A testing method where the entire integrated system is tested to ensure it meets the overall requirements.

63
Q

What is acceptance testing?

A

A testing method conducted by the end-users or stakeholders to determine whether the system meets their needs and is ready for deployment.

64
Q

What is usability testing?

A

A testing method focused on evaluating how easy and effective it is for users to interact with a system.

65
Q

What is regression testing?

A

A testing method performed after changes or bug fixes have been made to the system to ensure that the changes have not introduced new defects or negatively affected existing functionality.

66
Q

What is load/stress testing?

A

A type of performance testing used to evaluate a system’s behaviour under high levels of load or stress.

67
Q

What are automated testing tools?

A

Software tools that can execute tests and compare the results to expected outcomes automatically.

68
Q

What are functional testing tools?

A

Tools used to test the functionality of a system by providing inputs and verifying the outputs against the requirements.

69
Q

What is root cause analysis?

A

A problem-solving method used to identify the fundamental or underlying reasons for a problem. The ‘five whys’ is a common technique.

70
Q

What is a test plan?

A

A document that outlines the scope, objectives, approach, and schedule of testing activities, including identifying tests, test data, and expected results.

71
Q

What is test data?

A

The inputs used to execute tests, which can include valid, valid extreme, invalid, invalid extreme, and erroneous data.

72
Q

What are expected results?

A

The anticipated outcomes of executing a test case, which are compared with the actual results to determine if the test has passed or failed.

73
Q

What is debugging?

A

The process of identifying and correcting errors (bugs) in computer programs.

74
Q

What is an Integrated Development Environment (IDE)?

A

A software application that provides comprehensive facilities to computer programmers for software development. An IDE typically consists of a source code editor, build automation tools, and a debugger.