Halstead Complexity Measures is a software metrics introducted by Maurice Howard Halstead in 1977. This metrics used to identify measurable properties of the code and relation between them. Several measures can be calculated with this method are program vocabulary, program length, volume, difficulty and effort. In learning process, the final result obtained by students should be linear with the results obtained each time the students doing their exercises. This study aims to see the pattern similarity relationship between coding that students do on each exercise in term of difficulty, programming effort and programming time with the final value that they obtained. The experiment was done by giving the students three sets of exercise questions which were derived from the final problem, then each set of exercise code done by each students measured using halstead method and compare with the final grade obtained by each student.