Unit 8 - Logic and Languages Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is meant by the term “Line Numbers”?

A

A number assigned to each line of code

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

What is meant by the term “Syntax Highlighting”?

A

When pieces of syntax such as variables are highlighted

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

What is meant by the term “Breakpoints”?

A

A point in the code where the programmer tells the code to stop running

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

What is meant by the term “Stepping”?

A

When a programmer goes through code one line at a time, typically to find errors

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

What is meant by the term “Watching Variables”?

A

When a programmer watches a table that displays the current value of all variables in order to see if they have the wrong value at any point

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

What is meant by the term “Error Diagnostics”?

A

Comments that discern where syntax errors are in the code, typically accompanied by line numbers

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

What is meant by the term “Run-Time Environment”?

A

Allows IDEs to run code internally and tell the programmer why it may crash

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

What is meant by the term “Input Validation”?

A

Checking input meets certain rules, e.g. the type of data

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

What is meant by the term “Anticipating misuse”?

A

Preventing too many entries of a password to make it harder for hackers to guess

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

What is meant by the term “Authentication”?

A

Entering data twice or checking from an alternative source

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

Explain the usage of sub programs

A

Crrating reusable code where bugs can be easily fixed

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

What is meant by the term “Naming conventions”?

A

Good use of variables and sub program names to make programs easier to read

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

What is meant by the term “Indentation”?

A

A gap at the start of a line to idicate that a section of code is linked to another

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

What is meant by the term “Commenting”?

A

A message left by the programmer explaining what the code does and how it accomplishes this

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

What is meant by the term “Syntax Error”?

A

A point where the code is not conforming to the rules of the language it was written in

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

What is meant by the term “Logical error”?

A

Where the code runs in an unintended way

17
Q

What are the 4 types of test data?

A

Normal Data : Fits within all parameters with ease

Boundary Data: Just above or below the requirements

Invalid Data: Doesn’t fit within the parameters at all

Erroneous Data: Wrong type

18
Q

Give 3 examples of high level programming languages

A

Python

Java

C++

19
Q

Give an example of a query language

A

SQL

20
Q

Give 2 exampls of Markup languages

A

HTML

XML

21
Q

Give an example of a low level programming language

A

Assembly language

22
Q

What is meant by the term “Machine code”

A

Code that is read by machines but very difficult for people to read

23
Q

Name 3 advantages of low level languages

A

Faster run time

Less RAM intensive code

Manipulates specific hardware components

24
Q

What do compilers and interpreters do?

A

Translates a high level language into machine code

25
Q

Name 4 differences between compilers and interpreters

A

Compilers convert the whole program to object code but interpreters translate and execute line by line.

Compilers are faster because code is preconverted

The compiler doesn’t have to be present for the object code to run however the interpreter must be installed to run the program

Compilers don’t allow viewing of the source code by consumers but translators do.

26
Q

What is meant by the term “Assembly language”

A

A low level languag that is assembled into machine code before it is run

27
Q

What is meant by the term “Integrated Development Environment (IDE)”?

A

A text editor with additional features to aid programming

28
Q

Name 4 features that an IDE introduces to aid programming

A

Line numbers

Syntax highlighting

Breakpoints, stepping & watching variables

29
Q

How much memory do integers take up?

A

Aprroximately 2 bytes

30
Q

How much memory do floats take up?

A

Aprroximately 4 bytes

31
Q

How much memory do chars take up?

A

Approximately 1 byte

32
Q

How much memory do strings take up?

A

Approximately 1 byte per character