Record-Based Programming Language Syntax Quiz

Test your knowledge of record manipulation, string functions, and syntax in this specialized programming language with % variables, $ functions, and list operations.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A: FIND ALL RECORDS FOR WHICH FULLNAME IS LIKE J+++S END FIND FR A PRINT FULL NAME END FOR What will be the output?

  1. Jacks, Janus
  2. Jaxons , Jonnes
  3. Jacckys , Jefers
  4. Jamuna, Jackson
Question 2 Multiple Choice (Single Answer)

What is the syntax for PLACE RECORDS statement?

  1. PLACE RECORDS IN label IN [LIST] listname
  2. PLACE RECORDS IN label ON [LIST] listname
  3. PLACE RECORDS ON label ON [LIST] listname
  4. PLACE RECORDS ON label IN [LIST] listname
Question 3 Multiple Choice (Single Answer)

What can be the maximum length of a listname and what is it made up of?

  1. 16 ; alphanumeric
  2. 16 ; alphabetic
  3. 255 ; alphanumeric
  4. 255 ; alphabetic
Question 4 Multiple Choice (Single Answer)

Which among the following is the correct syntax for CLEAR LIST?

  1. CLEAR LIST IN listname
  2. CLEAR LIST listname
  3. CLEAR LIST ON listname
  4. CLEAR listname
Question 5 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 6 Multiple Choice (Single Answer)

The specified field name and the value is added to the record if not mentioned in which of the following statements?

  1. CHANGE statement
  2. UPDATE statement
  3. DELETE statement
  4. ADD statement
Question 7 Multiple Choice (Single Answer)

Which statement is necessary when using lists with FIND statements?

  1. FOR EACH
  2. FOR WHICH
  3. FOR EACH RECORD IN LOOP
  4. None of the above
Question 8 Multiple Choice (Single Answer)

A collection of records on a list can be referred by entering which statement as a condition in the FIND statement?

  1. LIST$
  2. LIST listname
  3. Listname
  4. None of the above
Question 9 Multiple Choice (Single Answer)

What is the result of the mixed fixed and float operation ?

  1. Fixed
  2. Float
  3. String
  4. decimal
Question 10 Multiple Choice (Single Answer)

What will be the value of %a in the expression %a = emp_num ?

  1. emp_num
  2. value of emp_num
  3. none
  4. null
Question 11 Multiple Choice (Single Answer)

The DELETE [ALL] RECORDS statement is used to delete all the records from which of the following?

  1. a) LIST
  2. b) label
  3. c) Both a & b
  4. d) None of the above
Question 12 Multiple Choice (Single Answer)

Which of the following statements are not supported in the UPDATE RECORD statement?

  1. DELETE statement
  2. CHANGE statement
  3. DELETE EACH statement
  4. Both a & c
Question 13 True/False

If no updates are found between UPDATE RECORD and END UPDATE, the program abends.

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

The store record statement should not end with which of the following?

  1. END STORE
  2. END LABEL
  3. END BLOCK
  4. END UPDATE
Question 15 Multiple Choice (Single Answer)

What is the maximum length of a string character ?

  1. 256
  2. 245
  3. 265
  4. 255
Question 16 Multiple Choice (Single Answer)

For the given program what is the value of X ? BEGIN %X IS FIXED DP 0 %X = 1.9 PRINT ’%X = ’ WITH %X END

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

Which operator is used for concatenation ?

  1. Concat
  2. And
  3. With
  4. Append
Question 18 Multiple Choice (Single Answer)

How is a filed name indicated ?

  1. a) %fieldname
  2. b) %%fieldname
  3. c) both a and b
  4. d) None
Question 19 Multiple Choice (Single Answer)

Which function returns the contents of an argument with leading zeros suppressed?

  1. $STRIP
  2. $STRIPOF
  3. $DEBLANK
  4. $DELBALNK
Question 20 Multiple Choice (Single Answer)

$INDEX('OTHER' , 'THE') equals

  1. 4
  2. 2
  3. 3
  4. 1