What is the output of the following code? [code]warning(‘Pikapi !’)[/code]

What is the output of the following code?
Code:
warning(‘Pikapi !’)
A. Warning: ‘Pikapi !’
B. Warning: Pikapi !
C. Warning: ‘Pikapi !’
D. Warning: Pikapi !
 
Answer: d
Explanation: A warning message is always displayed in a dark yellow color. The message itself is not shown as contained within a ‘’. Hence, option Warning: Pikapi ! is correct.
Output: Warning: Pikapi !
 

Tìm kiếm

Back
Top