How many arguments are given to the above command? [code]disp(‘ ‘lola!’ 2’)[/code]

How many arguments are given to the above command?
Code:
disp(‘ ‘lola!’ 2’)
A. Cannot be defined
B. 2
C. 1
D. 0
 
Answer: c
Explanation: The syntax of the disp() command is disp(string argument). To introduce further arguments, we habe to use disp(string argument,1Arg,2Arg). Now, once we end our string argument, we need to put a comma. Here, we haven’t put any comma so it shows that there is only 1 string argument while the rest is not defined as an argument also.
 

Tìm kiếm

Back
Top