It’s time to put what you’ve learned to the test, get 5 questions right to pass this unit.
Q1.
Which of the following expressions can you use to force a type conversion?
Choose the correct answer.
A
EXACT #( )
B
CONV #( )
C
COND #( )
Q2.
You subtract one field with type D from another field with type D. What is the data type of the result?
Choose the correct answer.
A
D
B
UTCLONG
C
I
Q3.
Which of the following data types is complete?
Choose the correct answer.
A
N
B
STRING
C
P
D
C
Q4.
Which of the following assignments between variables of different data types is guaranteed to be free of rounding, truncation, field overflow, or type mismatches?
There are two correct answers.
A
TYPE DECFLOAT16 TO TYPE DECFLOAT34
B
TYPE P LENGTH 3 DECIMALS 2 to TYPE P LENGTH 6 DECIMALS 3
C
TYPE C LENGTH 10 to TYPE C LENGTH 3
D
TYPE STRING to TYPE I
Q5.
Which of the following data types is not a numeric type?
Choose the correct answer.
A
DECFLOAT16
B
I
C
N
D
P
Q6.
You have a result field resultwith TYPE P LENGTH 3 DECIMALS 2. Which of the following statements leads to an exception?