IT 116: Introduction to Scripting
Class 10 Ungraded Quiz
-
What comes after the keyword
in
in a Python for
loop?
-
Where does the loop variable in a
for
loop get its values?
-
If range is run with the single argument 5,
what is the list of numbers that would be created?
-
If range is run with the two arguments 1 and 5,
what is the list of numbers that would be created?
-
If range is run with the three arguments 1, 10 and 2,
what is the list of numbers that would be created?
-
If range is run with only one argument, what does
that argument specify?
-
If range is run with two arguments, what does
the first of the two arguments specify?
-
If range is run with three arguments, what does
the third of the three arguments specify?
-
Write a
for
loop that prints the values from 1 to 10, each on a separate line.
-
Write a
for
loop that prints the values from 10 to 1, each on a separate line.