What is the output of the following code? [code]clipboard('copy',poe)[/code]

What is the output of the following code?
Code:
clipboard('copy',poe)
A. Logical Error
B. Copies ‘poe’
C. Copies poe
D. Syntactical Error
 
Answer: d
Explanation: There is syntactical error in the following code. Since ‘poe’ is a string, it has to be declared within a pair of single inverted commas. Here it hasn’t been so which leads to an error and the correct answer is that there is a logical error.
 

Tìm kiếm

Back
Top