The end of every semester concludes with an examination, known as a written exam. This can be either oral or written; in writing. Written examinations come in various forms - from multiple choice and open questions to the development of a concept. In an oral examination, you are in direct discussion with your examiners. Each type of exam requires its own form of preparation. Key features apply to all of them: you should have a firm grasp of the material liaised with (companies) in the lecture. However, the way you present your knowledge in the examination depends on the type of examination and should also be practiced specifically. If you are about to take an oral examination, for example, you should definitely practice this with your fellow students beforehand.
Good exam preparations begin during the semester. You will often receive exercises or practice questions from lecturers that you should work on during the semester. However, not only these exercises are good preparation, but also your notes and the course handbook (e.g. your optoelectronics handbook). A useful way to prepare the course handbook is to create index cards on which you summarize the essentials. In this way, you can take a closer look at the material and learn to separate the important from the less important.
In the field (of) engineering sciences in particular, it is also crucial that you really understand formulas. Mathematics formulas describe physical and engineering sciences in a very compact way. Create your own collection of formulas and try to explain the relationships in your own words. This will give you a good, easy-to-learn summary of the material. Remember that examinations do not usually test pure "memorization", but that you must be able to transfer your knowledge to new tasks. A good practice class for this is to create a quiz for the lecture that you "play" together with your fellow students - e.g. by asking each other questions and playing "Hangman".
Further reading can also help you to gain a deeper understanding of the lecture material. Knowledge from textbooks is particularly helpful in oral examinations. For example, there is good literature on Optical Systems Engineering, Optical Design or Optical Engineering in general. These books will help you to develop a broad understanding of your field of study, subject. You can often even download them as PDFs from the library.
Finally, you should also try to get hold of old exams. Old exams are a good way to familiarize yourself with your examiners, get to know their style of questioning and identify important key topics of the examination.