Programming Flashcards

1
Q

What is an IDENTIFIER?

A

Names given to variables and constants

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

How are values assigned? (python)

A

With an ASSIGNMENT STATEMENT (using the ‘=’)

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

What is CAMEL CASE?

A

Starting each new word with a capital e.g.

FirstName OR firstName

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

What is SNAKE CASE?

A

Using underscores to link words e.g.

First_Name OR first_name

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

How are values assigned? (pseudo code)

A

SET ….. TO

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

What are the different logic gates?

A

AND

OR

NOT

NAND (not, and)

XOR (strict or, can only be one OR the other, not both)

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

What are the different data types?

A

INTEGER: whole numbers e.g. 0, 3, 9, 255

REAL: any number e.g. 2, 5.6, 31/4 , 9.7243

BOOLEAN: can only be ‘True’ or ‘False’

CHARACTER: single letter, number or symbol e.g. C, 3, @

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

What is an array?

A

Data structure that can store multiple items of data, called elements, which are all of the same type of data under the same identifier

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

Why are arrays useful?

A

They increase the efficiency of a program

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

What is VALIDATION?

A

Checks that data that is input is sensible, reasonable and appropriate to be processed by the program

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

What is a SYNTAX error?

A

Grammatical mistakes

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

What is a LOGIC error?

A

Unintended output due to a fault in the logic of the algorithm

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

What is a RUNTIME error?

A

Occur as a result of the computer being asked to carry out an impossible operation

e.g. dividing by 0

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

What is DEBUGGING?

A

The process of identifying errors and then either correcting them or determining a way to work around them

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

How do you write to a text file? (pseudo)

A

WRITE

e.g. WRITE myFile.doc, “Hello World”

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

How do you read from a text file> (pseudo)

A

READ