Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) If x = 0, y = 6, z =9, what is the value of x, y and z for each of the following code

image text in transcribed

a) If x = 0, y = 6, z =9, what is the value of x, y and z for each of the following code fragments? (Assume that x, y and z are their original values for each fragment.) i. if (z!=0) y= 2; else X = 10; ii. if (y + z > 9) { y = 4; z = 6; X+; } else X = 1; iii. if (x == 0) { x -= 3; Z -= 3; } else (9 Marks) b) If x=-1, y = 4, z = 7 and r = -2, what is the value for each of the following code fragments? i. X + y >z+r ii. X-2* y + y= Z-4) && 2-2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions