All computer programs executed by a CPU are stored in secondary storage, as they are all loaded into primary memory from the persistent storage. A high level program is a program is any sort of program typically written in high level programming languages like C, Java, Go, Python, etc. In order for a program written in a high level programing language to be executed by the CPU, it first has to be compiled (for compiled programming languages) or interpreted (for scripting programming languages). The CPU only understands binary (0's and 1's) hence it cannot directly execute a program authored in a high level programming language.
The program is in machine code and stored in secondary storage, since the CPU does not directly access the program in secondary storage If the CPU wants to execute the program, it first tries to find the program in primary memory. If the program is in primary memory, the program is then executed by the CPU. If the program is not in primary memory, then the program will have to be loaded from secondary storage into primary memory. This is done by making a copy of the required parts into primary memory ready to be executed. This process however is very costly, since secondary storage is slow compared to primary memory, lots of time is spent loading the program to primary memory ready for execution.