View Single Post
  #5 (permalink)  
Old 10-24-2005, 08:36 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Question 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! I’m 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:






.
Attached Files
File Type: pdf Lesson2Answers.pdf (26.2 KB, 654 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by forexts; 11-07-2005 at 08:34 AM.
Reply With Quote