Programming bascis Flashcards

1
Q

Varaiable

A

the value of the variable can be changed while the programming is running

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

Constant

A

the value of the variable can NOT be changed while the programming is running

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

MOD and DIV operators

A

MOD-used to find the remainder in integer division

DIV- integer part of division

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

Selection;Boolean expressions

A

AND
NOT
OR

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

Define nesting

A

When an construct is written within another

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

Define iteration

A

iteration means repetition

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

Difference between function and procedures

A

A function is a subroutine that returns one or more values using a return statement

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

Local variable and global variable

A

A global variable can be defined in the main program and can be used in any subroutine called from the main program
A local variable can only be used in that one subroutine

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

What is modular programming

A

Modular programming means breaking down a major task into smaller sub-tasks
these can be then broken down into one function

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

Advantages of modular programming

A

more easily and quickly written

easier to program and manage once broken

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