programming fundamentals Flashcards

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

What is a Variable?

A

Data that can change when told to

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

What is a constant?

A

Data that stays the same throughout the code from the start

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

What is an assignment?

A

When a value is given to a variable or constant using =

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

What is the symbol = ?

A

Equal to

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

What is the symbol != ?

A

Not equal to

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

What is the symbol < ?

A

Less than

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

What is the symbol > ?

A

Greater than

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

What is the symbol <= ?

A

Less than or equal to

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

What is the symbol >= ?

A

Greater than or equal to

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

What is MOD?

A

The number left over when you divide the numbers.

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

What is DIV?

A

The integer truncated after dividing the 2 numbers together

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

What is an integer?

A

A whole number

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

What is Read(Float)

A

A number with a decimal part

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

What is a character?

A

a display of information equivalent to one alphabetical letter or symbol

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

What is a string?

A

a variable that holds a sequence of one or more alphanumeric characters.

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

What is Boolean?

A

True or false

17
Q

What is casting?

A

Changing the data type from one to another

18
Q

Give an example of casting

A

Changing a variable
Converting into double

19
Q

To return the length of a string

A

Len()

20
Q

To return the string in uppercase

A

Upper()

21
Q

To return the string in lowercase

A

Lower()

22
Q

To return the 5th character of the string

A

x = y[5:5]

23
Q

To return the ASCII value of the character

A

Ord()

24
Q

To return the character from the ASCII value

A

Ord()

25
Q

What are sub-programs?

A

Functions and procedures

26
Q

What is a function?

A

A self contained module of code

27
Q

What is a procedure?

A

A set of coded instructions that tell a computer how to run a program