3) Self Test Software Practice Test for IBM

Posted on
Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone

Objective: Programming
SubObjective: Programming with the formula language

Single Answer, Multiple Choice

Examine the following code:

FIELD StateUpper := @UpperCase(FIELD state := “Georgia”)

What does this code do when executed?

A. Assigns the value “Georgia” to a temporary variable called “StateUpper”
B. Will fail with a syntax error because you cannot nest the assignment operator inside a formula
C. Will fail with a syntax error because you cannot use the FIELD keyword twice in one line of code
D. Will assign the value “GEORGIA” to a field called “StateUpper” and the value “Georgia” to a field called “state”

Answer:
D. Will assign the value “GEORGIA” to a field called “StateUpper” and the value “Georgia” to a field called “state”

Tutorial:
The assignment operator in the Domino formula language is “:=”. This operator assigns the value at the right of the operator to the variable on the left of the operator. Beginning in Domino 6, the assignment operator can be nested inside other formulas.

The assignment operator can be used with the keywords, FIELD, DEFAULT, or ENVIRONMENT. Without the keywords, a temporary variable will be created at the time of the assignment. There is no restriction, other than logical, to the number of times a keyword can be used in one line of formula code. However, the DEFAULT and ENVIRONMENT keywords cannot be used with a nested assignment statement.

This formula will assign the value “Georgia” to a field named “state”, convert that value to uppercase and assign the result of the conversion, “GEORGIA” to a field called “StateUpper.”

Reference:
1. Domino Designer 7 Help – search on: @UpperCase

2. Domino Designer 7 Help – search on: FIELD

Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone
cmadmin

ABOUT THE AUTHOR

Posted in Archive|

Comment:

Leave a comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>