Exercise Set 4

Exercise 1 of 8

Convert the word problem into code: x equals 13 times 6

Your code

Exercise 2 of 8

Convert the word problem into code: x is equal to half of y

Your code

Exercise 3 of 8

Convert the word problem into code: x is 4 more than y

Your code

Exercise 4 of 8

Fix the error in the line of code.
x == 6 / 5

Your code

Exercise 5 of 8

Fix the error in the line of code.
x = y ^ 2

Your code

Exercise 6 of 8

Fix the code so that y + 11 is performed first.
x = z * y + 11 / 6

Your code

Exercise 7 of 8

Which operation in the expression will be performed first?
x = 1 * (5 - 6 / 5)

Your code

Exercise 8 of 8

Which operation in the expression will be performed first?
x = 1 + y * 2 - 3

Your code