Taking computer science and math summer classes for engineering as an incoming freshman undergrad?

I agree with above, do not do this if it is just for UCLA. However, wherever you go I think it’s a positive thing to try and get ahead.

If you end up going to UCLA you don’t need to worry too much about never being introduced to CS. The professor who teaches it in the fall goes VERY slowly. I know many people who were never introduced to CS and still did well in the classes and even changed their major to CS. ( I am an EE who had no previous experience with CS, did well in CS31 (the first CS class at UCLA) and then got overly confident and didn’t do so well in CS32.) Of course if you get some previous experience things will be simpler. (I also knew people who had no previous experience and did poorly, depends on the person). I even know people who did poorly even though they had previous experience. Because the professor goes so slow, some people think they know everything, start skipping/spacing out during lectures, and eventually fall behind because they didn’t realize prof. Started talking about things they didn’t know.
Lesson learned: whatever university you go to, don’t get overly confident with CS lol

As for which language you study, Python or Java tend to be easiest for beginers. At UCLA as an EE you would be required to take C++, (I believe at most universities they have engineering students take C++, but of course check whever you decide to go) so in my personal opinion I think it would be best to start there. You can start building good habits for the classes you’d be taking. In addition, if you end up going to a different university, going from C++ to java or Python is an easier jump to make than from Java or Python to c++. I also agree that C++ would give you a better understanding. With C++, the computer doesn’t make assumptions about the code you give it. It does exactly what you tell it to do.

If you take an equivalent to Calc BC/ math 31B UCLA would let you skip it and go to the next class in the series. Make sure that the class is equivalent first.

Good luck with your application!