A Study of Value Trace Problems in JavaScript Programming Learning Assistant System
A Study of Value Trace Problems in JavaScript Programming Learning Assistant System
3.2 Concept of the Value Trace Problems 4.2 Example of VTP Instances
A VTP instance can be generated by the following procedure: Here, we show an example of the generated VTPs in this study.
1) to select a source code that is suitable for studying basic Source code shows the adopted source code for studying
grammar concepts or a fundamental data structure/algorithm, JavaScript Data Type Usage in instance ID=1 of the basic
2) to find important messages and key variables in the code, grammar of VTP Part I. Question shows the corresponding
question with five answer forms. The correct answers to them are
undefined, null ,100, true and Hello. A student needs to read the reading the provided references for the evaluations before
source code carefully to understand it and fill in the forms solving them. It is noted that one student did not reply the
correctly. answers for VTP-I.
Source Code
5.1 Individual Student Result for VTPs
main( ) {
var undeclaredVar; Figures 2 and 3 show the number of students for each correct
var obj = null; answer rate range for VTP- I and VTP-II, respectively. For VTP-
var num = 100; I, 6 students among 44 solved with 100% correct rate. There are
var inProgress = true;
var Greeting = "Hello"; 25 students who achieved 95 to 99% correct rate. Among the
remaining 13 students, 8 did 90 to 94%, 5 did from 80 to 89%.
console.log(undeclaredVar); // undefined For VTP-II, 21 students among 45 achieved 100% correct rate.
console.log(obj); // null 20 students achieved 95 to 99% correct rate, 2 students did 90 to
console.log(num); // number 94%, 2 students did 80 to 89%. The average correct rate for
console.log(inProgress); // boolean VTP-I is 96.55% and for VTP-II is 98.30%. The smallest rate for
console.log(Greeting); // string
VTP-I is 81% and that for VTP-II is 83%. Thus, the generated
}
VTP instances are at proper levels for students to start studying
Questions JavaScript programming.
What is the value of undeclaredVar? _1_
What is the value of obj? _2_
What is the value of num (approximately two decimal place)?
_3_
What is the value of inProgress? _4_
What is the value of Greeting? _5_
Figure 1 illustrates the user interface for this VTP instance.
After filling all answer forms, the student has to click the blue
“Answer” button. If the answer is not correct, the background
color of the form will change into red. Otherwise, the
background color will be white. The student can submit the Fig 2. Student results for VTP-I.
answers repeatedly until all the answers to be correct.