once i 'm waiting for my teacher to ask question, after she finished her work, and said to me,"yes, ma'am" is every girl called "ma'am"??
It is polite when someone says yes madam ( or yes ma'am) to a lady of higher authority. It's impolite to address them in their first names ro surnames. However in some occasions, it is allowed to address the lady as Mrs.(her name).

In yourcontext, if I read it right, your teacher called you ''ma'am''? In which case, she only did from a humoristic point of view.

Traditionally, madam is for married women while unmarried women are miss.

o~i see.Thank you, it's very useful.

If she used it in a humoristic point of view, is that also base on i'm old enough to be called ma'am?
Students: We have free audio pronunciation exercises.
Candice In Canadao~i see.Thank you, it's very useful.

If she used it in a humoristic point of view, is that also base on i'm old enough to be called ma'am?
I think in any formal situation [teacher~student] it could be used simply to show respect. As a teacher, I often use "ma'am" and "sir" with my high school students in situations where I was responding to a question, but not as "Yes, sir, I will do that".
I sometimes say this to very bossy women. :-)
First madam is not part of it........madam is a lady who runs a whorehouse,mrs is for married miss is for unmarried
Students: Are you brave enough to let our tutors analyse your pronunciation?
Anonymousmadam is a lady who runs a whorehouse
I believe there are exceptions to that.
In English-speaking countries, the wife of a foreign dignitary is called Madame in direct address and formal correspondence, rather than the equivalent title in the person's native language (Señora, Frau, etc.).
After addressing her as "Your Majesty" once, it is correct to address the Queen of the United Kingdom as "Ma'am" (pronounced to rhyme with "ham") for the remainder of a conversation.
In 2009 the European Union issued guidance discouraging the use of "ma'am" when the woman's name is known, but does not indicate how to address a woman when her name is not known.
In the UK, the wife of a holder of a non-British hereditary knighthood such as the German or Austrian Ritter, the Dutch-Belgian Ridder, the French-Belgian Chevalier and the Italian Cavaliere is called Madame. The English male equivalent is Chevalier.

Madam is also used as the equivalent of Mister (Mr) in composed titles, such as Madam Justice, Madam Speaker, Madam President. In the UK, job titles such as President or Prime Minister are not used as titles, as such. By the precedent set by Betty Boothroyd, a female speaker of the house of commons is Madam Speaker or Miss Boothroyd.
However, the title Madam Justice is used in third-person reference: Madam Justice Louise Arbour, Madam Justice Arbour.
In the United States Supreme Court, in the Canada Supreme Court and the superior courts of Australia, rather than adopting the title Madam Justice for female justices, the title Mrs. Justice was replaced simply by Justice. Likewise, female presidents of the Republic of Ireland have preferred to be addressed simply as President in direct address, rather than Madam President, although Mr. President is in use in the U.S. with there being no claims of discrimination. Female judges of the High Court of Justice of England and Wales are titled Mrs. Justice rather than Madam Justice, regardless of marital status. However, District Judges are referred to as either Madam or Ma'am.