Given the following code, what is the value of RESULT?

DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++
D RESULT S 5 0

C EVAL RESULT = (2 + 3 * 2) ** 2 / 2

Answers were Sorted based on User's Feedback



Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++I..

Answer / anuj

Agreed.. Should be 32.. see below

1. RESULT = (2 + 3 * 2) ** 2 / 2
2. RESULT = (8) ** 2 / 2
3. RESULT = 64 / 2 = 32.

Thanks.

Is This Answer Correct ?    17 Yes 0 No

Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++I..

Answer / prad

32

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC

2 Answers  


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

0 Answers  


How can we make use of SETLL operation in CL?

11 Answers  


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


what is EXCEPT command in rpg and use

1 Answers   Active Brains,






what was the robotech rpg?

0 Answers   IBM,


Can we have a Physical file without any member ? Please let me know

12 Answers  


Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?

1 Answers  


how do I declare a minor?

0 Answers   IBM,


In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?

6 Answers   Hexaware,


Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?

2 Answers   HSBC,


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


Categories