Interview Report
- 0of 0 votes
AnswersYou can mix integers and non-integers in a single expression. For example:
- jaq0033@my.londonmet.ac.uk April 27, 2016 in United States
123."A"="123A" "4A"+123=127 "5.5"+5=10
Non-integers are converted to integers as required by the operators. The non-integer converts to an integer starting with the leftmost character and continuing until encountering a non- numeric character. In the second example above, "4A" converts to 4; in the third example,
"5.5" converts Question:
A. B. C. D. E. F.
to 5.
What is the value of "1.2"+3.4?
4.4
4.6
44
46.2
154
None of the above| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersFurther examples:
- jaq0033@my.londonmet.ac.uk April 27, 2016 in United States
S X= "JOHN DOE;1234 MAIN;ANYTOWN" $P(X;1)="JOHN DOE"
$P(X;2)="1234 MAIN"
$P(X;2,3)="1234 MAIN;ANYTOWN"
Question: Assume X is as shown above. What would appear if we executed the statement: WRITE $P(X;1,3)
A. JOHN
B. JOHN DOE
C. JOHN DOE; ANYTOWN
D. JOHN DOE1234 MAINANYTOWN
E. JOHN DOE; 1234 MAIN; ANYTOWN
F. An error
G. Nothing| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersMore on Data Conversion
- jaq0033@my.londonmet.ac.uk April 27, 2016 in United States
Question: Suppose A="JOHN", B="JANE", AND C="3DOES". What is the value of 0.A+B+C-3?
A. "0JOHNJANEDOES"
B. JOHNJANE3DOES
C. 0
D. 3
E. AandD
F. BandC
G. All of the above
H. None of the above| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersQUESTION #13: Integer Concatenation
- jaq0033@my.londonmet.ac.uk April 27, 2016 in United States
You can also concatenate integers. For example: 5.5 = 55 678.910 = 678910
Question: What is the value of 1.2+3.4?
A. 0
B. 4.6
C. 46
D. 154
E. 1234
F. Not allowed - illegal syntax| Report Duplicate | Flag | PURGE