Model 204 and Perl Programming Quiz

Quiz covering basic Perl operations and Model 204 database language functions, statements, and subsystems

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

$LEN(RICHARD SMITH) equals

  1. 13
  2. 12
  3. 11
  4. 14
Question 2 Multiple Choice (Single Answer)

$MOD(5,3) equals

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

$PAD('54345','0','6) equals

  1. '054345''
  2. '0054345''
  3. 54345'0'
  4. d'54345'00'
Question 4 Multiple Choice (Single Answer)

Which are valid user language working Areas:

  1. FSCB
  2. TTBL
  3. GTBL
  4. All the Above
Question 5 Multiple Choice (Single Answer)

The Maximum number of screens and menus combined per request is :

  1. 234
  2. 256
  3. 264
  4. 512
Question 6 Multiple Choice (Single Answer)

What is file group ?

  1. A file group is a collection of physically distinct files that appear to the end user as multiple logical entity.
  2. A file group is a collection of logically distinct files that appear to the end user as single logical entity.
  3. A file group is a collection of physically distinct files that appear to the end user as single logical entity.
  4. A file group is a collection of logically distinct files that appear to the end user as multiple logical entity.
Question 7 Multiple Choice (Single Answer)

What is the logical name of the file PNF.M204PRD2.NFPRO FILE ?

  1. PNFPROD
  2. PROD
  3. NFPROD
  4. PRD2PROD
Question 8 Multiple Choice (Single Answer)

What is APSP ?

  1. APSP is a subsystem that gives the management details of any other subsystem in Model 204 environment.
  2. APSP is a subsystem that gives the configuration details of any other subsystem in Model 204 environment.
  3. APSP is a system that gives the configuration details of any other subsystem in Model 204 environment.
  4. APSP is a system that gives the management details of any other subsystem in Model 204 environment.
Question 9 Multiple Choice (Single Answer)

What happens if a series of UPDATE statements are issued?

  1. Each one requires a separate network call.
  2. Each one is executed in the order in which they are mentioned in the code.
  3. All the update statements together require a separate network call
  4. None of the above.
Question 10 Multiple Choice (Single Answer)

Which statement is used to remove the found set of records from a list?

  1. REMOVE RECORDS IN label FROM [LIST] listname
  2. REMOVE RECORDS FROM [LIST] listname
  3. DELETE RECORDS IN label FROM [LIST] listname
  4. DELETE RECORDS FROM [LIST] listname
Question 11 Multiple Choice (Single Answer)

For the FLOAT %variables, the assigned value is rounded to how many digits ?

  1. 10
  2. 18
  3. 15
  4. 20
Question 12 Multiple Choice (Single Answer)

Which condition is used to restrict the results of a group context FIND statement to a particular node or nodes?

  1. Order by
  2. In clause
  3. Location
  4. pai into
Question 13 Multiple Choice (Single Answer)

What could be the date displayed after executing this statement PRINT $DATECHG('MON. DD, YYYY' , ' JAN. 10, 2009', 5)

  1. 15/01/2009
  2. JAN.15,2009
  3. JAN.20,2009
  4. JAN.25,2009
Question 14 Multiple Choice (Single Answer)

Which function is used to display the name of the day in a week

  1. $DAY()
  2. $DAYNM()
  3. $DAYS()
  4. $DAYNAME()
Question 15 Multiple Choice (Single Answer)

What is APSI ?

  1. APSI is a subsystem that can be used to check the previous state of any other subsystem in Model 204 environment.
  2. APSI is a subsystem that can be used to check the next state of any other subsystem in Model 204 environment.
  3. APSI is a subsystem that can be used to check the current state of any other subsystem in Model 204 environment.
  4. APSI is a system that can be used to check the current state of any other subsystem in Model 204 environment.
Question 16 True/False

The ADD statement is used to add the new field value to the record only inside the FOR EACH RECORD loop statement.

  1. True
  2. False
Question 17 Multiple Choice (Single Answer)

Which operator can be used to access the first item in an array?

  1. shift
  2. start
  3. right$
  4. left$
Question 18 Multiple Choice (Single Answer)

Assume that $var has the value hello . What is the value of the following sting?qq(It’s time to say $var);

  1. It’s time to say $var
  2. It’s time to say hello
  3. None
  4. Both
Question 19 Multiple Choice (Single Answer)

Which modifier can be used when matching in Perl to match any character?

  1. S
  2. V
  3. I
  4. C
Question 20 Multiple Choice (Single Answer)

Which of the following operators work most like substitution?

  1. /f
  2. /g
  3. s///
  4. m//