2.2.1 Programming techniques Flashcards

1
Q

IDE definition

A

Integrated Development Environment

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

IDE features

A

Syntax highlighting: Makes code easier to read by visually clarifying different elements of language syntax
Autocomplete: Saves keystrokes and risk of syntax errors so the programmer can focus on their code
Code comments: text that is not executed but serves as documentation for explanations

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

Debugging tools

A

Breakpoints, Stepping, Variable Watch

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

Breakpoints:

A

Indicates where to suspend running code to look at variable values, behaviour of memory, or if a branch is getting run

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

Stepping:

A

Allows the programmer to run a program line by line, to examine the state, machine and related data before/after each line is executed

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

Benefits of stepping

A

Observes changes,
Traces through code,
Examining execution

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

Variable watch:

A

Lets you monitor changes in the value of a variable during program execution to detect anomalies and debug the code

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

Variable scope

A

Variables with a global scope can be accessed from anywhere in the program, whereas, local variables can only be accessed or used by the code inside the event (procedure or function) it was declared in

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

Procedures

A

A section of code that performs one or more specific tasks with an identifiable name, but will not return a value

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

Subroutine

A

An out-of-line block of code that will be executed when its identifiable name is called in code

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

Function

A

A section of code that performs one or more specific tasks with an identifiable name AND returns a value

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

Parameters

A

A variable that passes values when it is called

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

Arguments

A

Any data passed into a subroutine

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

Byval

A

You pass a copy of the original data to the subroutine and this will not modify the original value, and this is stored directly in memory

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

Byref

A

Which passes a reference of arguments to the function, the changes in passed values are permanent and modify the original variable values

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