Nested Loops & Number Programs — Chapter Test

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
In a nested loop printing a pattern, the OUTER loop usually controls the…
Acolumns
Brows
Ccolours
Dspaces only
Question 2
A PRIME number has exactly…
Aone factor
Btwo factors (1 and itself)
Cthree factors
Dno factors
Question 3
153 = 1³ + 5³ + 3³, so 153 is a(n) … number.
Aperfect
Bprime
CArmstrong
Dpalindrome
Question 4
Which expression gives the LAST digit of a number n?
An / 10
Bn % 10
Cn * 10
Dn - 10
Question 5
0, 1, 1, 2, 3, 5, 8 … is the … series.
Aprime
BFibonacci
CArmstrong
Dperfect