I'm pretty sure PopcornTime is right - the smaller prokaryotes (i.e. mitochondria and chloroplasts) were engulfed by a larger prokaryote.
Check out this video from Amoeba Sisters (kinda childish but really cute and explains it all clearly
) - they are suggesting that the smaller prokaryote was engulfed by a larger prokaryote.
https://www.youtube.com/watch?v=FGnS-Xk0ZqU&vl=en
EDIT: In saying that, I have just looked up a little more, and this website (https://www.nature.com/scitable/topicpage/eukaryotic-cells-14023963) is suggesting that it was a eukaryote that engulfed it. I'll keep looking later when I have a chance and let you know what I find!
Okay, so I think I have got it.
I have looked up a few website and videos and looked through some of the books and resources that I have at home, and most have conflicting statements as to whether it is a prokaryote or a eukaryote that is engulfing the mitochondria and chloroplasts - turns out, there are two conflicting theories of this - one being that it was engulfed by a prokaryote and the other by a eukaryote (check it out here -
https://www.nature.com/scitable/topicpage/the-origin-of-mitochondria-14232356). The theory that I think makes the most sense is in this video..its long but a really good explanation of how prokaryotes evolved into eukaryotes, and (in my opinion at least), this theory makes the most sense. (
https://www.youtube.com/watch?v=Enztyji4r8E).
This theory says that the cell that engulfed the mitochondria and chloroplasts is in a prokaryotic cell that is
in the process of becoming a eukaryotic cell (or an "Early pre-eukaryotic cell", as Biozone refers to them). This does make sense, as part of the general definition for a eukaryotic cell is that it contains membrane-bound organelles, and the incorporation of mitochondria and chloroplasts into the cell would make it a eukaryote.
The video above the whole process out really clearly, but in summary, the process of a cell moving from prokaryote to eukaryote is as follows:
1. A prokaryotic cell loses it's cell wall, leaving just the flexible plasma membrane that we see in many modern eukaryotes.
2. This increased flexability of the membrane allows for infolding (basically the plasma membrane folding in on itself). Because of this, internal membranes can begin to form. These start to move around the DNA, forming a nucleus region in the cell, that is bound by a nuclear envelope.
3. The membrane flexibility also allows for endocytosis to occur.
4. Cytoskeleton forms. This allows the skell to change shape and distribute daughter chromosomes during mitosis, as well as allowing for better movement in the cell as it increases in size. Flagellum also forms, allowing for cell movement.
At this stage, due to the membrane-bound nucleus, this could probably be considered to be eukaryotic, however, at this stage, there are no membrane-bound organelles.
Now, regarding the endosymbiosis bit...
We only need to know about chloroplasts and mitochondria as being engulfed, but it's also good to be aware that there were other organelles in eukaryotes that were not originally there, like peroxisomes. So...
5. What we now call mitochondria is engulfed by our larger cell.
At this stage, we can consider the basic evolution of the eukaryotic cell to be "complete". But of course...
6. What we now call chloroplasts are engulfed.
And that seems to be it! Most of this stuff about how the eukaryotic cell evolved we do not need to know about, but in my opinion, at least, it gives a better, deeper understanding of how it all works. So to answer your question, I'd say it's not necessarily a prokaryote or a eukaryote cell that is engulfing the mitochondria and chloroplasts - it's a cell that is evolved to a stage where it is not really considered a prokaryote. Don't quote me on it, but because there is so much confusion and uncertainty on the topic, I would doubt that they would directly ask a question as to whether it is a prokaryotic or eukaryotic cell that is engulfing, and if they do ask for a definition of endosymbiosis, you probably could get away with saying a larger cell (maybe

).
Hope that kind of helps and clears things up.