Selection statements like if/else are used to make choices in code based on conditions, loops like for/while repeat actions, and arrays store multiple values in a list; together an example uses these concepts to sort names in an array with a for loop and if/else statements. While selection statements and loops can sometimes replace each other, they are better suited for different tasks with selection for single checks and loops for repetitive tasks.