PREVIOUS YEAR MID TERM RESULTS Flashcards

1
Q

why will the value of bignum be -2147483596 instead of 2147483700?

int bignum = 2147483600 + 100

A

because that is the maximum number processing can compute. after that it goes backwards

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

int w = 10;

void draw() { int z = w;
z = z - 1; 
}

what is the value of w after the program below is run for 10 frames?

why?

A

10

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