Turning Technologies ExamView User Manual
Page 114
![background image](/manuals/742833/114/background.png)
ExamView Test Generator
114
Syntax
Description
double ceil(double x)
Rounds up. The function finds the smallest integer not less than the argument, x.
expression choose(int
which, expression arg1,
expression arg2, ...)
- or -
expression choose(int
which, list dataList)
This function will select the argument at the which location in the list of arguments. The expression will be evaluated and returned.
All of the arguments must be of the same type (string or numeric). If which is greater than the number of arguments, the function
will use the remainder part of which to choose an argument.
EXAMPLE
which = rand(5)
choose(which, 1, 14, 3.2, 6, 9)
will return 3.2 when which = 3
- or -
which = rand(5)
listOfData = list(1, 14, 3.2, 6, 9)
choose(which, listOfData)
will return 9 when which = 5
string chr(int x)
Description
Returns a string character with the ASCII value of the argument, x. If x is less than 32 or greater than 255, the function will return a
question mark.
NOTE
You should use this function to generate characters found only in the Symbol font. Once the variable
is inserted into a question or narrative, you need to highlight the variable and change it to Symbol font
for it to display properly.
int comb(int m, int n)
Returns the number of possible combinations. If we have a group of m objects, how many ways can they be grouped as n objects
when position does not matter. The actual function is:
double cos(double x)
Computes the cosine of the argument, x. The angle is specified in radians. Values are returned in the range -1 to 1 inclusive.
double cosh(double x)
Computes the hyperbolic cosine of the argument, x. The actual function is:
double cot(double x)
Computes the cotangent of the argument, x. The angle is specified in radians. Arguments to the function must not be equal to zero.
turningtechnologies.com/user-guides