# 2.11 Itse1359-1260r-review

 Page 1 / 1
This module contains review questions and answers keyed to the module titled Itse1359-1260-Loop Modifiers.

## Preface

This module is one in a collection of modules on Python designed for teaching ITSE 1359 Introduction to Scripting Languages: Python at Austin Community College in Austin, TX.

This module contains review questions and answers keyed to the module titled Itse1359-1260-Loop Modifiers .

Once you study that module, you should be able to answer the review questions in this module.

The questions and the answers in this module are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.

(Note to blind and visually impaired students: with the exception of two bitmap images that are used solely as spacers to separate the questionsection from the answer section, all of the material in this module is presented in plain text format and should be accessible using an audio screen reader or abraille display. Note however that the required indentation may not be properly represented by an audio screen reader.)

## Question 1

True or False? The code in Figure 1 produces the output shown in Figure 2 .

Figure 1 . Question 1 program code.
```leftDigit = 0 rightDigit = 0#Begin outer while loop while leftDigit<2: leftDigit += 1#Begin for loop for middleDigit in range(1,3):rightDigit = 0 #Begin innermost while loopwhile rightDigit<3: rightDigit += 1if rightDigit == 2: print("break")pass print(str(leftDigit) + "-" + str(middleDigit) + "-" + str(rightDigit))else: print("In else clause on inner while loop")#end inner while loop with else clause else:print("In else clause on for loop") #end for loop with else clauseelse: print("In else clause on outer while loop")#end outer while loop with else clause print("Goodbye")```
Figure 2 . Question 1 possible output.
```1-1-1 break1-2-1 breakIn else clause on for loop 2-1-1break 2-2-1break In else clause on for loopIn else clause on outer while loop Goodbye```

## Figure index

What is the meaning of the following two images?

These images were inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.

This image was also inserted for the purpose of inserting space between the questions and the answers.

False. The output is shown in Figure 3 . Although the program prints "break", the code doesn't actually contain a break statement. Instead it contains a pass statement.

Figure 3 . Question 1 actual output.
```1-1-1 break1-1-2 1-1-3In else clause on inner while loop 1-2-1break 1-2-21-2-3 In else clause on inner while loopIn else clause on for loop 2-1-1break 2-1-22-1-3 In else clause on inner while loop2-2-1 break2-2-2 2-2-3In else clause on inner while loop In else clause on for loopIn else clause on outer while loop Goodbye```

Go back to Question 1

## Miscellaneous

This section contains a variety of miscellaneous information.

Housekeeping material
• Module name: Itse1359-1260r-Review
• File: Itse1359-1260r.htm
• Published: 10/26/14
• Revised: 02/26/15
Disclaimers:

Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.

I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.

In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensation for those sales nor do I know who does receive compensation. If youpurchase such a book, please be aware that it is a copy of a module that is freely available on cnx.org and that it was made andpublished without my prior knowledge.

Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.

-end-

what is a good calculator for all algebra; would a Casio fx 260 work with all algebra equations? please name the cheapest, thanks.
a perfect square v²+2v+_
kkk nice
algebra 2 Inequalities:If equation 2 = 0 it is an open set?
or infinite solutions?
Kim
y=10×
if |A| not equal to 0 and order of A is n prove that adj (adj A = |A|
rolling four fair dice and getting an even number an all four dice
Kristine 2*2*2=8
Differences Between Laspeyres and Paasche Indices
No. 7x -4y is simplified from 4x + (3y + 3x) -7y
is it 3×y ?
J, combine like terms 7x-4y
im not good at math so would this help me
how did I we'll learn this
f(x)= 2|x+5| find f(-6)
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
what is nanomaterials​ and their applications of sensors.
what is nano technology
preparation of nanomaterial
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
can nanotechnology change the direction of the face of the world
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
how did you get the value of 2000N.What calculations are needed to arrive at it
Got questions? Join the online conversation and get instant answers!