mid1_practice

mid1_practice - Practice Midterm 1 CS 8 Suggested usage:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Practice Midterm 1 – CS 8 Suggested usage: First study for the exame. Then, for any problems we did not solve in class, attempt to solve them. Then check your answers by typing them into IDLE or looking them up in the textbook. For any questions we did cover in class, make up ones that are similar and attempt to solve those. If you find you are unable to solve a problem, come into office hours to get help. Good luck! I will not check your answers - you may check them yourself in IDLE. Python Expressions: Write an expression exactly how you would need to type it in Python for the following problems: Calculate the miles per gallon for my vehicle, which went 357 miles and required 14 gallons. Write an assignment statement to do the following: Assign the value 10 to the variable named width Assign the value 4.5 to the variable named height What is the result of each of the following numerical expressions? 9 ** 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/27/2011 for the course CMPSC 8 taught by Professor Franklin during the Fall '09 term at UCSB.

Page1 / 2

mid1_practice - Practice Midterm 1 CS 8 Suggested usage:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online