Peer tutoring strategy changes the role of instructors no matter what the instructor is an educator or a peer. The well-known method in computer science education, pair programming, is some kind of effective collaborative peer tutoring activity. The advantages of peer tutoring method emphasize similar prior knowledge and languages among peers so as to achieve teaching goals. Data Structure is a very important basic curriculum, regarded as a mandatory course in relevant computer domains of university. However, most of students fail to present their coding skills after learning data structure course. Cooperative learning is an effective learning strategy in which is often applied to education field. Students must work in groups to complete tasks collectively toward academic goals. Pair Programming could decrease errors in coding, increase coding quality and promote programmers confidence, as well as enhance their coding ability. This study incorporates an experimental learning activity, in which the students are asked to write programming codes, which can enhance studentsâ€™ learning motivation. Then, this study compares the performance of the students with different learning styles in learning motivation. According the results of Two-way ANOVA, the proposed intervention could increase students learning performance. The reflective-style students could have better learning achievement than active-style ones.