Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
!Example Test 1
Welcome to the example test accompanying part one of the <i>A creative solution for internal testing</i> article series by <a href="https://www.linkedin.com/in/klcn/" target="_Blank">Kjell L.C. Nicolaysen</a>.
1. The test itself is meant as a proof of concept and could use a fair bit of streamlining and correction. This is left out in the interest of time saving. Hire me and I would be more than happy to fix any issues.
2. @@.note;
Any text in a gray box are "example notes" and would not appear on a proper test. This is just me explaining some of what is happening, giving you the correct ''answer:'' for the current question and your current //score://.
@@
3. It is highly recommended that you read the accompanying <a href=" " target”_Blank”>article</a> as it has the source code for each section and explains it step by step.
<<set $score to 0>>
The example test consists of five questions total with a required score of 4 correct to pass.
To start, click [[here|First Question]].@@.note;
A simple yes/no question that also demonstrates the multiple choice option. The key here is that is will add one point to your score if you answer correctly.
''Answer: YES''
//Score: $score// @@
!!Question 1
Can you submit import declarations to the Norwegian Customs Authorities electronically?
<<button YES "Second Question">><<set $score += 1>><</button>> <<button NO "Second Question">><</button>> <<button "I DON'T KNOW" "Second Question">><</button>>
<span style="display: none;">[[Second Question]]</span>
<div class="note">In this question you have to do a calculation and manually enter your answer in the provided text box.
<b>Answer: 363</b>
<i>Score: $score</i></div>
<h2>Question 2</h2>
Assuming you have goods with a combined value of 300 EUR, and there is 10% VAT and a 10% duty on the goods, how much do you have to pay in total (including the value of the goods) when importing them?
<<textbox "$answer" "Answer Here" "Third Question" autofocus>><<button "Submit" "Third Question">><</button>>
<span style="display: none;">[[Third Question]]</span>
<<if $answer is "363">><<set $score += 1>><<set $answer to "N/A">><</if>><<set $v1 to random(30000, 99000)>><<set $v2 to random(200, 2000)>><div class="note">The values generated for this question are random - a link has been provided at the bottom of the page which will re-load the page to show this.
<b>Answer: $v1 GBP</b>
<i>Score: $score</i></div>
<h2>Question 3</h2>
A Norwegian based company has bought some good from a UK based company. The goods are to be imported, and you get an invoice that has the following posts.
<div style="font-family: monospace;">
Rotor assembly: $v1 GBP
UK VAT........: $v2 GPB
TOTAL PAID....: <<print $v1 + $v2>></div>
What is the total base customs value to be used to calculate the Norwegian import VAT?
<<button "$v1 GBP" "Fourth Question">><<set $score += 1>><</button>>
<<button "$v2 GBP" "Fourth Question">><</button>>
<<button "<<print $v1 + $v2>> GBP" "Fourth Question">><</button>>
[[Reload page|Third Question]]
<span style="display: none;">[[Fourth Question]]</span><<set $coinflip to random(1, 2)>><<if $coinflip is 1>><<set $correct_answer to "NO">><<else>><<set $correct_answer to "YES">><</if>><div class="note">The question asked in this part of the test is randomised. As with the previous question, there is a link at the bottom of the page which lets you reload the page to get a rough 50/50 chance of getting the other question that the test randomdly did not select this time. So you may have to click it a few times to get the other question.
<b>Answer: $correct_answer</b>
<i>Score: $score</i></div> <<if $coinflip is 1>>
<h2>Question 4</h2>
Per the 2009 Customs Regulations, is a piece of art made of concrete and rebar considered a piece of art and therefore qualifies for a reduced import VAT?
<<button "YES" "Fifth Question PRE">><</button>> <<button "NO" "Fifth Question PRE">><<set $score += 1>><</button>>
<<else>>
<h2>Question 4</h2>
An oil on canvas painting is being imported to Norway. The painting was bought from an auction house in London, which they bought from a collector that bought the painting from the original artist whom is still alive. Do you have to pay regular import VAT on the painting?
<<button "YES" "Fifth Question PRE">><<set $score += 1>><</button>> <<button "NO" "Fifth Question PRE">><</button>>
<</if>>
[[Reload page|Fourth Question]]
<span style="display: none;">[[Fifth Question PRE]]</span><div class="note">Here is an example of a timed question.
<<silently>>
<<set $timer to 120>>
<<repeat 1s>>
<<set $timer -= 1>>
<<replace "#countdown">>$timer<</replace>>
<<if $timer < 1>>
<<goto "Result">>
<<stop>>
<</if>>
<</repeat>>
<</silently>>
<b>Answer: The value of the goods will have to be calculated based on the Customs law.</b>
<i>Score: $score</i></div>
<h2>Question 5</h2>
<div class="timer">Timer: <span id="countdown">120</span> seconds remaining.</div>
A sailboat is stopped in the Bergen harbour. Onboard are two crates containing four mopeds in total. The person presents paperwork including an invoice for the four mopeds - at a price that seems impossibly low. When questioned the person confesses that the factory producing the mopeds in Vietnam is a family friend and gave them a good "friend" price on the mopeds. When asked if anyone can go to the factory and get the same deal the person reluctantly admits no.
Is the price stated on the invoice the true cost of the goods being imported or will the real cost have to be determined as per §§ 7-11 to §§ 7-20 of the Customs law?
<<link "The value stated on the invoice is correct." "Result">><</link>>
<<link "The value of the goods will have to be calculated based on §§ 7-11 to §§ 7-20 of the Customs law." "Result">><<set $score += 1>><</link>>
<span style="display: none;">[[Result]]</span><div class="note">And here we are, a simple pass/fail result based on the previous questions with one point per correctly answered question. This was just a simple proof of concept.
Keep your eyes peeled on <a href="https://www.linkedin.com/in/klcn/" targer="_blank">LinkedIn</a> for the second article in the series where we will look at:
- Adding questions with multiple correct answers, and one point per correct question.
- Adding images, audio and video.
- Automating the sending of the results to the examiner via email.
- Importing the data into a spreadsheet along with a simple checksum calculation to ensure the data has been reported correctly.
<i>Final score: $score</i></div>
<h2>Results</h2>
To pass you are required to have answered 4 out of 5 questions correctly.
<<if $score >= 4>>Congratulations! Based on your score you have <span style="color: green; font-size: x-large;"><b>PASSED!</b></span>
<<else>>Based on your score you have <span style="color: red; font-size: x-large;"><b>FAILED!</b></span>
<</if>>
Please show this screen to the examiner prior to closing the window and leaving the examination room quietly.<div class="note">The following question will be time based, on the advice of my beta tester, I split this into two parts, one warning the student that the following question will be timed, and another for the timed question.
Please note that the entire test could be timed if this was required.
<i>Score: $score</i></div>
The following question will be timed. You will have two minutes to read and answer it.
When you are ready to start, click <<link "here" "Fifth Question">><</link>>
<span style="display: none;">[[Fifth Question]]</span>