Model 204 Programming Fundamentals

Tests knowledge of Model 204 (M204) programming language syntax, file management, record processing, control statements, variables, and output formatting.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A: IN RSREFR FPC RECTYPE = REPORT END FIND Here “A” is a

  1. Variable
  2. label
  3. statement
  4. function
Question 2 Multiple Choice (Single Answer)

BY EACH phrase in the SORT RECORDS statement

  1. Loops through all occurrences of a field
  2. Loops through the occurrences of a field except the First and the Last Field
  3. PLACE RECORDS ON label ON [LIST] listname
  4. Loops through none of the Occurences of a fiel
Question 3 Multiple Choice (Single Answer)

The purpose of the REMEMBER statement is to

  1. Store the processing position in a FOR loop.
  2. Store the processing position in a IF loop.
  3. Store the processing information in a FOR loop.
  4. )Remembers your User ID
Question 4 Multiple Choice (Single Answer)

In the following which is not a pattern matching character?

  1. #
  2. !
  3. ^
  4. @
Question 5 Multiple Choice (Single Answer)

Consider the following: A: IN RSREFR FPC RECTYPE = REPORT REPT.KEY IS PRESENT END FIND The above adhoc results in:

  1. Retrieves all records in RSREFR with RECTYPE = REPORT which contains atleast one occurrence of the field name REPT.KEY.
  2. Retrieves all records in RSREFR with RECTYPE = REPORT which contains no occurrence of the field name REPT.KEY
  3. Retrieves all records in RSREFR with RECTYPE = REPORT
  4. None of the above
Question 6 Multiple Choice (Single Answer)

Which is correct for PRINT statement

  1. PRINT 'HELLO'
  2. PRINT “HELLO”
  3. Both (a) & (b)
  4. None of the above
Question 7 Multiple Choice (Single Answer)

Spacing on output line can be controlled using

  1. AND
  2. WITH
  3. TAB
  4. All of the above
Question 8 Multiple Choice (Single Answer)

BEGIN %X IS FIXED DP 0 %X = 1.95 PRINT %X END What will be the value of %X

  1. 1.95
  2. 2
  3. 1
  4. 0
Question 9 Multiple Choice (Single Answer)

Suppose 'ab' is a variable,how it is represented in M204 ?

  1. %%ab
  2. $ab
  3. %ab
  4. ab
Question 10 Multiple Choice (Single Answer)

Which of the following is valid assignments ?

  1. %x = hello
  2. %x = 'hello'
  3. %x = “hello”
  4. Both (a) & (b)
  5. Both (b) & (c)
Question 11 Multiple Choice (Single Answer)

What will be the value of %Z ?

  1. 10
  2. 5
  3. 9.5
  4. 9
Question 12 Multiple Choice (Single Answer)

Which one of the following transfers control to a subroutine ?

  1. JUMP
  2. JUMP TO
  3. CALL
  4. CALL TO
Question 13 Multiple Choice (Single Answer)

Which one of the following transfers control to another statement in a request ?

  1. JUMP
  2. JUMP TO
  3. CALL
  4. CALL TO
Question 14 Multiple Choice (Single Answer)

If you want to change the value of CAL DATE from 20090507 to 20090508, then which CHANGE statement is correct ?

  1. CHANGE CAL DATE TO 20090508
  2. CHANGE CAL DATE FROM 20090507 TO 20090508
  3. Both (a) & (b) are correct
  4. None of the above
Question 15 Multiple Choice (Single Answer)

O RSREFR FILEMAN/READ CLOSE RSREFR Which statement is correct about FILEMAN/READ ?

  1. FILEMAN allows us to update the file where READ doesn't
  2. READ allows us to update the file whereas FILEMAN doesn't
  3. Updates can be allowed using both FILEMAN as well as READ
  4. Updates cannot be done using FILEMAN as well as READ
Question 16 Multiple Choice (Single Answer)

Retrievable data of all the records in the file is present in

  1. TABLE A
  2. TABLE B
  3. TABLE C
  4. TABLE D
Question 17 Multiple Choice (Single Answer)

Suppose you want to allocate RSREFR file to “RS.M204TST2.RSREFR.FILE”,then which of the following “ALLOCATE” statement is correct ?

  1. ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT
  2. ALLOCATE RSREFR WITH $DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT
  3. ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD
  4. Both (a) &(c) are correct
Question 18 Multiple Choice (Single Answer)

The statement which causes the output of whole records to be printed is

  1. PAI
  2. PRINT ALL
  3. PRINT
  4. FPC
Question 19 Multiple Choice (Single Answer)

The statement which enables to control spacing between lines

  1. SKIP LINES(S)
  2. NEW
  3. SKIP
  4. PAGE
Question 20 Multiple Choice (Single Answer)

A: IN RSREFR FPC RECTYPE = REPORT END FIND FR A PAI END FOR “FR” stands for

  1. “FOR ALL RECORDS IN A”
  2. “FOR EACH RECORD IN A”
  3. ”FOR ONE RECORD IN A”
  4. ”FOR ANY RECORD IN A”