An end user wants to see how values x and y are being set in function1 and function2, and alsoneeds to know the value of

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

An end user wants to see how values x and y are being set in function1 and function2, and alsoneeds to know the value of

Post by answerhappygod »

An end user wants to see how values x and y are being set in function1 and function2, and alsoneeds to know the value of z before function3 is called. Given the following:1.MAIN2.3.DEFINE x, y, z SMALLINT4.LET z = 05.CALL function1() RETURNING x6.CALL function2() RETURNING y7.IF ( y > 0 ) THEN8.LET z = x / y9.CALL function3 (z) RETURNING z10.END IF11........12.END MAINUsing the Informix 4GL Debugger, which sequence of steps accomplishes this?

A. set a break point for line 6, execute a call function2, execute a step/step
B. set a break point for line 5, execute a call function1, execute a call function2, execute print z online 10
C. set a break point for line 5, execute a step into on lines 5 and 6; execute print z on line 9 priorto executing a step/step into/continue
D. set a break point for line 5, execute a step, print x, execute a step, print y, execute print z online 9 prior to executing a step/step into/continue
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply