Wk. 4 Flashcards

1
Q

What does statically typed language mean?

A

As the compiler reads your code and translates it to binary, it has to know the data type.

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

What is the syntax for a do/while loop?

A

do { [prog st] } while (boolean expression)

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

When are global variables allocated?

A

At compile time

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

Where are global variables allocated?

A

The data section in memory

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

How do the increment/decrement forms differ?

A

In ++x (prefix) the variable is modified, then used in the expression. In x++ (postfix), first the variable is used in the expression, then it is modified

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