Can the questions be defined by difficulty?

Yes, you can define the difficulty of questions (easy, medium, hard) and specify a different number of points each difficulty category will carry.

Check this article or watch this video for more information on using a test generator to create different test versions (containing a certain number of questions of each difficulty).