Question: 1. Assign a value of 25 to a variable called total 2. What data type do you use to record whether an employee is tax-exempt?
1. Assign a value of 25 to a variable called total
2. What data type do you use to record whether an employee is tax-exempt?
Integer
Char
Boolean
Code
3. Explain what would happen if a variable of type text is assigned to
'Welcome ' + 'to Hawaii'
3 + 5
4. Explain relational operators. Provide an example.
5. What is TODAY in C/AL language? What does it do?
6. The following code is a good example for understanding data types. Take a look at the following code and address the questions:
The following variables are created:
1.Name DataType Length
LoopNo Integer
YesOrNo Boolean
Description Text 30
Color Option
Note: For datatype Option OptionString values need to be provided. Here they are Red,Orange,Yellow,Green.
What message does each of these lines show when the code is executed?
Code Example
MESSAGE('The value of %1 is %2','LoopNo',LoopNo);
MESSAGE('The value of %1 is %2','YesOrNo',YesOrNo);
MESSAGE('The value of %1 is %2','Description',Description);
MESSAGE('The value of %1 is %2','Color',Color);
7. Understand the DATE2DMY function. Write a code that displays the month of the WORKDATE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
