Exercise 2
Question 1
SYNTAX in MQL4 is the studying of its grammar and writing rules which consist of
1-
2-
3-
4-
Question 2
Which sentences of the following are false, and why?
1- When you write your code, you can freely use any set of spaces, tabs and empty lines you want to separate your code and your line of code to make them readable and eyes pleasing.
(true/false)
Why:
2- You can use // symbol to comment Multi lines by starts the line with // and ends it with //.
(true/false)
Why:
3- These keywords are reserved words in MQL4 which you can use them as name for your identifiers:
bool,white,Color,case,break,do and Extern
(true/false)
Why:
Question 3
Which of the following is a valid code and which is invalid, and why?
1-
extern int /*HELLO! Im a comment*/ MA_Period=13;
(Valid/Invalid)
Why:
2-
int 3Periods;
(Valid/Invalid)
Why:
3-
string _MyString = Welcome;
(Valid/Invalid)
Why:
4-
double
MacdCurrent,
MacdPrevious,
SignalCurrent;
(Valid/Invalid)
Why:
5-
color Color= C'128,128,128';
(Valid/Invalid)
Why:
.
Last edited by forexts; 11-07-2005 at 08:34 AM.
|