Interview Questions

Naming Convention - Arrays

Coding standards for Rational Robot


(Continued from previous question...)

Naming Convention - Arrays

Description
Arrays in many programming-languages usually represent a fixed list of values (e.g. a list of lastnames). However within SQABasic the size for an array can either be fixed or grow if the number of items in the list is not known during compilation of the source code.

Syntax
"a" + [Prefix]+[ShortDescription]

Letter “a” indicates that the variable is of type array. [Prefix] is a lowercase letter that represents the type of variables in the array. The rules for [Prefix] are the same as for “Local scope variables”.

Examples
· asPersonList
· anNumberList

(Continued on next question...)

Other Interview Questions