What is the molarity of a solution containing 40 grams of NaOH in 100 ml of soution

Molarity is defined as #moles/L soln.

moles NaOH = grams/molar mass
100 mL = 0.100L.