최신 IBM certifications I 000-268 무료샘플문제:
1. Given the following code segment:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D Arr s 15a DIM(5) INZ
D Index s 2s 0 Inz(0)
/FREE
arr(1) = 'RPG is Cool';
arr(2) = ' RPG is Cool';
arr(3) = ' RPG is Cool';
arr(4) = ' RPG is Cool';
Index = %LookUp(*blank: arr: 1: 2);
/END-FREE
What is the value of field Index after the code is run?
A) 1
B) 5
C) 0
D) 2
2. Given the following code segment:
0001.00 D DateField S D DATFMT(*ISO)
0002.00 D CharField S 6A INZ('040696')
0003.00 C *MDY MOVE CharField DateField
This code will not compile. Which of the following changes will allow a successful compile?
A) Change line 0001.00 to: D DateField S D DATFMT(*MDY)
B) Change line 0003.00 to: C *MDY0 MOVE CharField DateField
C) Change line 0003.00 to: C *ISO MOVE CharField DateField
D) Change line 0003.00 to: C *MDY MOVE(D) CharField DateField
3. Given the following code segment, what value will be displayed as a result of the last statement?
D DayNamesData DS
D 9 INZ('Saturday')
D 9 INZ('Sunday')
D 9 INZ('Monday')
D 9 INZ('Tuesday')
D 9 INZ('Wednesday')
D 9 INZ('Thursday')
D 9 INZ('Friday')
D 9 INZ('Saturday')
D 9 INZ('Sunday')
D pDayNames S * INZ(%Addr(DayNamesData))
D DayName S 9 DIM(7) BASED(pDayNames)
/Free
Eval pDayNames = %Addr(DayName(2));
Dsply DayName(3); // Display name of day 3
A) Monday
B) Wednesday
C) Tuesday
D) Thursday
4. An employee works forty or more hours in a pay period. Assuming that overtime is paid for hours greater than 40 hours at a rate of time and a half, which EVAL statement will calculate the gross pay (GPay)?
A) EVAL GPay = PRate * 40 + (HrsWrkd - 40) * PRate * 0.5
B) EVAL GPay = PRate * HrsWrkd + (HrsWrkd - 40) * PRate * 1.5
C) EVAL GPay = PRate * 40 + (HrsWrkd - 40) * PRate * 1.5
D) EVAL GPay = PRate * HrsWrkd * 1.5
5. What reserved word can be used to move the job's date, including century, into an eight- position numeric field?
A) *ISO
B) UDATE
C) *DATE
D) JOBDATE
질문과 대답:
질문 # 1 정답: C | 질문 # 2 정답: B | 질문 # 3 정답: C | 질문 # 4 정답: C | 질문 # 5 정답: C |