Model 204 Programming Fundamentals
Tests knowledge of Model 204 (M204) programming language syntax, file management, record processing, control statements, variables, and output formatting.
Questions
A: IN RSREFR FPC RECTYPE = REPORT END FIND Here “A” is a
- Variable
- label
- statement
- function
BY EACH phrase in the SORT RECORDS statement
- Loops through all occurrences of a field
- Loops through the occurrences of a field except the First and the Last Field
- PLACE RECORDS ON label ON [LIST] listname
- Loops through none of the Occurences of a fiel
The purpose of the REMEMBER statement is to
- Store the processing position in a FOR loop.
- Store the processing position in a IF loop.
- Store the processing information in a FOR loop.
- )Remembers your User ID
In the following which is not a pattern matching character?
- #
- !
- ^
- @
Consider the following: A: IN RSREFR FPC RECTYPE = REPORT REPT.KEY IS PRESENT END FIND The above adhoc results in:
- Retrieves all records in RSREFR with RECTYPE = REPORT which contains atleast one occurrence of the field name REPT.KEY.
- Retrieves all records in RSREFR with RECTYPE = REPORT which contains no occurrence of the field name REPT.KEY
- Retrieves all records in RSREFR with RECTYPE = REPORT
- None of the above
Which is correct for PRINT statement
- PRINT 'HELLO'
- PRINT “HELLO”
- Both (a) & (b)
- None of the above
Spacing on output line can be controlled using
- AND
- WITH
- TAB
- All of the above
BEGIN %X IS FIXED DP 0 %X = 1.95 PRINT %X END What will be the value of %X
- 1.95
- 2
- 1
- 0
Suppose 'ab' is a variable,how it is represented in M204 ?
- %%ab
- $ab
- %ab
- ab
Which of the following is valid assignments ?
- %x = hello
- %x = 'hello'
- %x = “hello”
- Both (a) & (b)
- Both (b) & (c)
What will be the value of %Z ?
- 10
- 5
- 9.5
- 9
Which one of the following transfers control to a subroutine ?
- JUMP
- JUMP TO
- CALL
- CALL TO
Which one of the following transfers control to another statement in a request ?
- JUMP
- JUMP TO
- CALL
- CALL TO
If you want to change the value of CAL DATE from 20090507 to 20090508, then which CHANGE statement is correct ?
- CHANGE CAL DATE TO 20090508
- CHANGE CAL DATE FROM 20090507 TO 20090508
- Both (a) & (b) are correct
- None of the above
O RSREFR FILEMAN/READ CLOSE RSREFR Which statement is correct about FILEMAN/READ ?
- FILEMAN allows us to update the file where READ doesn't
- READ allows us to update the file whereas FILEMAN doesn't
- Updates can be allowed using both FILEMAN as well as READ
- Updates cannot be done using FILEMAN as well as READ
Retrievable data of all the records in the file is present in
- TABLE A
- TABLE B
- TABLE C
- TABLE D
Suppose you want to allocate RSREFR file to “RS.M204TST2.RSREFR.FILE”,then which of the following “ALLOCATE” statement is correct ?
- ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT
- ALLOCATE RSREFR WITH $DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT
- ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD
- Both (a) &(c) are correct
The statement which causes the output of whole records to be printed is
- PAI
- PRINT ALL
- PRINT
- FPC
The statement which enables to control spacing between lines
- SKIP LINES(S)
- NEW
- SKIP
- PAGE
A: IN RSREFR FPC RECTYPE = REPORT END FIND FR A PAI END FOR “FR” stands for
- “FOR ALL RECORDS IN A”
- “FOR EACH RECORD IN A”
- ”FOR ONE RECORD IN A”
- ”FOR ANY RECORD IN A”