Since you must know the nerves by name and number, some students find the following saying helpful in learning the names of the nerves. The first letter of each word in the saying corresponds to the first letter of each cranial nerve.
Exits skull through olfactory foramina in cribriform plate of ethmoid.
Sense of smell. Exits skull through optic foramen of sphenoid. Exits skull through superior orbital fissure of sphenoid. Motor to intrinsic and extrinsic eye muscles. Exits skull through superior orbital fissure of sphenoid.