Why is the output, as shown, ‘poe’? [code]>>clipboard(‘paste’, ‘Do re Mi fa’) ans = ‘poe’[/code]

Why is the output, as shown, ‘poe’?
Code:
>>clipboard(‘paste’, ‘Do re Mi fa’)
ans =
      ‘poe’
A. ‘poe’ was initially in the clipboard
B. Cannot be determined
C. Error
D. The text gets changed
 
Answer: a
Explanation: If we’ve used the clipboard command to copy a string before, we need to paste it already. We cannot use the ‘paste’ keyword to paste a new string if there’s already a string in our clipboard.
 

Tìm kiếm

Back
Top