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.
Questions
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?
- Jacks, Janus
- Jaxons , Jonnes
- Jacckys , Jefers
- Jamuna, Jackson
What is the syntax for PLACE RECORDS statement?
- PLACE RECORDS IN label IN [LIST] listname
- PLACE RECORDS IN label ON [LIST] listname
- PLACE RECORDS ON label ON [LIST] listname
- PLACE RECORDS ON label IN [LIST] listname
What can be the maximum length of a listname and what is it made up of?
- 16 ; alphanumeric
- 16 ; alphabetic
- 255 ; alphanumeric
- 255 ; alphabetic
Which among the following is the correct syntax for CLEAR LIST?
- CLEAR LIST IN listname
- CLEAR LIST listname
- CLEAR LIST ON listname
- CLEAR listname
The ADD statement is used to add the new field value to the record only inside the FOR EACH RECORD loop statement.
- True
- False
The specified field name and the value is added to the record if not mentioned in which of the following statements?
- CHANGE statement
- UPDATE statement
- DELETE statement
- ADD statement
Which statement is necessary when using lists with FIND statements?
- FOR EACH
- FOR WHICH
- FOR EACH RECORD IN LOOP
- None of the above
A collection of records on a list can be referred by entering which statement as a condition in the FIND statement?
- LIST$
- LIST listname
- Listname
- None of the above
What is the result of the mixed fixed and float operation ?
- Fixed
- Float
- String
- decimal
What will be the value of %a in the expression %a = emp_num ?
- emp_num
- value of emp_num
- none
- null
The DELETE [ALL] RECORDS statement is used to delete all the records from which of the following?
- a) LIST
- b) label
- c) Both a & b
- d) None of the above
Which of the following statements are not supported in the UPDATE RECORD statement?
- DELETE statement
- CHANGE statement
- DELETE EACH statement
- Both a & c
If no updates are found between UPDATE RECORD and END UPDATE, the program abends.
- True
- False
The store record statement should not end with which of the following?
- END STORE
- END LABEL
- END BLOCK
- END UPDATE
What is the maximum length of a string character ?
- 256
- 245
- 265
- 255
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
- 2
- 0
- Undetermined
Which operator is used for concatenation ?
- Concat
- And
- With
- Append
How is a filed name indicated ?
- a) %fieldname
- b) %%fieldname
- c) both a and b
- d) None
Which function returns the contents of an argument with leading zeros suppressed?
- $STRIP
- $STRIPOF
- $DEBLANK
- $DELBALNK
$INDEX('OTHER' , 'THE') equals
- 4
- 2
- 3
- 1