With one slight elaboration, I agree with Ette Etuk.
As regards the dependent variable (DV), it should be of interval or ratio strength for ordinary ANOVA. If the DV is ordinal, you could use a rank-analog version of anova, such as the Kruskal-Wallis method. Note that IVs for ANOVA are categorical (with the exception of covariates, which are typically continuous, not discrete, variables).
However, if your DV is a dichotomous variable (has only two values), then arithmetically, you can use ordinary ANOVA. Whether it makes sense to do so (as opposed to another method, such as logistic regression, log-linear analysis, or some other option) is a different issue altogether (and that's where your specific research question comes into play).