Instructions: Given a scientific passage and an answer, generate a question for the given answer.
Input: Passage: How metalloids behave in chemical interactions with other elements depends mainly on the number of electrons in the outer energy level of their atoms. Metalloids may act either like metals or nonmetals in chemical reactions. Answer: metalloids
Output:
In chemical reactions, what substances can act like metals or nonmetals, depending on their number of electrons?