Turning Technologies ExamView User Manual

Page 118

Advertising
background image

ExamView Test Generator

118

Syntax

Description

list(expression arg1,

expression arg2, ...)

Use this function as a container to hold a group of similar expressions. The expressions must all be of the same type--either
numeric or string. If you create a list of strings, you must make sure that no string element contains a comma, since the comma is
used to delimit the list. A variable defined as a "list" can be used as an argument for the "choose" function.

EXAMPLE

fruitList = list("apple", "pear", "peach", "tangerine")

whichFruit = rand(4)

fruit = choose(whichFruit, fruitList)

weightList = list(110, 142, 153, 180, 212)

whichWeight = rand(5)

weight = choose(whichWeight, weightList)

double ln(double x)

Calculates the natural log of the argument, x. Arguments to the function must be greater than zero.

double log(double x)

Calculates the natural log of the argument, x. Arguments to the function must be greater than zero.

double log10(double x)

Calculates the base 10 logarithm of the argument, x. Arguments to the function must be greater than or equal to zero.

double logb(double x,

double b)

Calculates the base b logarithm of the argument, x. Arguments to the function must be greater than zero. Actual function is:

string ltrim(string x)

Trims spaces from the left side of the string argument, x.

EXAMPLE

ltrim(" ExamView ")

will return "ExamView "

turningtechnologies.com/user-guides

Advertising