University of Pittsburgh
Midterm Practice Questions
1. What symbol marks the beginning of a comment in Python?
2. Which of the following statements will cause an error?
x = 17
17 = x
x = 99999
x = '17'
3. What operator performs integer division (also called floor division)?
4. How do you compare two floating-point numbers for equality?
5. What is the result of:
"9" s2:
print("Boston")
else:
print("New York")
7. What value does x have at the end of this code snippet?
x = 100
if x >= 100:
x = 'large'
elif x ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- university of minnesota college of education
- university of minnesota school of social work
- wharton school of the university of pennsylvania
- cost of university of scranton
- city of pittsburgh jobs
- city of pittsburgh jobs website
- city of pittsburgh career opportunities
- city of pittsburgh employment
- city of pittsburgh job openings
- city of pittsburgh job postings
- university of pittsburgh the joseph m katz graduate school of business economi
- city of pittsburgh employment application