jaq0033@my.londonmet.ac.uk
BAN USER- 0of 0 votes
AnswersFurther examples:
- jaq0033@my.londonmet.ac.uk 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
AnswersQUESTION #13: Integer Concatenation
- jaq0033@my.londonmet.ac.uk 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
- 0of 0 votes
AnswersYou can mix integers and non-integers in a single expression. For example:
- jaq0033@my.londonmet.ac.uk 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
AnswersMore on Data Conversion
- jaq0033@my.londonmet.ac.uk 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
AnswersThere is a KILL command which removes a variable and its value from the symbol table, thus undefining it. The syntax for the KILL is:
- jaq0033@my.londonmet.ac.uk in united kingdom
K A KILL command followed by 2 spaces kills all variables. K VAR The variable VAR is killed, if it exists.
K (VAR,VAS) All variables except VAR and VAS are killed.
The most common use of KILL is to free storage space. Another use is to flag conditions - if a particular value is defined, that means one thing; and if it is undefined, that means something else.
Question: K S S="4",T=S+2,Z=T>6 K K, J, S What variables are defined and what are their values?
A. T=6,Z=” “
B. T=”6”, Z=0
C. S=”4”,T=6,Z=0
D. S=”4”,T=”6”,X=”0”
E. S=”4”,T=”6”,Z=”FALSE”
F. S=”4”,T=”S+2”,Z=”T>6”
G. No variables are defined| Report Duplicate | Flag | PURGE
Algorithm - 0of 0 votes
AnswersQuestion: What is the value of A after executing the following?
- jaq0033@my.londonmet.ac.uk in united kingdom
S A=1, B=1, C=1, A=1+A+(A-1)
A. 5
B. 3
C. 2
D. 1| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersThe syntax for the SET command is: S arg1,arg2...argx
- jaq0033@my.londonmet.ac.uk in united kingdom
S VAR=expression
S VAR1=exp1,VAR2=exp2... S X=Y
Assigns the value of the expression
to the variable VAR. The data type
of VAR is determined by the expression.
Assigns values to multiple variables.
Assigns the value of variable Y to variable X.
Question: If I say: R Z S X=Z, Y=X
What type of variables are X, Y and Z?
A. All string
B. All numeric
C. X, Y numeric; Z string
D. X numeric; Y, Z string
E. X numeric; Y, Z undefined
F. Can't tell without more information| Report Duplicate | Flag | PURGE
Repabigailbeyer415, Data entry keyer at Opentable
Outside the world of data entry, I find joy and relaxation in a unique hobby—Reddy Anna Casino. Whether it ...
Repdeborahdond, Rehabilitation counsellor at Parts salesperson
Hello, I am Deborah Rehabilitation counsellors who help people with physical, mental, developmental, or emotional disabilities live independently. I want ...
RepAllieGill, abc at 8x8
Celebrating one year as a seasoned General Manager, I've navigated diverse industries with a passion for leadership and strategic ...