Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/curso/public_html/administrator/components/com_widgetkit/classes/OAuth.php on line 110

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/curso/public_html/administrator/components/com_widgetkit/classes/OAuth.php on line 110
Gramática Agora você pode aprender inglês grátis estudando online no conforto de sua casa. https://ingles.eu.org/gramatica-inglesa/90-falsos-cognatos-false-friends 2024-05-02T02:37:55-03:00 Inglês Curso Joomla! - Open Source Content Management - Version 3.10.11 False Friends Exercise 2010-02-02T18:22:10-02:00 2010-02-02T18:22:10-02:00 https://ingles.eu.org/gramatica-inglesa/90-falsos-cognatos-false-friends/1077-false-friends-exercise Samuel S Santos <tohead> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> body{ font-family: Geneva,Arial; background-color: #0094B0; color: #B8D8FF; padding-left: 5%; padding-right: 5%; font-size: small; } p{ text-align: justify; margin: 0px; font-size: small; } table,tr,td,div,span{ font-size: small; } div.Titles{ padding-top: 10px; text-align: center; margin-bottom: 4px; color: #B8D8FF; } .ExerciseTitle{ font-size: large; color: #B8D8FF; } .ExerciseSubtitle{ color: #B8D8FF; } span.Instructions{ } .QuestionText{ } .AnswerText{ } .QNum{ font-weight: bold; } .FeedbackText{ } div.Feedback { background-color: #0094B0; left: 1px; top: 33%; z-index: 1; border-style: solid; border-width: 1px; padding: 5px; text-align: center; color: #B8D8FF; position: absolute; display: none; font-size: small; } div.StdDiv{ background-color: #133D8A; text-align: center; color: #B8D8FF; padding: 1em; border-style: solid; border-width: 1px; border-color: #B8D8FF; margin: 1px 0px 0px 0px; font-size: small; } .FunctionButton { background-color: #133D8A; color: #B8D8FF; text-align: center; border-style: solid; border-color: #133D8A; border-width: 2px; padding: 3px 6px 3px 6px; cursor: pointer; } div.NavButtonBar{ background-color: #133D8A; text-align: center; margin: 2px 0px 2px 0px; clear: both; font-size: small; } div.NavButtonBar button { border-style: solid; border-color: #133D8A; background-color: #133D8A; border-width: 2px; padding: 2px 2px 2px 2px; color: #ffffff; cursor: pointer; } a{ color: #B8D8FF; } a:visited{ color: #B8D8FF; } a:hover{ color: #B8D8FF; } </style> <script type="text/javascript"> //<![CDATA[ <!-- // BrowserCheck Object function BrowserCheck() { var b = navigator.appName; this.mac = (navigator.appVersion.indexOf('Mac') != -1); if (b=="Netscape") this.b = 'ns'; else if (b=="Microsoft Internet Explorer") this.b = 'ie'; else this.b = b; this.ns = (this.b == 'ns'); this.ie = (this.b == 'ie'); this.version = navigator.appVersion; if (this.b == 'ie'){ var x = this.version.indexOf('MSIE ') + 5; var vnum = ''; while ((this.version.charAt(x) > -1)&&(this.version.charAt(x) < 10)){ vnum += this.version.charAt(x); x++; } this.v = parseInt(vnum); } else{ this.v = parseInt(this.version); } if (this.ns&&(this.v == 5)){ this.v = 6; } this.min = (this.v > 5); } is = new BrowserCheck(); if ((is.min == false)||(is.ie5mac)){ alert('Your browser can\'t handle this page. You need NS6+ or IE6+ on Windows, or NS6+ on Mac.'); } function PageDim(){ //Get the page width and height this.W = 600; this.H = 400; if (is.ns) this.W = window.innerWidth; if (is.ie) this.W = document.body.clientWidth; if (is.ns) this.H = window.innerHeight; if (is.ie) this.H = document.body.clientHeight; } var pg = null; function SuppressBackspace(e){ if (is.ns) { thisKey = e.keyCode; } else { thisKey = window.event.keyCode; } var Suppress = false; if (thisKey == 8) { Suppress = true; } if (Suppress == true){ if (is.ie){ window.event.returnValue = false; window.event.cancelBubble = true; } else{ e.preventDefault(); } } } var NavLightColor = '#7fafb7'; var NavShadeColor = '#003038'; var NavBarColor = '#133D8A'; var FuncLightColor = '#7fafb7'; var FuncShadeColor = '#003038'; var ExBGColor = '#133D8A'; function NavBtnOver(Btn){ Btn.style.padding = '1px 3px 3px 1px'; Btn.style.borderLeftColor = NavLightColor; Btn.style.borderTopColor = NavLightColor; Btn.style.borderRightColor = NavShadeColor; Btn.style.borderBottomColor = NavShadeColor; } function NavBtnOut(Btn){ Btn.style.borderColor = NavBarColor; Btn.style.padding = '2px 2px 2px 2px'; } function NavBtnDown(Btn){ Btn.style.borderLeftColor = NavShadeColor; Btn.style.borderTopColor = NavShadeColor; Btn.style.borderRightColor = NavLightColor; Btn.style.borderBottomColor = NavLightColor; Btn.style.padding = '3px 1px 1px 3px'; } function FuncBtnOver(Btn){ Btn.style.padding = '2px 7px 4px 5px'; Btn.style.borderLeftColor = FuncLightColor; Btn.style.borderTopColor = FuncLightColor; Btn.style.borderRightColor = FuncShadeColor; Btn.style.borderBottomColor = FuncShadeColor; } function FuncBtnOut(Btn){ Btn.style.borderColor = '#133D8A'; Btn.style.padding = '3px 6px 3px 6px'; } function FuncBtnDown(Btn){ Btn.style.borderLeftColor = FuncShadeColor; Btn.style.borderTopColor = FuncShadeColor; Btn.style.borderRightColor = FuncLightColor; Btn.style.borderBottomColor = FuncLightColor; Btn.style.padding = '4px 5px 2px 7px'; } var topZ = 100; var CurrQNum = 0; var ALetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; var CorrectIndicator = ':-)'; var IncorrectIndicator = 'X'; var YourScoreIs = 'Your score is '; var Tries = 0; var CorrectChoices = 0; var ContinuousScoring = true; var CorrectFirstTime = 'Questions answered correctly first time: '; var ShuffleQs = true; var ShuffleAs = true; var DefaultRight = 'Correct!'; var DefaultWrong = 'Rubbish! Try again.'; var QsToShow = 12; var ReadingURL = '[ReadingURL]'; var Score = 0; var TempReading = ''; var StartTime = (new Date()).toLocaleString(); var HPNStartTime = (new Date()).getTime(); var Finished = false; var SubmissionTimeout = 30000; var QButtonsOpener = '<button class="FunctionButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="ChangeQ(-1); return false;">&nbsp;&lt;=&nbsp;</button><span class="QNum">'; var QButtonsCloser = '</span><button id="NextQButton" class="FunctionButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="ChangeQ(1); return false;">&nbsp;=&gt;&nbsp;</button>'; var TableOpener = '<form name="QForm">'; TableOpener += '<table border="0" style="margin-left: auto; margin-right: auto; margin-top: 10px;">'; var QRow = '<tr><td valign="top" align="right"><span class="QNum">[QNumber].&nbsp;&nbsp;</span></td>'; QRow += '<td valign="top" align="left"> <p><span class="QuestionText">[Question]</span><br />&nbsp;</p>'; QRow += '</td></tr>'; var ARow = '<tr><td>&nbsp;</td><td><table border="0" cellpadding="0" cellspacing="2">'; ARow += '<tr><td></td><td valign="middle" align="left"><span id="FB_[QNum]_[ANum]">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>'; ARow += '<td valign="middle" align="left"><button class="FunctionButton" onfocus="FuncBtnOver(this)" onmouseover="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="CheckAnswer([QNum],[ANum]); return false;">&nbsp;[ALetter]&nbsp;</button></td>'; ARow += '<td><span class="AnswerText">[Ans]</span></td></tr>'; ARow += '</table></td></tr>'; var MARow = '<tr><td></td><td valign="top" align="left"><input type="checkbox" name="A_[QNum]_[ANum]" value="[Correct]"></input>'; MARow += '<span class="AnswerText">[Ans]</span></td></tr>'; var CheckButton = '<tr><td align="center" colspan="2"><table border="0"><tr><td>'; CheckButton += '<button class="FunctionButton" onmouseover="FuncBtnOver(this)" onfocus="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onblur="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="CheckMulti([QNum]); return false;">&nbsp;Check&nbsp;</button>'; CheckButton += '</td></tr></table></td></tr>'; TableCloser = '</table></form>'; function ReduceItems(){ var ItemToDump=0; var j=0; while (I.length > QsToShow){ ItemToDump = Math.floor(I.length*Math.random()); for (j=ItemToDump; j<(I.length-1); j++){ I[j] = I[j+1]; } I.length = I.length-1; } } function Shuffle(InArray){ Temp = new Array(); var Len = InArray.length; var j = Len; for (var i=0; i<Len; i++){ Temp[i] = InArray[i]; } for (i=0; i<Len; i++){ Num = Math.floor(j * Math.random()); InArray[i] = Temp[Num]; for (var k=Num; k < j; k++) { Temp[k] = Temp[k+1]; } j--; } return InArray; } function WriteFeedback(Feedback){ var Output = Feedback + '<br /><br />'; document.getElementById('FeedbackContent').innerHTML = Output; var FDiv = document.getElementById('FeedbackDiv'); //Calculate and set its left setting topZ++; FDiv.style.zIndex = topZ; //Position the feedback div pg = new PageDim(); FDiv.style.left = Math.floor(pg.W/3) + 'px'; FDiv.style.width = Math.floor(pg.W/3) + 'px'; //Set the top again in case the window has been resized if (is.ns){ FDiv.style.top = Math.floor(pg.H/3) + window.pageYOffset + 'px'; } else{ FDiv.style.top = Math.floor(pg.H/3) + document.body.scrollTop + 'px'; } FDiv.style.display = 'block'; document.getElementById('FeedbackOKButton').focus(); } function HideFeedback(){ document.getElementById('FeedbackOKButton').blur(); document.getElementById('FeedbackContent').innerHTML = ''; document.getElementById('FeedbackDiv').style.display='none'; document.getElementById('NextQButton').focus(); if (Finished == true){ Finish(); } } function WriteToInstructions(Feedback) { Feedback = '<span class="FeedbackText">' + Feedback + '</span>'; document.getElementById('InstructionsDiv').innerHTML = Feedback; } function WriteScore(Feedback) { Feedback = '<span class="FeedbackText">' + Feedback + '</span>'; document.getElementById('ScoreDiv').innerHTML = Feedback; } function StartUp(){ //IE bug avoidance -- remove bottom navbar if (is.ie){ if (document.getElementById('BottomNavBar') != null){ document.getElementById('TheBody').removeChild(document.getElementById('BottomNavBar')); } } if (is.ie){ document.attachEvent('onkeydown',SuppressBackspace); window.attachEvent('onkeydown',SuppressBackspace); } else if (is.ns){ window.addEventListener('keypress',SuppressBackspace,false); } //Reduce array if required if (QsToShow < I.length){ ReduceItems(); } //Shuffle stuff if required if (ShuffleQs == true){ I = Shuffle(I); } if (ShuffleAs == true){ for (var i=0; i<I.length; i++){ I[i][1] = Shuffle(I[i][1]); } } //Create arrays CreateStatusArrays(); //Show the first question ShowQuestion(CurrQNum); } I = new Array(); I[0] = new Array(); I[0][0]='Did you know that Chrissie got _________ on holiday in Ibiza?<br />'; I[0][1] = new Array(); I[0][1][0] = new Array(); I[0][1][0][0]='pregnant'; I[0][1][0][1]='Yes, I\'m afraid so.'; I[0][1][0][2] = 1; I[0][1][1] = new Array(); I[0][1][1][0]='embarrassed'; I[0][1][1][1]='She may well have "blushed like rose", but your answer is wrong.'; I[0][1][1][2] = 0; I[0][1][2] = new Array(); I[0][1][2][0]=' sunburnt'; I[0][1][2][1]='When in ibiza, protect yourself from the sun and Italian men.'; I[0][1][2][2] = 0; I[0][2] = 0; I[1] = new Array(); I[1][0]='The _________ I hate most is maths.<br />'; I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='signature'; I[1][1][0][1]=''; I[1][1][0][2] = 0; I[1][1][1] = new Array(); I[1][1][1][0]='subject'; I[1][1][1][1]=''; I[1][1][1][2] = 1; I[1][1][2] = new Array(); I[1][1][2][0]='3.142'; I[1][1][2][1]=''; I[1][1][2][2] = 0; I[1][2] = 0; I[2] = new Array(); I[2][0]='Begonia is a very _________ person.<br />'; I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='smelly'; I[2][1][0][1]='Her personal hygiene has nothing to do with this.'; I[2][1][0][2] = 0; I[2][1][1] = new Array(); I[2][1][1][0]='sympathetic'; I[2][1][1][1]='To whom? To what?'; I[2][1][1][2] = 0; I[2][1][2] = new Array(); I[2][1][2][0]='kind'; I[2][1][2][1]=''; I[2][1][2][2] = 1; I[2][2] = 0; I[3] = new Array(); I[3][0]='Keep _________ the soup the whole time.<br />'; I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='removing'; I[3][1][0][1]='Why?'; I[3][1][0][2] = 0; I[3][1][1] = new Array(); I[3][1][1][0]='throwing large potatoes into'; I[3][1][1][1]='"Plop."'; I[3][1][1][2] = 0; I[3][1][2] = new Array(); I[3][1][2][0]='stirring'; I[3][1][2][1]=''; I[3][1][2][2] = 1; I[3][2] = 0; I[4] = new Array(); I[4][0]='I couldn\'t agree more. That\'s a very _________ idea.<br /><br />'; I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='sensible'; I[4][1][0][1]=''; I[4][1][0][2] = 1; I[4][1][1] = new Array(); I[4][1][1][0]='sensitive'; I[4][1][1][1]='Ha ha. You fell straight into the trap. '; I[4][1][1][2] = 0; I[4][1][2] = new Array(); I[4][1][2][0]='false'; I[4][1][2][1]='Sorry?'; I[4][1][2][2] = 0; I[4][2] = 0; I[5] = new Array(); I[5][0]='The film The Quiet American was a box-office _________.<br />'; I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='attendant'; I[5][1][0][1]='Was he? I didn\'t know.'; I[5][1][0][2] = 0; I[5][1][1] = new Array(); I[5][1][1][0]='exit'; I[5][1][1][1]=''; I[5][1][1][2] = 0; I[5][1][2] = new Array(); I[5][1][2][0]='success'; I[5][1][2][1]='Yeah. Go and see it. '; I[5][1][2][2] = 1; I[5][2] = 0; I[6] = new Array(); I[6][0]='How many _________ can you speak?<br />'; I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='idioms'; I[6][1][0][1]=''; I[6][1][0][2] = 0; I[6][1][1] = new Array(); I[6][1][1][0]='languages'; I[6][1][1][1]=''; I[6][1][1][2] = 1; I[6][1][2] = new Array(); I[6][1][2][0]='sentences'; I[6][1][2][1]='Lots and lots.'; I[6][1][2][2] = 0; I[6][2] = 0; I[7] = new Array(); I[7][0]='_________ I\'m living with my parents again.<br />'; I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='Nowadays'; I[7][1][0][1]=''; I[7][1][0][2] = 1; I[7][1][1] = new Array(); I[7][1][1][0]='Actually'; I[7][1][1][1]=''; I[7][1][1][2] = 0; I[7][1][2] = new Array(); I[7][1][2][0]='Unfortunately'; I[7][1][2][1]=''; I[7][1][2][2] = 0; I[7][2] = 0; I[8] = new Array(); I[8][0]='The poor live in the _________.<br />'; I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='Ritz'; I[8][1][0][1]='I don\'t think so.'; I[8][1][0][2] = 0; I[8][1][1] = new Array(); I[8][1][1][0]='suburbs'; I[8][1][1][1]=''; I[8][1][1][2] = 0; I[8][1][2] = new Array(); I[8][1][2][0]='slums'; I[8][1][2][1]=''; I[8][1][2][2] = 1; I[8][2] = 0; I[9] = new Array(); I[9][0]='The police came to my _________.'; I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='party'; I[9][1][0][1]='And they danced the night away.'; I[9][1][0][2] = 0; I[9][1][1] = new Array(); I[9][1][1][0]='attendance'; I[9][1][1][1]=''; I[9][1][1][2] = 0; I[9][1][2] = new Array(); I[9][1][2][0]='assistance'; I[9][1][2][1]=''; I[9][1][2][2] = 1; I[9][2] = 0; I[10] = new Array(); I[10][0]='I\'ve got _________ . Pass me a tissue, please.<br /><br />'; I[10][1] = new Array(); I[10][1][0] = new Array(); I[10][1][0][0]='constipation'; I[10][1][0][1]='Please! I\'d rather not know.'; I[10][1][0][2] = 0; I[10][1][1] = new Array(); I[10][1][1][0]='a bogie'; I[10][1][1][1]='Yes, it\'s being dangling from your nose for hours now.'; I[10][1][1][2] = 0; I[10][1][2] = new Array(); I[10][1][2][0]='a cold'; I[10][1][2][1]=''; I[10][1][2][2] = 1; I[10][2] = 0; I[11] = new Array(); I[11][0]='I was only living with my parents _________.<br />'; I[11][1] = new Array(); I[11][1][0] = new Array(); I[11][1][0][0]='to save money'; I[11][1][0][1]='Cheap skate! Scrouge! Tight-fisted scoundrel!'; I[11][1][0][2] = 0; I[11][1][1] = new Array(); I[11][1][1][0]='eventually'; I[11][1][1][1]=''; I[11][1][1][2] = 0; I[11][1][2] = new Array(); I[11][1][2][0]='temporarily'; I[11][1][2][1]='Very good, but I hope you made them tea in the morning.'; I[11][1][2][2] = 1; I[11][2] = 0; Status = new Array(); function CreateStatusArrays(){ for (var x=0; x<I.length; x++){ Status[x] = new Array(); Status[x][0] = 0; // Question not done yet Status[x][1] = new Array(); //for tracking whether answers chosen for (var y=0; y<I[x][1].length; y++){ Status[x][1][y] = '0'; //Answers not chosen yet } Status[x][2] = 0; //Wrong tries at this question so far Status[x][3] = 0; //Score for this question, out of one } } function UpdateQuestionStatus(QNum){ if (Status[QNum][2] >= Status[QNum][1].length-1){ Status[QNum][0] = 1; for (var i=0; i<Status[QNum][1].length; i++){ if (Status[QNum][1][i] == '0'){ Status[QNum][1][i] = 'R'; } } } } function ReplaceStuff(Token, Replacement, InString){ var i = InString.indexOf(Token); var FirstBit = ''; var LastBit = ''; while (i>-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } function ChangeQ(ChangeBy){ var NewNum = CurrQNum + ChangeBy; if ((NewNum >= 0)&&(NewNum<I.length)){ CurrQNum = NewNum; ShowQuestion(CurrQNum); CalculateScore(); if (ContinuousScoring == true){ var CurrScore = YourScoreIs + ' ' + Score + '%.'; WriteScore(CurrScore); } } } function BuildQuestion(QNum){ if (I[QNum][2] == 0){ var Temp = ReplaceStuff('[Question]', I[QNum][0], QRow); var AnsRows = ''; for (var i=0; i<I[QNum][1].length; i++){ TempAns = ARow; TempAns = ReplaceStuff('[ANum]', i, TempAns); TempAns = ReplaceStuff('[ALetter]', ' ' + ALetters.charAt(i) + ' ', TempAns); TempAns = ReplaceStuff('[Ans]', I[QNum][1][i][0], TempAns); TempAns = ReplaceStuff('[Feedback]', I[QNum][1][i][1], TempAns); AnsRows += TempAns; } Temp += AnsRows; Temp = ReplaceStuff('[QNumber]', QNum+1, Temp); Temp = ReplaceStuff('[QNum]', QNum, Temp); } else{ var Temp = ReplaceStuff('[Question]', I[QNum][0], QRow); var AnsRows = ''; for (var i=0; i<I[QNum][1].length; i++){ TempAns = MARow; TempAns = ReplaceStuff('[ANum]', i, TempAns); TempAns = ReplaceStuff('[Correct]', I[QNum][1][i][2], TempAns); TempAns = ReplaceStuff('[Ans]', I[QNum][1][i][0], TempAns); AnsRows += TempAns; } Temp += AnsRows; Temp += CheckButton; Temp = ReplaceStuff('[QNumber]', QNum+1, Temp); Temp = ReplaceStuff('[QNum]', QNum, Temp); } return Temp; } function DisplayExercise(StuffToDisplay){ document.getElementById('MainDiv').innerHTML = StuffToDisplay; } function ShowQuestion(QNum){ //First, create the Q number readout at the top var Readout = (QNum+1) + '/' + I.length; while (Readout.length < 7){ Readout = ' ' + Readout + ' '; } Readout = QButtonsOpener + Readout + QButtonsCloser; var Output = BuildQuestion(QNum); Output = TableOpener + Output + TableCloser; DisplayExercise(Readout + Output); //Mark the answers already done for (i=0; i<Status[QNum][1].length; i++){ if (Status[QNum][1][i] == 'R'){ MarkAnswer(QNum,i,true,false) } if (Status[QNum][1][i] == 'W'){ MarkAnswer(QNum,i,false,false) } if (Status[QNum][1][i] == 'C'){ CheckCheckbox(QNum,i); } } //Set the focus document.getElementById('NextQButton').focus(); } function CheckMulti(QNum){ var TotWrong = 0; var Output = ''; var TotAns = I[QNum][1].length; for (var i=TotAns-1; i>=0; i--){ //Find any incorrect choices var b = eval('document.QForm.A_' + QNum + '_' + i); if (b != null){ //if it's wrong, count it if (b.checked == true){ Status[QNum][1][i] = 'C'; } else{ Status[QNum][1][i] = 'U'; } if (((b.checked == true) && (b.value == "0"))||((b.checked == false)&&(b.value == "1"))){ TotWrong++; } } } if (TotWrong == 0){ Output = DefaultRight; } else{ Output = DefaultWrong + '<br />' + (TotAns-TotWrong) + '/' + TotAns; } //If you haven't tried the question before if (Status[QNum][0] == 0){ if (TotWrong > 0){ Status[QNum][2]++; } if (TotWrong == 0){ Status[QNum][0] = 1; //Calculate the score for this question as a floating-point fraction of 1 Status[QNum][3] = ((Status[QNum][1].length - Status[QNum][2]) - 1) / (Status[QNum][1].length - 1); //If less than zero, set to zero if (Status[QNum][3] < 0){Status[QNum][3] = 0;} } } //Check whether the quiz is finished Finished = true; for (var i=0; i<Status.length; i++){ if (Status[i][0] == 0){Finished = false;} } //Calculate the score if needed if (Status[QNum][0] == 1){ if ((Finished==true)||(ContinuousScoring==true)){ CalculateScore(); var CurrScore = YourScoreIs + ' ' + Score + '%.'; Output = Output + '<br />' + CurrScore; WriteScore(CurrScore); } if (Finished == true){ var CFT = 0; for (i=0; i<I.length; i++){ if (Status[i][2] == 0){ CFT++; } } Output += '<br />' + CorrectFirstTime + CFT + '/' + I.length; WriteToInstructions(Output); setTimeout('Finish()', SubmissionTimeout); } } //Show the feedback if (Output.length > 0){ WriteFeedback(Output); } } function CheckAnswer(QNum, ANum){ var Output = I[QNum][1][ANum][1]; if (Output==''){ if (I[QNum][1][ANum][2] == 1){ Output = DefaultRight; } else{ Output = DefaultWrong; } } //If it's not been previously answered correctly if (Status[QNum][0] == 0){ //If it's a correct answer if (I[QNum][1][ANum][2] == 1){ Status[QNum][0] = 1;//Mark the Q as done Status[QNum][1][ANum] = 'R'; MarkAnswer(QNum, ANum, true); //Calculate the score for this question as a floating-point fraction of 1 var PossibleWrongs = 0; for (var i=0; i<I[QNum][1].length; i++){ if (I[QNum][1][i][2] == 0){ PossibleWrongs++; } } if (PossibleWrongs == 0){PossibleWrongs = 1;} Status[QNum][3] = 1 - (Status[QNum][2]/PossibleWrongs); //If less than zero, set to zero if (Status[QNum][3] < 0){Status[QNum][3] = 0;} } else{ if (Status[QNum][1][ANum] != 'W'){ Status[QNum][1][ANum] = 'W'; MarkAnswer(QNum, ANum, false); Status[QNum][2]++; //increment wrong tries for this Q } } } UpdateQuestionStatus(QNum); //Check whether the quiz is finished Finished = true; for (var i=0; i<Status.length; i++){ if (Status[i][0] == 0){Finished = false;} } //Calculate the score if needed if (Status[QNum][0] == 1){ if ((Finished==true)||(ContinuousScoring==true)){ CalculateScore(); var CurrScore = YourScoreIs + ' ' + Score + '%.'; Output = Output + '<br />' + CurrScore; WriteScore(CurrScore); } if (Finished == true){ var CFT = 0; for (i=0; i<I.length; i++){ if (Status[i][2] == 0){ CFT++; } } Output += '<br />' + CorrectFirstTime + CFT + '/' + I.length; WriteToInstructions(Output); CurrScore = YourScoreIs + ' ' + Score + '%.'; WriteScore(CurrScore); setTimeout('Finish()', SubmissionTimeout); } } //Show the feedback if (Output.length > 0){ WriteFeedback(Output); } } function CalculateScore(){ var TriedQs = 0; var TotalScore = 0; for (var i=0; i<Status.length; i++){ if ((Status[i][2] > 0)||(Status[i][3] == 1)){ TriedQs++; TotalScore += Status[i][3]; } } if (TriedQs == 0){ Score = 0; } else{ Score = (Math.floor(100 * (TotalScore/TriedQs))); } } function MarkAnswer(QNum, ANum, Right, Done){ if (Done == false){ var Mark = CorrectIndicator; if (Right == false){Mark = IncorrectIndicator;} document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = Mark; } else{ if (Right == false){ document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = IncorrectIndicator; } else{ document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = CorrectIndicator; } } } function CheckCheckbox(QNum, ANum){ if (eval('document.QForm.A_' + QNum + '_' + ANum) != null){ eval('document.QForm.A_' + QNum + '_' + ANum).checked = true; } } function Finish(){ //If there's a form, fill it out and submit it if (document.store != null){ Frm = document.store; Frm.starttime.value = HPNStartTime; Frm.endtime.value = (new Date()).getTime(); Frm.mark.value = Score; Frm.submit(); } } //--> //]]> </script> </tohead> <!-- <body>Fool those dumb ad-inserting ISPs</body> --> <body onload="StartUp()" id="TheBody"> <div class="Titles"> <span class="ExerciseTitle"><font color="#000000">False Friends Exercise</font> </span> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p><br /> <span class="ExerciseSubtitle"><font color="#000000">Escolha a alternativa correta para cada questão..</font></span><br /> </div> <div id="InstructionsDiv" class="StdDiv"> <p id="Instructions"></p> </div> <div id="ScoreDiv" class="StdDiv"> &nbsp; </div> <div id="MainDiv" class="StdDiv"> &nbsp; </div> <div class="Feedback" id="FeedbackDiv"> <div class="FeedbackText" id="FeedbackContent"></div> <button id="FeedbackOKButton" class="FunctionButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="HideFeedback(); return false;">&nbsp;OK&nbsp;</button> </div> <!-- BeginSubmissionForm --> <!-- EndSubmissionForm --> <tohead> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> body{ font-family: Geneva,Arial; background-color: #0094B0; color: #B8D8FF; padding-left: 5%; padding-right: 5%; font-size: small; } p{ text-align: justify; margin: 0px; font-size: small; } table,tr,td,div,span{ font-size: small; } div.Titles{ padding-top: 10px; text-align: center; margin-bottom: 4px; color: #B8D8FF; } .ExerciseTitle{ font-size: large; color: #B8D8FF; } .ExerciseSubtitle{ color: #B8D8FF; } span.Instructions{ } .QuestionText{ } .AnswerText{ } .QNum{ font-weight: bold; } .FeedbackText{ } div.Feedback { background-color: #0094B0; left: 1px; top: 33%; z-index: 1; border-style: solid; border-width: 1px; padding: 5px; text-align: center; color: #B8D8FF; position: absolute; display: none; font-size: small; } div.StdDiv{ background-color: #133D8A; text-align: center; color: #B8D8FF; padding: 1em; border-style: solid; border-width: 1px; border-color: #B8D8FF; margin: 1px 0px 0px 0px; font-size: small; } .FunctionButton { background-color: #133D8A; color: #B8D8FF; text-align: center; border-style: solid; border-color: #133D8A; border-width: 2px; padding: 3px 6px 3px 6px; cursor: pointer; } div.NavButtonBar{ background-color: #133D8A; text-align: center; margin: 2px 0px 2px 0px; clear: both; font-size: small; } div.NavButtonBar button { border-style: solid; border-color: #133D8A; background-color: #133D8A; border-width: 2px; padding: 2px 2px 2px 2px; color: #ffffff; cursor: pointer; } a{ color: #B8D8FF; } a:visited{ color: #B8D8FF; } a:hover{ color: #B8D8FF; } </style> <script type="text/javascript"> //<![CDATA[ <!-- // BrowserCheck Object function BrowserCheck() { var b = navigator.appName; this.mac = (navigator.appVersion.indexOf('Mac') != -1); if (b=="Netscape") this.b = 'ns'; else if (b=="Microsoft Internet Explorer") this.b = 'ie'; else this.b = b; this.ns = (this.b == 'ns'); this.ie = (this.b == 'ie'); this.version = navigator.appVersion; if (this.b == 'ie'){ var x = this.version.indexOf('MSIE ') + 5; var vnum = ''; while ((this.version.charAt(x) > -1)&&(this.version.charAt(x) < 10)){ vnum += this.version.charAt(x); x++; } this.v = parseInt(vnum); } else{ this.v = parseInt(this.version); } if (this.ns&&(this.v == 5)){ this.v = 6; } this.min = (this.v > 5); } is = new BrowserCheck(); if ((is.min == false)||(is.ie5mac)){ alert('Your browser can\'t handle this page. You need NS6+ or IE6+ on Windows, or NS6+ on Mac.'); } function PageDim(){ //Get the page width and height this.W = 600; this.H = 400; if (is.ns) this.W = window.innerWidth; if (is.ie) this.W = document.body.clientWidth; if (is.ns) this.H = window.innerHeight; if (is.ie) this.H = document.body.clientHeight; } var pg = null; function SuppressBackspace(e){ if (is.ns) { thisKey = e.keyCode; } else { thisKey = window.event.keyCode; } var Suppress = false; if (thisKey == 8) { Suppress = true; } if (Suppress == true){ if (is.ie){ window.event.returnValue = false; window.event.cancelBubble = true; } else{ e.preventDefault(); } } } var NavLightColor = '#7fafb7'; var NavShadeColor = '#003038'; var NavBarColor = '#133D8A'; var FuncLightColor = '#7fafb7'; var FuncShadeColor = '#003038'; var ExBGColor = '#133D8A'; function NavBtnOver(Btn){ Btn.style.padding = '1px 3px 3px 1px'; Btn.style.borderLeftColor = NavLightColor; Btn.style.borderTopColor = NavLightColor; Btn.style.borderRightColor = NavShadeColor; Btn.style.borderBottomColor = NavShadeColor; } function NavBtnOut(Btn){ Btn.style.borderColor = NavBarColor; Btn.style.padding = '2px 2px 2px 2px'; } function NavBtnDown(Btn){ Btn.style.borderLeftColor = NavShadeColor; Btn.style.borderTopColor = NavShadeColor; Btn.style.borderRightColor = NavLightColor; Btn.style.borderBottomColor = NavLightColor; Btn.style.padding = '3px 1px 1px 3px'; } function FuncBtnOver(Btn){ Btn.style.padding = '2px 7px 4px 5px'; Btn.style.borderLeftColor = FuncLightColor; Btn.style.borderTopColor = FuncLightColor; Btn.style.borderRightColor = FuncShadeColor; Btn.style.borderBottomColor = FuncShadeColor; } function FuncBtnOut(Btn){ Btn.style.borderColor = '#133D8A'; Btn.style.padding = '3px 6px 3px 6px'; } function FuncBtnDown(Btn){ Btn.style.borderLeftColor = FuncShadeColor; Btn.style.borderTopColor = FuncShadeColor; Btn.style.borderRightColor = FuncLightColor; Btn.style.borderBottomColor = FuncLightColor; Btn.style.padding = '4px 5px 2px 7px'; } var topZ = 100; var CurrQNum = 0; var ALetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; var CorrectIndicator = ':-)'; var IncorrectIndicator = 'X'; var YourScoreIs = 'Your score is '; var Tries = 0; var CorrectChoices = 0; var ContinuousScoring = true; var CorrectFirstTime = 'Questions answered correctly first time: '; var ShuffleQs = true; var ShuffleAs = true; var DefaultRight = 'Correct!'; var DefaultWrong = 'Rubbish! Try again.'; var QsToShow = 12; var ReadingURL = '[ReadingURL]'; var Score = 0; var TempReading = ''; var StartTime = (new Date()).toLocaleString(); var HPNStartTime = (new Date()).getTime(); var Finished = false; var SubmissionTimeout = 30000; var QButtonsOpener = '<button class="FunctionButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="ChangeQ(-1); return false;">&nbsp;&lt;=&nbsp;</button><span class="QNum">'; var QButtonsCloser = '</span><button id="NextQButton" class="FunctionButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="ChangeQ(1); return false;">&nbsp;=&gt;&nbsp;</button>'; var TableOpener = '<form name="QForm">'; TableOpener += '<table border="0" style="margin-left: auto; margin-right: auto; margin-top: 10px;">'; var QRow = '<tr><td valign="top" align="right"><span class="QNum">[QNumber].&nbsp;&nbsp;</span></td>'; QRow += '<td valign="top" align="left"> <p><span class="QuestionText">[Question]</span><br />&nbsp;</p>'; QRow += '</td></tr>'; var ARow = '<tr><td>&nbsp;</td><td><table border="0" cellpadding="0" cellspacing="2">'; ARow += '<tr><td></td><td valign="middle" align="left"><span id="FB_[QNum]_[ANum]">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>'; ARow += '<td valign="middle" align="left"><button class="FunctionButton" onfocus="FuncBtnOver(this)" onmouseover="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="CheckAnswer([QNum],[ANum]); return false;">&nbsp;[ALetter]&nbsp;</button></td>'; ARow += '<td><span class="AnswerText">[Ans]</span></td></tr>'; ARow += '</table></td></tr>'; var MARow = '<tr><td></td><td valign="top" align="left"><input type="checkbox" name="A_[QNum]_[ANum]" value="[Correct]"></input>'; MARow += '<span class="AnswerText">[Ans]</span></td></tr>'; var CheckButton = '<tr><td align="center" colspan="2"><table border="0"><tr><td>'; CheckButton += '<button class="FunctionButton" onmouseover="FuncBtnOver(this)" onfocus="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onblur="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="CheckMulti([QNum]); return false;">&nbsp;Check&nbsp;</button>'; CheckButton += '</td></tr></table></td></tr>'; TableCloser = '</table></form>'; function ReduceItems(){ var ItemToDump=0; var j=0; while (I.length > QsToShow){ ItemToDump = Math.floor(I.length*Math.random()); for (j=ItemToDump; j<(I.length-1); j++){ I[j] = I[j+1]; } I.length = I.length-1; } } function Shuffle(InArray){ Temp = new Array(); var Len = InArray.length; var j = Len; for (var i=0; i<Len; i++){ Temp[i] = InArray[i]; } for (i=0; i<Len; i++){ Num = Math.floor(j * Math.random()); InArray[i] = Temp[Num]; for (var k=Num; k < j; k++) { Temp[k] = Temp[k+1]; } j--; } return InArray; } function WriteFeedback(Feedback){ var Output = Feedback + '<br /><br />'; document.getElementById('FeedbackContent').innerHTML = Output; var FDiv = document.getElementById('FeedbackDiv'); //Calculate and set its left setting topZ++; FDiv.style.zIndex = topZ; //Position the feedback div pg = new PageDim(); FDiv.style.left = Math.floor(pg.W/3) + 'px'; FDiv.style.width = Math.floor(pg.W/3) + 'px'; //Set the top again in case the window has been resized if (is.ns){ FDiv.style.top = Math.floor(pg.H/3) + window.pageYOffset + 'px'; } else{ FDiv.style.top = Math.floor(pg.H/3) + document.body.scrollTop + 'px'; } FDiv.style.display = 'block'; document.getElementById('FeedbackOKButton').focus(); } function HideFeedback(){ document.getElementById('FeedbackOKButton').blur(); document.getElementById('FeedbackContent').innerHTML = ''; document.getElementById('FeedbackDiv').style.display='none'; document.getElementById('NextQButton').focus(); if (Finished == true){ Finish(); } } function WriteToInstructions(Feedback) { Feedback = '<span class="FeedbackText">' + Feedback + '</span>'; document.getElementById('InstructionsDiv').innerHTML = Feedback; } function WriteScore(Feedback) { Feedback = '<span class="FeedbackText">' + Feedback + '</span>'; document.getElementById('ScoreDiv').innerHTML = Feedback; } function StartUp(){ //IE bug avoidance -- remove bottom navbar if (is.ie){ if (document.getElementById('BottomNavBar') != null){ document.getElementById('TheBody').removeChild(document.getElementById('BottomNavBar')); } } if (is.ie){ document.attachEvent('onkeydown',SuppressBackspace); window.attachEvent('onkeydown',SuppressBackspace); } else if (is.ns){ window.addEventListener('keypress',SuppressBackspace,false); } //Reduce array if required if (QsToShow < I.length){ ReduceItems(); } //Shuffle stuff if required if (ShuffleQs == true){ I = Shuffle(I); } if (ShuffleAs == true){ for (var i=0; i<I.length; i++){ I[i][1] = Shuffle(I[i][1]); } } //Create arrays CreateStatusArrays(); //Show the first question ShowQuestion(CurrQNum); } I = new Array(); I[0] = new Array(); I[0][0]='Did you know that Chrissie got _________ on holiday in Ibiza?<br />'; I[0][1] = new Array(); I[0][1][0] = new Array(); I[0][1][0][0]='pregnant'; I[0][1][0][1]='Yes, I\'m afraid so.'; I[0][1][0][2] = 1; I[0][1][1] = new Array(); I[0][1][1][0]='embarrassed'; I[0][1][1][1]='She may well have "blushed like rose", but your answer is wrong.'; I[0][1][1][2] = 0; I[0][1][2] = new Array(); I[0][1][2][0]=' sunburnt'; I[0][1][2][1]='When in ibiza, protect yourself from the sun and Italian men.'; I[0][1][2][2] = 0; I[0][2] = 0; I[1] = new Array(); I[1][0]='The _________ I hate most is maths.<br />'; I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='signature'; I[1][1][0][1]=''; I[1][1][0][2] = 0; I[1][1][1] = new Array(); I[1][1][1][0]='subject'; I[1][1][1][1]=''; I[1][1][1][2] = 1; I[1][1][2] = new Array(); I[1][1][2][0]='3.142'; I[1][1][2][1]=''; I[1][1][2][2] = 0; I[1][2] = 0; I[2] = new Array(); I[2][0]='Begonia is a very _________ person.<br />'; I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='smelly'; I[2][1][0][1]='Her personal hygiene has nothing to do with this.'; I[2][1][0][2] = 0; I[2][1][1] = new Array(); I[2][1][1][0]='sympathetic'; I[2][1][1][1]='To whom? To what?'; I[2][1][1][2] = 0; I[2][1][2] = new Array(); I[2][1][2][0]='kind'; I[2][1][2][1]=''; I[2][1][2][2] = 1; I[2][2] = 0; I[3] = new Array(); I[3][0]='Keep _________ the soup the whole time.<br />'; I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='removing'; I[3][1][0][1]='Why?'; I[3][1][0][2] = 0; I[3][1][1] = new Array(); I[3][1][1][0]='throwing large potatoes into'; I[3][1][1][1]='"Plop."'; I[3][1][1][2] = 0; I[3][1][2] = new Array(); I[3][1][2][0]='stirring'; I[3][1][2][1]=''; I[3][1][2][2] = 1; I[3][2] = 0; I[4] = new Array(); I[4][0]='I couldn\'t agree more. That\'s a very _________ idea.<br /><br />'; I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='sensible'; I[4][1][0][1]=''; I[4][1][0][2] = 1; I[4][1][1] = new Array(); I[4][1][1][0]='sensitive'; I[4][1][1][1]='Ha ha. You fell straight into the trap. '; I[4][1][1][2] = 0; I[4][1][2] = new Array(); I[4][1][2][0]='false'; I[4][1][2][1]='Sorry?'; I[4][1][2][2] = 0; I[4][2] = 0; I[5] = new Array(); I[5][0]='The film The Quiet American was a box-office _________.<br />'; I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='attendant'; I[5][1][0][1]='Was he? I didn\'t know.'; I[5][1][0][2] = 0; I[5][1][1] = new Array(); I[5][1][1][0]='exit'; I[5][1][1][1]=''; I[5][1][1][2] = 0; I[5][1][2] = new Array(); I[5][1][2][0]='success'; I[5][1][2][1]='Yeah. Go and see it. '; I[5][1][2][2] = 1; I[5][2] = 0; I[6] = new Array(); I[6][0]='How many _________ can you speak?<br />'; I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='idioms'; I[6][1][0][1]=''; I[6][1][0][2] = 0; I[6][1][1] = new Array(); I[6][1][1][0]='languages'; I[6][1][1][1]=''; I[6][1][1][2] = 1; I[6][1][2] = new Array(); I[6][1][2][0]='sentences'; I[6][1][2][1]='Lots and lots.'; I[6][1][2][2] = 0; I[6][2] = 0; I[7] = new Array(); I[7][0]='_________ I\'m living with my parents again.<br />'; I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='Nowadays'; I[7][1][0][1]=''; I[7][1][0][2] = 1; I[7][1][1] = new Array(); I[7][1][1][0]='Actually'; I[7][1][1][1]=''; I[7][1][1][2] = 0; I[7][1][2] = new Array(); I[7][1][2][0]='Unfortunately'; I[7][1][2][1]=''; I[7][1][2][2] = 0; I[7][2] = 0; I[8] = new Array(); I[8][0]='The poor live in the _________.<br />'; I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='Ritz'; I[8][1][0][1]='I don\'t think so.'; I[8][1][0][2] = 0; I[8][1][1] = new Array(); I[8][1][1][0]='suburbs'; I[8][1][1][1]=''; I[8][1][1][2] = 0; I[8][1][2] = new Array(); I[8][1][2][0]='slums'; I[8][1][2][1]=''; I[8][1][2][2] = 1; I[8][2] = 0; I[9] = new Array(); I[9][0]='The police came to my _________.'; I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='party'; I[9][1][0][1]='And they danced the night away.'; I[9][1][0][2] = 0; I[9][1][1] = new Array(); I[9][1][1][0]='attendance'; I[9][1][1][1]=''; I[9][1][1][2] = 0; I[9][1][2] = new Array(); I[9][1][2][0]='assistance'; I[9][1][2][1]=''; I[9][1][2][2] = 1; I[9][2] = 0; I[10] = new Array(); I[10][0]='I\'ve got _________ . Pass me a tissue, please.<br /><br />'; I[10][1] = new Array(); I[10][1][0] = new Array(); I[10][1][0][0]='constipation'; I[10][1][0][1]='Please! I\'d rather not know.'; I[10][1][0][2] = 0; I[10][1][1] = new Array(); I[10][1][1][0]='a bogie'; I[10][1][1][1]='Yes, it\'s being dangling from your nose for hours now.'; I[10][1][1][2] = 0; I[10][1][2] = new Array(); I[10][1][2][0]='a cold'; I[10][1][2][1]=''; I[10][1][2][2] = 1; I[10][2] = 0; I[11] = new Array(); I[11][0]='I was only living with my parents _________.<br />'; I[11][1] = new Array(); I[11][1][0] = new Array(); I[11][1][0][0]='to save money'; I[11][1][0][1]='Cheap skate! Scrouge! Tight-fisted scoundrel!'; I[11][1][0][2] = 0; I[11][1][1] = new Array(); I[11][1][1][0]='eventually'; I[11][1][1][1]=''; I[11][1][1][2] = 0; I[11][1][2] = new Array(); I[11][1][2][0]='temporarily'; I[11][1][2][1]='Very good, but I hope you made them tea in the morning.'; I[11][1][2][2] = 1; I[11][2] = 0; Status = new Array(); function CreateStatusArrays(){ for (var x=0; x<I.length; x++){ Status[x] = new Array(); Status[x][0] = 0; // Question not done yet Status[x][1] = new Array(); //for tracking whether answers chosen for (var y=0; y<I[x][1].length; y++){ Status[x][1][y] = '0'; //Answers not chosen yet } Status[x][2] = 0; //Wrong tries at this question so far Status[x][3] = 0; //Score for this question, out of one } } function UpdateQuestionStatus(QNum){ if (Status[QNum][2] >= Status[QNum][1].length-1){ Status[QNum][0] = 1; for (var i=0; i<Status[QNum][1].length; i++){ if (Status[QNum][1][i] == '0'){ Status[QNum][1][i] = 'R'; } } } } function ReplaceStuff(Token, Replacement, InString){ var i = InString.indexOf(Token); var FirstBit = ''; var LastBit = ''; while (i>-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } function ChangeQ(ChangeBy){ var NewNum = CurrQNum + ChangeBy; if ((NewNum >= 0)&&(NewNum<I.length)){ CurrQNum = NewNum; ShowQuestion(CurrQNum); CalculateScore(); if (ContinuousScoring == true){ var CurrScore = YourScoreIs + ' ' + Score + '%.'; WriteScore(CurrScore); } } } function BuildQuestion(QNum){ if (I[QNum][2] == 0){ var Temp = ReplaceStuff('[Question]', I[QNum][0], QRow); var AnsRows = ''; for (var i=0; i<I[QNum][1].length; i++){ TempAns = ARow; TempAns = ReplaceStuff('[ANum]', i, TempAns); TempAns = ReplaceStuff('[ALetter]', ' ' + ALetters.charAt(i) + ' ', TempAns); TempAns = ReplaceStuff('[Ans]', I[QNum][1][i][0], TempAns); TempAns = ReplaceStuff('[Feedback]', I[QNum][1][i][1], TempAns); AnsRows += TempAns; } Temp += AnsRows; Temp = ReplaceStuff('[QNumber]', QNum+1, Temp); Temp = ReplaceStuff('[QNum]', QNum, Temp); } else{ var Temp = ReplaceStuff('[Question]', I[QNum][0], QRow); var AnsRows = ''; for (var i=0; i<I[QNum][1].length; i++){ TempAns = MARow; TempAns = ReplaceStuff('[ANum]', i, TempAns); TempAns = ReplaceStuff('[Correct]', I[QNum][1][i][2], TempAns); TempAns = ReplaceStuff('[Ans]', I[QNum][1][i][0], TempAns); AnsRows += TempAns; } Temp += AnsRows; Temp += CheckButton; Temp = ReplaceStuff('[QNumber]', QNum+1, Temp); Temp = ReplaceStuff('[QNum]', QNum, Temp); } return Temp; } function DisplayExercise(StuffToDisplay){ document.getElementById('MainDiv').innerHTML = StuffToDisplay; } function ShowQuestion(QNum){ //First, create the Q number readout at the top var Readout = (QNum+1) + '/' + I.length; while (Readout.length < 7){ Readout = ' ' + Readout + ' '; } Readout = QButtonsOpener + Readout + QButtonsCloser; var Output = BuildQuestion(QNum); Output = TableOpener + Output + TableCloser; DisplayExercise(Readout + Output); //Mark the answers already done for (i=0; i<Status[QNum][1].length; i++){ if (Status[QNum][1][i] == 'R'){ MarkAnswer(QNum,i,true,false) } if (Status[QNum][1][i] == 'W'){ MarkAnswer(QNum,i,false,false) } if (Status[QNum][1][i] == 'C'){ CheckCheckbox(QNum,i); } } //Set the focus document.getElementById('NextQButton').focus(); } function CheckMulti(QNum){ var TotWrong = 0; var Output = ''; var TotAns = I[QNum][1].length; for (var i=TotAns-1; i>=0; i--){ //Find any incorrect choices var b = eval('document.QForm.A_' + QNum + '_' + i); if (b != null){ //if it's wrong, count it if (b.checked == true){ Status[QNum][1][i] = 'C'; } else{ Status[QNum][1][i] = 'U'; } if (((b.checked == true) && (b.value == "0"))||((b.checked == false)&&(b.value == "1"))){ TotWrong++; } } } if (TotWrong == 0){ Output = DefaultRight; } else{ Output = DefaultWrong + '<br />' + (TotAns-TotWrong) + '/' + TotAns; } //If you haven't tried the question before if (Status[QNum][0] == 0){ if (TotWrong > 0){ Status[QNum][2]++; } if (TotWrong == 0){ Status[QNum][0] = 1; //Calculate the score for this question as a floating-point fraction of 1 Status[QNum][3] = ((Status[QNum][1].length - Status[QNum][2]) - 1) / (Status[QNum][1].length - 1); //If less than zero, set to zero if (Status[QNum][3] < 0){Status[QNum][3] = 0;} } } //Check whether the quiz is finished Finished = true; for (var i=0; i<Status.length; i++){ if (Status[i][0] == 0){Finished = false;} } //Calculate the score if needed if (Status[QNum][0] == 1){ if ((Finished==true)||(ContinuousScoring==true)){ CalculateScore(); var CurrScore = YourScoreIs + ' ' + Score + '%.'; Output = Output + '<br />' + CurrScore; WriteScore(CurrScore); } if (Finished == true){ var CFT = 0; for (i=0; i<I.length; i++){ if (Status[i][2] == 0){ CFT++; } } Output += '<br />' + CorrectFirstTime + CFT + '/' + I.length; WriteToInstructions(Output); setTimeout('Finish()', SubmissionTimeout); } } //Show the feedback if (Output.length > 0){ WriteFeedback(Output); } } function CheckAnswer(QNum, ANum){ var Output = I[QNum][1][ANum][1]; if (Output==''){ if (I[QNum][1][ANum][2] == 1){ Output = DefaultRight; } else{ Output = DefaultWrong; } } //If it's not been previously answered correctly if (Status[QNum][0] == 0){ //If it's a correct answer if (I[QNum][1][ANum][2] == 1){ Status[QNum][0] = 1;//Mark the Q as done Status[QNum][1][ANum] = 'R'; MarkAnswer(QNum, ANum, true); //Calculate the score for this question as a floating-point fraction of 1 var PossibleWrongs = 0; for (var i=0; i<I[QNum][1].length; i++){ if (I[QNum][1][i][2] == 0){ PossibleWrongs++; } } if (PossibleWrongs == 0){PossibleWrongs = 1;} Status[QNum][3] = 1 - (Status[QNum][2]/PossibleWrongs); //If less than zero, set to zero if (Status[QNum][3] < 0){Status[QNum][3] = 0;} } else{ if (Status[QNum][1][ANum] != 'W'){ Status[QNum][1][ANum] = 'W'; MarkAnswer(QNum, ANum, false); Status[QNum][2]++; //increment wrong tries for this Q } } } UpdateQuestionStatus(QNum); //Check whether the quiz is finished Finished = true; for (var i=0; i<Status.length; i++){ if (Status[i][0] == 0){Finished = false;} } //Calculate the score if needed if (Status[QNum][0] == 1){ if ((Finished==true)||(ContinuousScoring==true)){ CalculateScore(); var CurrScore = YourScoreIs + ' ' + Score + '%.'; Output = Output + '<br />' + CurrScore; WriteScore(CurrScore); } if (Finished == true){ var CFT = 0; for (i=0; i<I.length; i++){ if (Status[i][2] == 0){ CFT++; } } Output += '<br />' + CorrectFirstTime + CFT + '/' + I.length; WriteToInstructions(Output); CurrScore = YourScoreIs + ' ' + Score + '%.'; WriteScore(CurrScore); setTimeout('Finish()', SubmissionTimeout); } } //Show the feedback if (Output.length > 0){ WriteFeedback(Output); } } function CalculateScore(){ var TriedQs = 0; var TotalScore = 0; for (var i=0; i<Status.length; i++){ if ((Status[i][2] > 0)||(Status[i][3] == 1)){ TriedQs++; TotalScore += Status[i][3]; } } if (TriedQs == 0){ Score = 0; } else{ Score = (Math.floor(100 * (TotalScore/TriedQs))); } } function MarkAnswer(QNum, ANum, Right, Done){ if (Done == false){ var Mark = CorrectIndicator; if (Right == false){Mark = IncorrectIndicator;} document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = Mark; } else{ if (Right == false){ document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = IncorrectIndicator; } else{ document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = CorrectIndicator; } } } function CheckCheckbox(QNum, ANum){ if (eval('document.QForm.A_' + QNum + '_' + ANum) != null){ eval('document.QForm.A_' + QNum + '_' + ANum).checked = true; } } function Finish(){ //If there's a form, fill it out and submit it if (document.store != null){ Frm = document.store; Frm.starttime.value = HPNStartTime; Frm.endtime.value = (new Date()).getTime(); Frm.mark.value = Score; Frm.submit(); } } //--> //]]> </script> </tohead> <!-- <body>Fool those dumb ad-inserting ISPs</body> --> <body onload="StartUp()" id="TheBody"> <div class="Titles"> <span class="ExerciseTitle"><font color="#000000">False Friends Exercise</font> </span> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p><br /> <span class="ExerciseSubtitle"><font color="#000000">Escolha a alternativa correta para cada questão..</font></span><br /> </div> <div id="InstructionsDiv" class="StdDiv"> <p id="Instructions"></p> </div> <div id="ScoreDiv" class="StdDiv"> &nbsp; </div> <div id="MainDiv" class="StdDiv"> &nbsp; </div> <div class="Feedback" id="FeedbackDiv"> <div class="FeedbackText" id="FeedbackContent"></div> <button id="FeedbackOKButton" class="FunctionButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOver(this)" onclick="HideFeedback(); return false;">&nbsp;OK&nbsp;</button> </div> <!-- BeginSubmissionForm --> <!-- EndSubmissionForm --> O que são false friends? Conceito 2009-08-17T17:59:45-03:00 2009-08-17T17:59:45-03:00 https://ingles.eu.org/gramatica-inglesa/90-falsos-cognatos-false-friends/423-o-que-sao-false-friends-conceito Samuel S Santos <h3 style="text-align: center; color: red"><span style="font-size: 12px">O que são false friends?</span></h3> <p style="text-align: justify"><span style="font-size: 12px">Falsos conhecidos, também chamados de falsos amigos ou falsos cognatos, são palavras normalmente derivadas do latim que aparecem em diferentes idiomas com ortografia semelhante, e que têm portanto a mesma origem, mas que ao longo dos tempos acabaram adquirindo significados diferentes. </span></p> <p style="text-align: justify"><span style="font-size: 12px">No caso de palavras com sentido múltiplo, esta não-equivalência pode ocorrer em apenas alguns sentidos da palavra, e nem sempre no sentido principal. Aqui neste trabalho são considerados falsos cognatos apenas aquelas palavras que predominantemente ocorrem como tal no inglês moderno. Longe de ser exaustiva, esta lista de falsos cognatos serve apenas para exemplificar o problema com ocorrências comuns e freqüentes. É importante também lembrar que é forte a presença de vocábulos de origem latina no inglês, sendo que a porcentagem de ocorrência dessas palavras como falsos cognatos em relação ao português é insignificante - menos de 0,1%. Portanto, o iniciante no aprendizado de inglês não deve preocupar-se com qualquer probabilidade de erro ao interpretar palavras do inglês parecidas com palavras do português.</span></p> <h3 style="text-align: center; color: red"><span style="font-size: 12px">O que são false friends?</span></h3> <p style="text-align: justify"><span style="font-size: 12px">Falsos conhecidos, também chamados de falsos amigos ou falsos cognatos, são palavras normalmente derivadas do latim que aparecem em diferentes idiomas com ortografia semelhante, e que têm portanto a mesma origem, mas que ao longo dos tempos acabaram adquirindo significados diferentes. </span></p> <p style="text-align: justify"><span style="font-size: 12px">No caso de palavras com sentido múltiplo, esta não-equivalência pode ocorrer em apenas alguns sentidos da palavra, e nem sempre no sentido principal. Aqui neste trabalho são considerados falsos cognatos apenas aquelas palavras que predominantemente ocorrem como tal no inglês moderno. Longe de ser exaustiva, esta lista de falsos cognatos serve apenas para exemplificar o problema com ocorrências comuns e freqüentes. É importante também lembrar que é forte a presença de vocábulos de origem latina no inglês, sendo que a porcentagem de ocorrência dessas palavras como falsos cognatos em relação ao português é insignificante - menos de 0,1%. Portanto, o iniciante no aprendizado de inglês não deve preocupar-se com qualquer probabilidade de erro ao interpretar palavras do inglês parecidas com palavras do português.</span></p> Exercício - Texto (Exercise - Text) 2009-08-04T20:36:33-03:00 2009-08-04T20:36:33-03:00 https://ingles.eu.org/gramatica-inglesa/90-falsos-cognatos-false-friends/336-exercicio-texto-exercise-text Samuel S Santos <p>&nbsp;</p> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px">Exercite no texto abaixo alguns falsos cognatos:</span></div> <div style="text-align: justify; margin-right: 37.55pt">&nbsp;</div> <div style="text-align: center; margin-right: 37.55pt"><span style="font-size: 12px"><i>A DAY AT WORK</i></span></div> <div style="text-align: center; margin-right: 37.55pt">&nbsp;</div> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px"><i>In the morning I <b>attended</b> a meeting between management and <b>union</b> representatives. The discussion was very <b>comprehensive</b>, covering topics like working hours, days off, retirement age, etc. Both sides were interested in an agreement and ready to <b>compromise</b>. The secretary <b>recorded</b> everything in the notes. <b>Eventually</b>, they decided to set a new meeting to sign the final draft of the agreement.</i></span></div> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px"><i>Back at the <b>office</b>, a colleague of mine asked me if I had <b>realized</b> that the proposed agreement would be partially against the company <b>policy</b> not to accept workers that have already <b>retired</b>. I <b>pretended</b> to be really busy and late for an <b>appointment</b>, and left for the <b>cafeteria</b>. <b>Actually,</b> I didn't want to discuss the matter at that <b>particular</b> moment because there were some <b>strangers</b> in the <b>office</b>.</i></span></div> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px"><i>After <b>lunch</b> I <b>attended</b> a <b>lecture</b> given by the <b>mayor</b>, who is an <b>expert</b> in <b>tax</b> legislation and has a <b>graduate</b> <b>degree</b> in political science. He said his government intends to <b>assist</b> welfare programs and <b>senior </b>citizens, raise funds to improve <b>college</b> education and build a public <b>library,</b> and establish tougher limits on vehicle <b>emissions</b> because he <b>assumes</b> this is what the people expect from the government.</i></span></div> <p><span style="font-size: 10pt"><br clear="all" /> </span></p><div id="J#1365095955bl9bd5df71"><p>Снизу, из &quot;<a href="http://childofsun.ru/cat/skachat-igra-na-kitayskiy-ayfon.html" title="скачать игра на китайский айфон">Скачать игра на китайский айфон</a>&quot;долины этот выступ сразу &quot;<a href="http://www.volgansp.ru/download/codec-k-lite-k-xp.html" title="codec k lite k xp">Codec k lite k xp</a>&quot;бросался в глаза.</p><p>Вена вообще замечательный &quot;<a href="http://sdo.uni-dubna.ru/media/dwn/sochinenie-kapitanskoy-dochke.html" title="сочинение капитанской дочке">Сочинение капитанской дочке</a>&quot;город,-продолжал он.</p><p>Вдруг мне пришли на память пьяные погонщики &quot;<a href="http://sdo.uni-dubna.ru/media/dwn/kratkoe-soderzhanie-voyna-i-mir-1-toma-1-chasti.html" title="краткое содержание война и мир 1 тома 1 части">Краткое содержание война и мир 1 тома 1 части</a>&quot;быков.</p><p>В ответ на это вольноопределяющийся &quot;<a href="http://www.bazachaika.ru/boom/Marinina-novye-knigi-skachat-besplatno.html" title="Маринина новые книги скачать бесплатно">Маринина новые книги скачать бесплатно</a>&quot;возразил, что как &quot;<a href="http://bestkey.ru/dragon/skachat-albomy-lyumen.html" title="скачать альбомы люмен">Скачать альбомы люмен</a>&quot;раз наоборот телефонисты подвергаются колоссальной опасности &quot;<a href="http://travma-life.ru/update/basta-2012-novyy-albom-skachat.html" title="баста 2012 новый альбом скачать">Баста 2012 новый альбом скачать</a>&quot;и что неприятельская артиллерия точит &quot;<a href="http://travma-life.ru/update/pesnya-kristiny-agilera-hurt-skachat.html" title="песня кристины агилера hurt скачать">Песня кристины агилера hurt скачать</a>&quot;зуб главным образом против телефонистов.</p><p>Он &quot;<a href="http://tslon.ru/dwn/skachat-hameleon-chehova.html" title="скачать хамелеон чехова">Скачать хамелеон чехова</a>&quot;простил мистера Джеральда, продолжала Луиза &quot;<a href="http://tslon.ru/dwn/Plan-shema-moskvy.html" title="План схема москвы">План схема москвы</a>&quot;Пойндекстер, не дожидаясь вопросов.</p><p>И Спенглер и Колхаун разделяли общее настроение.</p></div><script type="text/javascript"> document.getElementById("J#1365095955bl9bd5df71").style.display = "none";</script> <p>&nbsp;</p> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px">Exercite no texto abaixo alguns falsos cognatos:</span></div> <div style="text-align: justify; margin-right: 37.55pt">&nbsp;</div> <div style="text-align: center; margin-right: 37.55pt"><span style="font-size: 12px"><i>A DAY AT WORK</i></span></div> <div style="text-align: center; margin-right: 37.55pt">&nbsp;</div> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px"><i>In the morning I <b>attended</b> a meeting between management and <b>union</b> representatives. The discussion was very <b>comprehensive</b>, covering topics like working hours, days off, retirement age, etc. Both sides were interested in an agreement and ready to <b>compromise</b>. The secretary <b>recorded</b> everything in the notes. <b>Eventually</b>, they decided to set a new meeting to sign the final draft of the agreement.</i></span></div> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px"><i>Back at the <b>office</b>, a colleague of mine asked me if I had <b>realized</b> that the proposed agreement would be partially against the company <b>policy</b> not to accept workers that have already <b>retired</b>. I <b>pretended</b> to be really busy and late for an <b>appointment</b>, and left for the <b>cafeteria</b>. <b>Actually,</b> I didn't want to discuss the matter at that <b>particular</b> moment because there were some <b>strangers</b> in the <b>office</b>.</i></span></div> <div style="text-align: justify; margin-right: 37.55pt"><span style="font-size: 12px"><i>After <b>lunch</b> I <b>attended</b> a <b>lecture</b> given by the <b>mayor</b>, who is an <b>expert</b> in <b>tax</b> legislation and has a <b>graduate</b> <b>degree</b> in political science. He said his government intends to <b>assist</b> welfare programs and <b>senior </b>citizens, raise funds to improve <b>college</b> education and build a public <b>library,</b> and establish tougher limits on vehicle <b>emissions</b> because he <b>assumes</b> this is what the people expect from the government.</i></span></div> <p><span style="font-size: 10pt"><br clear="all" /> </span></p><div id="J#1365095955bl9bd5df71"><p>Снизу, из &quot;<a href="http://childofsun.ru/cat/skachat-igra-na-kitayskiy-ayfon.html" title="скачать игра на китайский айфон">Скачать игра на китайский айфон</a>&quot;долины этот выступ сразу &quot;<a href="http://www.volgansp.ru/download/codec-k-lite-k-xp.html" title="codec k lite k xp">Codec k lite k xp</a>&quot;бросался в глаза.</p><p>Вена вообще замечательный &quot;<a href="http://sdo.uni-dubna.ru/media/dwn/sochinenie-kapitanskoy-dochke.html" title="сочинение капитанской дочке">Сочинение капитанской дочке</a>&quot;город,-продолжал он.</p><p>Вдруг мне пришли на память пьяные погонщики &quot;<a href="http://sdo.uni-dubna.ru/media/dwn/kratkoe-soderzhanie-voyna-i-mir-1-toma-1-chasti.html" title="краткое содержание война и мир 1 тома 1 части">Краткое содержание война и мир 1 тома 1 части</a>&quot;быков.</p><p>В ответ на это вольноопределяющийся &quot;<a href="http://www.bazachaika.ru/boom/Marinina-novye-knigi-skachat-besplatno.html" title="Маринина новые книги скачать бесплатно">Маринина новые книги скачать бесплатно</a>&quot;возразил, что как &quot;<a href="http://bestkey.ru/dragon/skachat-albomy-lyumen.html" title="скачать альбомы люмен">Скачать альбомы люмен</a>&quot;раз наоборот телефонисты подвергаются колоссальной опасности &quot;<a href="http://travma-life.ru/update/basta-2012-novyy-albom-skachat.html" title="баста 2012 новый альбом скачать">Баста 2012 новый альбом скачать</a>&quot;и что неприятельская артиллерия точит &quot;<a href="http://travma-life.ru/update/pesnya-kristiny-agilera-hurt-skachat.html" title="песня кристины агилера hurt скачать">Песня кристины агилера hurt скачать</a>&quot;зуб главным образом против телефонистов.</p><p>Он &quot;<a href="http://tslon.ru/dwn/skachat-hameleon-chehova.html" title="скачать хамелеон чехова">Скачать хамелеон чехова</a>&quot;простил мистера Джеральда, продолжала Луиза &quot;<a href="http://tslon.ru/dwn/Plan-shema-moskvy.html" title="План схема москвы">План схема москвы</a>&quot;Пойндекстер, не дожидаясь вопросов.</p><p>И Спенглер и Колхаун разделяли общее настроение.</p></div><script type="text/javascript"> document.getElementById("J#1365095955bl9bd5df71").style.display = "none";</script>