CMPT165-ConditionsReviewWithAnswers.docx

5 Pages
84 Views
Unlock Document

Department
Computing Science
Course
CMPT 165
Professor
Colin Stewart
Semester
Winter

Description
Conditions Review What is the value of x after this code runs x0 if x0xx1 x has the value 1What is the value of x after this code runs x0 if x0xx1 x has the value 0What is the value of x after this code runs x0 if x0xx1 elsex2 x has the value 2What is the value of x after this code runs x0 if x0x1 elif x0x2 x has the value 1What is the value of x after this code runs xcraisin if xCraisinxcurrant elsexprune x has the value prune
More Less

Related notes for CMPT 165

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit