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/87-conditional-sentences-condicionais 2024-05-02T04:25:19-03:00 Inglês Curso Joomla! - Open Source Content Management - Version 3.10.11 Palavras que podem substituir IF nos "conditionals" 2010-04-13T00:21:34-03:00 2010-04-13T00:21:34-03:00 https://ingles.eu.org/gramatica-inglesa/87-conditional-sentences-condicionais/1354-palavras-que-podem-substituir-if-nos-qconditionalsq Samuel S Santos <h3 style="text-align: center; color: red"><span style="font-size: 12px">Palavras que podem ser usadas no lugar do IF nas frases condicionais</span></h3> <p style="text-align: justify">As frases condicinais são marcadas pela presença do IF (se). Mas existem outras palavras que podem ser usadas ao invés de IF nas orações condicionais. Conheça-as agora:<br /> <br /> UNLESS = IF NOT (a não ser que)<br /> <strong>Exemplo:<br /> </strong><span style="color: #3366ff">I&acute;ll go home soon if the film doesn&acute;t start.</span> <span style="color: #3366ff">= I&acute;ll go home soon unless the film starts.</span> (Vou para casa logo se o filme não começar. = Vou para casa logo a não ser que o filme comece.)<br /> <br /> PROVIDED (THAT), ON CONDITION (THAT), AS LONG AS, SO LONG AS (contanto que)<br /> <strong>Exemplo:</strong><br /> <span style="color: #3366ff">Provided that everybody agrees, we&acute;ll have the meeting on Tuesday. </span>(Se todos concordarem, teremos a reunião na terça-feira.)<br /> <br /> (JUST) SUPPOSE, SUPPOSING (THAT), WHAT IF, IMAGINE:<br /> <strong>Exemplo:</strong><br /> <span style="color: #3366ff">Just suppose it didn&acute;t rain for four months: would we have enough water? </span>(Suponha que não chova por quatro meses: teríamos água suficiente?)<br /> <br /> <span style="color: #ff0000">OBS:<br /> </span>O verbo to be na Second Conditional tem sempre a mesma forma: WERE. If I were&hellip;, if you were&hellip;, if she were&hellip;, etc.</p> <p>&nbsp;</p> <h3 style="text-align: center; color: red"><span style="font-size: 12px">Palavras que podem ser usadas no lugar do IF nas frases condicionais</span></h3> <p style="text-align: justify">As frases condicinais são marcadas pela presença do IF (se). Mas existem outras palavras que podem ser usadas ao invés de IF nas orações condicionais. Conheça-as agora:<br /> <br /> UNLESS = IF NOT (a não ser que)<br /> <strong>Exemplo:<br /> </strong><span style="color: #3366ff">I&acute;ll go home soon if the film doesn&acute;t start.</span> <span style="color: #3366ff">= I&acute;ll go home soon unless the film starts.</span> (Vou para casa logo se o filme não começar. = Vou para casa logo a não ser que o filme comece.)<br /> <br /> PROVIDED (THAT), ON CONDITION (THAT), AS LONG AS, SO LONG AS (contanto que)<br /> <strong>Exemplo:</strong><br /> <span style="color: #3366ff">Provided that everybody agrees, we&acute;ll have the meeting on Tuesday. </span>(Se todos concordarem, teremos a reunião na terça-feira.)<br /> <br /> (JUST) SUPPOSE, SUPPOSING (THAT), WHAT IF, IMAGINE:<br /> <strong>Exemplo:</strong><br /> <span style="color: #3366ff">Just suppose it didn&acute;t rain for four months: would we have enough water? </span>(Suponha que não chova por quatro meses: teríamos água suficiente?)<br /> <br /> <span style="color: #ff0000">OBS:<br /> </span>O verbo to be na Second Conditional tem sempre a mesma forma: WERE. If I were&hellip;, if you were&hellip;, if she were&hellip;, etc.</p> <p>&nbsp;</p> Third conditional 2010-04-13T00:04:56-03:00 2010-04-13T00:04:56-03:00 https://ingles.eu.org/gramatica-inglesa/87-conditional-sentences-condicionais/1353-third-conditional Samuel S Santos <h3 style="text-align: center; color: red"><span style="font-size: 12px">&nbsp;Third conditional - sem possibilidade</span></h3> <p style="text-align: center">Terceiro condicional<br /> &nbsp;</p> <p style="text-align: justify">O primeiro e segundo condicionais falam sobre o futuro. No terceiro condicional falamos sobre o passado. Falamos sobre uma condição no passado que não aconteceu. Aí está o porquê de não haver possibilidade&nbsp;de acontecer. O terceiro condicinal também é como um sonho, porém este, não tem possibilidade&nbsp;de se tornar realidade.<br /> <br /> Características marcantes no &quot;third conditional&quot;:<br /> <br /> Oração com if (if-clause): Past Perfect<br /> Oração principal (main clause): WOULD HAVE + PARTICÍPIO PASSADO<br /> <br /> <span style="color: #ff0000">Exemplo:<br /> </span><br /> <span style="color: #3366ff">If we had gotten to the movie earlier, we wouldn&acute;t have missed the beginning of the film.</span> (Se tivéssemos chegado ao cinema antes, não teríamos perdido o começo do filme.)<br /> <br /> O terceiro condicional é usado nas seguintes situações:</p> <p style="text-align: justify">- Que expressa um passado irreal;<br /> - Declara a conexão entre possível ou imaginado eventos no passado. Usado para expressar que o resultado imaginado de uma situação ou evento que não aconteceu.<br /> <br /> <span style="color: #3366ff"><strong>Estrutura:<br /> </strong></span><strong><br /> If + Past Perfect Would + have + particípio passado<br /> Could, might, should + have + particípio passado<br /> <br /> </strong><span style="color: #ff0000">Exemplo:</span><br /> <span style="color: #3366ff">If you had seen the movie, you would have liked it. </span>(Se você tivesse visto o filme, você teria gostado.)</p> <p style="text-align: justify">&nbsp;</p> <h3 style="text-align: center; color: red"><span style="font-size: 12px">&nbsp;Third conditional - sem possibilidade</span></h3> <p style="text-align: center">Terceiro condicional<br /> &nbsp;</p> <p style="text-align: justify">O primeiro e segundo condicionais falam sobre o futuro. No terceiro condicional falamos sobre o passado. Falamos sobre uma condição no passado que não aconteceu. Aí está o porquê de não haver possibilidade&nbsp;de acontecer. O terceiro condicinal também é como um sonho, porém este, não tem possibilidade&nbsp;de se tornar realidade.<br /> <br /> Características marcantes no &quot;third conditional&quot;:<br /> <br /> Oração com if (if-clause): Past Perfect<br /> Oração principal (main clause): WOULD HAVE + PARTICÍPIO PASSADO<br /> <br /> <span style="color: #ff0000">Exemplo:<br /> </span><br /> <span style="color: #3366ff">If we had gotten to the movie earlier, we wouldn&acute;t have missed the beginning of the film.</span> (Se tivéssemos chegado ao cinema antes, não teríamos perdido o começo do filme.)<br /> <br /> O terceiro condicional é usado nas seguintes situações:</p> <p style="text-align: justify">- Que expressa um passado irreal;<br /> - Declara a conexão entre possível ou imaginado eventos no passado. Usado para expressar que o resultado imaginado de uma situação ou evento que não aconteceu.<br /> <br /> <span style="color: #3366ff"><strong>Estrutura:<br /> </strong></span><strong><br /> If + Past Perfect Would + have + particípio passado<br /> Could, might, should + have + particípio passado<br /> <br /> </strong><span style="color: #ff0000">Exemplo:</span><br /> <span style="color: #3366ff">If you had seen the movie, you would have liked it. </span>(Se você tivesse visto o filme, você teria gostado.)</p> <p style="text-align: justify">&nbsp;</p> Second conditional 2010-04-12T23:42:23-03:00 2010-04-12T23:42:23-03:00 https://ingles.eu.org/gramatica-inglesa/87-conditional-sentences-condicionais/1352-second-conditional Samuel S Santos <h3 style="text-align: center; color: red"><span style="font-size: 12px">Second conditional - possibilidade não real ou sonho</span></h3> <p style="text-align: center">Segundo condicional</p> <p style="text-align: justify">O segundo condicional é como o primeiro. Aqui, ainda estamos pensando sobre o futuro. Estamos falando sobre uma condição particular no fututo e o resultado dessa condição. Mas não há possibilidade real para que isso aconteça. Por exemplo: Você não tem um bilhete para loteria. É possíuvel ganhar? Não. Sem bilhete, nada de prêmio. Mas talvez você vai comprar um bilhete de loteria no futuro. Então pode pensar sobre ganhar na loteria no futuro, como um sonho. Não é muito real, mas ainda assim, é possível.</p> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td><strong><span style="font-size: 12px">If</span></strong></td> <td><strong><span style="font-size: 12px">condition (condição)</span></strong></td> <td><strong><span style="font-size: 12px">result (resultado)</span></strong></td> </tr> <tr> <td>&nbsp;</td> <td><span style="font-size: 12px">passado simples</span></td> <td><span style="font-size: 12px">would + verbo principal</span></td> </tr> <tr> <td><span style="font-size: 12px">If (se)</span></td> <td><span style="font-size: 12px">I won the lottery (eu ganhasse na loteria)</span></td> <td><span style="font-size: 12px">eu iria comprar um carro.</span></td> </tr> </tbody> </table> <p style="text-align: justify">Observe que estamos falando sobre futuro. Usamos passado simples para falar sobre uma condição no futuro. Usamos WOULD + VERBO&nbsp;PRINCIPAL para falar sobre resultado no futuro. Uma observação importante sobre o segundo condicional é que tem uma possibilidade não real de acontecer.</p> <p style="text-align: justify"><strong>Características básicas do second conditional:</strong></p> <p style="text-align: justify">Oração com if (if-clause): Simple Past<br /> Oração principal (main clause): WOULD<br /> He would complain if you were late. (Ele reclamaria se você se atrasasse.)<br /> <br /> O second condition é usado nas seguintes ocasiões:<br /> <br /> - expressa uma condição presente ou futura irreal;<br /> - declara uma ligação entre eventos e situações que podem não vir&nbsp;a se realizar. Muito usado para se falar do possível ou imaginado resultado de uma situação caso uma outra ação estivesse acontecendo.</p> <p style="text-align: justify">Nestas situações o verbo no passado não se refere ao passado e sim que a condição&nbsp; não existe ou não acontece na realidade.<br /> <br /> If + past would + infinitive (sem to) / anômalos (could, might)<br /> <br /> <span style="color: #3366ff">If&nbsp; I had money, I would buy an ice cream.</span> (Se eu tivesse dinheiro, eu compraria um sorvete.)<br /> <span style="color: #3366ff">If I had money, I could buy na ice cream.</span> (Se eu tivesse dinheiro, eu poderia comprar um sorvete)<br /> <br /> <span style="color: #ff0000"><strong>Obs:<br /> </strong></span>Os verbos no segundo condicional estão todos no passado, porém há uma exceção que é o verbo TO BE que leva a forma de &quot;were&quot; para todos os sujeitos:<br /> <span style="color: #ff0000">Exemplos:</span><br /> <span style="color: #3366ff">If I were you, I wouldn't touch that dog. </span>(Se eu fosse você, eu não tocaria aquele cachorro.)<br /> <span style="color: #3366ff">If you were in my place, what would you do?</span> (Se você estivesse no meu lugar, o que você faria?)<br /> &nbsp;</p> <h3 style="text-align: center; color: red"><span style="font-size: 12px">Second conditional - possibilidade não real ou sonho</span></h3> <p style="text-align: center">Segundo condicional</p> <p style="text-align: justify">O segundo condicional é como o primeiro. Aqui, ainda estamos pensando sobre o futuro. Estamos falando sobre uma condição particular no fututo e o resultado dessa condição. Mas não há possibilidade real para que isso aconteça. Por exemplo: Você não tem um bilhete para loteria. É possíuvel ganhar? Não. Sem bilhete, nada de prêmio. Mas talvez você vai comprar um bilhete de loteria no futuro. Então pode pensar sobre ganhar na loteria no futuro, como um sonho. Não é muito real, mas ainda assim, é possível.</p> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td><strong><span style="font-size: 12px">If</span></strong></td> <td><strong><span style="font-size: 12px">condition (condição)</span></strong></td> <td><strong><span style="font-size: 12px">result (resultado)</span></strong></td> </tr> <tr> <td>&nbsp;</td> <td><span style="font-size: 12px">passado simples</span></td> <td><span style="font-size: 12px">would + verbo principal</span></td> </tr> <tr> <td><span style="font-size: 12px">If (se)</span></td> <td><span style="font-size: 12px">I won the lottery (eu ganhasse na loteria)</span></td> <td><span style="font-size: 12px">eu iria comprar um carro.</span></td> </tr> </tbody> </table> <p style="text-align: justify">Observe que estamos falando sobre futuro. Usamos passado simples para falar sobre uma condição no futuro. Usamos WOULD + VERBO&nbsp;PRINCIPAL para falar sobre resultado no futuro. Uma observação importante sobre o segundo condicional é que tem uma possibilidade não real de acontecer.</p> <p style="text-align: justify"><strong>Características básicas do second conditional:</strong></p> <p style="text-align: justify">Oração com if (if-clause): Simple Past<br /> Oração principal (main clause): WOULD<br /> He would complain if you were late. (Ele reclamaria se você se atrasasse.)<br /> <br /> O second condition é usado nas seguintes ocasiões:<br /> <br /> - expressa uma condição presente ou futura irreal;<br /> - declara uma ligação entre eventos e situações que podem não vir&nbsp;a se realizar. Muito usado para se falar do possível ou imaginado resultado de uma situação caso uma outra ação estivesse acontecendo.</p> <p style="text-align: justify">Nestas situações o verbo no passado não se refere ao passado e sim que a condição&nbsp; não existe ou não acontece na realidade.<br /> <br /> If + past would + infinitive (sem to) / anômalos (could, might)<br /> <br /> <span style="color: #3366ff">If&nbsp; I had money, I would buy an ice cream.</span> (Se eu tivesse dinheiro, eu compraria um sorvete.)<br /> <span style="color: #3366ff">If I had money, I could buy na ice cream.</span> (Se eu tivesse dinheiro, eu poderia comprar um sorvete)<br /> <br /> <span style="color: #ff0000"><strong>Obs:<br /> </strong></span>Os verbos no segundo condicional estão todos no passado, porém há uma exceção que é o verbo TO BE que leva a forma de &quot;were&quot; para todos os sujeitos:<br /> <span style="color: #ff0000">Exemplos:</span><br /> <span style="color: #3366ff">If I were you, I wouldn't touch that dog. </span>(Se eu fosse você, eu não tocaria aquele cachorro.)<br /> <span style="color: #3366ff">If you were in my place, what would you do?</span> (Se você estivesse no meu lugar, o que você faria?)<br /> &nbsp;</p> First conditional 2010-04-12T21:38:49-03:00 2010-04-12T21:38:49-03:00 https://ingles.eu.org/gramatica-inglesa/87-conditional-sentences-condicionais/1351-first-conditional- Samuel S Santos <h3 style="text-align: center; color: red"><span style="font-size: 12px">First conditional - Possibilidade real</span></h3> <p style="text-align: center">&nbsp;Primeiro condicional</p> <p style="text-align: justify">Aqui falamos sobre o futuro. Sobre uma condição ou situação particular no futuro, e os resultados dessa condição. Existe aqui uma possibilidade real para que essa condição aconteça. Por exemplo, é cedo, pela manhã. Você está em casa. Você planeja jogar tenis à tarde. Mas tem algumas nuvens no céu. Imagine se chover,&nbsp; o que você vai fazer?</p> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td><strong><span style="font-size: 12px">If (Se)</span></strong></td> <td><strong><span style="font-size: 12px">condição</span></strong></td> <td><strong><span style="font-size: 12px">resultado</span></strong></td> </tr> <tr> <td>&nbsp;</td> <td><span style="font-size: 12px">presente simples</span></td> <td><span style="font-size: 12px">Will + verbo</span></td> </tr> <tr> <td><span style="font-size: 12px">If (se)</span></td> <td><span style="font-size: 12px">it rains (se chover)</span></td> <td><span style="font-size: 12px">I will stay home (eu vou ficar em casa)</span></td> </tr> </tbody> </table> <p style="text-align: justify"><br /> Observe que estamos pensando sobre uma ação no futuro. Não está chovendo ainda, mas o céu está nublado e então você imagina que pode vir a chover.</p> <p style="text-align: justify">Características básicas do &quot;first conditional&quot;:</p> <p style="text-align: justify">Oração com if (if-clause): Simple Present<br /> Oração principal (main clause): FUTURO (will)<br /> If he studies, he will pass the test. OR He will pass the test if he studies. (Se ele estudar, ele passará na prova.)</p> <p style="text-align: justify">O &quot;first conditional&quot; é usado nas seguintes ocasiões:<br /> <br /> - expressa uma condição de futuro possível;<br /> - declara a conexão entre eventos ou situações que são possíveis mas não certo. <br /> - também é muito usado para se referir a resultados possíveis de ações<br /> e eventos também possíveis.<br /> <br /> <strong><span style="color: #3366ff">Estrutura:&nbsp; </span></strong>If + present will + infinitive (sem to) / imperativo / anômalos<br /> <span style="color: #ff0000">Exemplos:<br /> </span><span style="color: #3366ff">If he invites me, I will go to the party. </span>(Se ele me convidar, eu irei à festa.)<br /> <span style="color: #3366ff">If he invites me, I go. </span>(Se ele me convidar, eu irei.)<br /> <span style="color: #3366ff">If he invites me, I can go. </span>(Se ele me convidar, eu posso ir)<br /> &nbsp;</p> <p><strong>IF condition result&nbsp;</strong><br /> <strong><span style="color: #3366ff">Estrutura:</span></strong> present simple WILL + base verb <br /> <span style="color: #ff0000">Exemplos:<br /> </span><span style="color: #3366ff">If I see Mary I will tell her.</span> (Se eu vir Mary eu falo com ela)<br /> <span style="color: #3366ff">If Tara is free tomorrow he will invite her. </span>(Se Tara estiver livre amanhã ele vai convidá-la)</p> <p><strong>Result IF condition</strong> <br /> <strong><span style="color: #3366ff">Estrutura: </span></strong>WILL + base verb&nbsp;&nbsp; present simple <br /> <span style="color: #ff0000">Exemplos:</span><br /> Their teacher will be sad if they do not pass their exam. (O professor deles vai ficar trsite se eles não passarem na prova)</p> <p><span style="color: #ff0000"><strong>OBS: </strong></span>Às vezes, usamos <strong>shall</strong>, <strong>can</strong>, ou <strong>may</strong> ao invés de will, por exemplo: If you are good today, you can watch TV tonight.&nbsp;(Se você ficar bom hoje, poderá asssistir TV à noite.)<br /> &nbsp;</p> <h3 style="text-align: center; color: red"><span style="font-size: 12px">First conditional - Possibilidade real</span></h3> <p style="text-align: center">&nbsp;Primeiro condicional</p> <p style="text-align: justify">Aqui falamos sobre o futuro. Sobre uma condição ou situação particular no futuro, e os resultados dessa condição. Existe aqui uma possibilidade real para que essa condição aconteça. Por exemplo, é cedo, pela manhã. Você está em casa. Você planeja jogar tenis à tarde. Mas tem algumas nuvens no céu. Imagine se chover,&nbsp; o que você vai fazer?</p> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td><strong><span style="font-size: 12px">If (Se)</span></strong></td> <td><strong><span style="font-size: 12px">condição</span></strong></td> <td><strong><span style="font-size: 12px">resultado</span></strong></td> </tr> <tr> <td>&nbsp;</td> <td><span style="font-size: 12px">presente simples</span></td> <td><span style="font-size: 12px">Will + verbo</span></td> </tr> <tr> <td><span style="font-size: 12px">If (se)</span></td> <td><span style="font-size: 12px">it rains (se chover)</span></td> <td><span style="font-size: 12px">I will stay home (eu vou ficar em casa)</span></td> </tr> </tbody> </table> <p style="text-align: justify"><br /> Observe que estamos pensando sobre uma ação no futuro. Não está chovendo ainda, mas o céu está nublado e então você imagina que pode vir a chover.</p> <p style="text-align: justify">Características básicas do &quot;first conditional&quot;:</p> <p style="text-align: justify">Oração com if (if-clause): Simple Present<br /> Oração principal (main clause): FUTURO (will)<br /> If he studies, he will pass the test. OR He will pass the test if he studies. (Se ele estudar, ele passará na prova.)</p> <p style="text-align: justify">O &quot;first conditional&quot; é usado nas seguintes ocasiões:<br /> <br /> - expressa uma condição de futuro possível;<br /> - declara a conexão entre eventos ou situações que são possíveis mas não certo. <br /> - também é muito usado para se referir a resultados possíveis de ações<br /> e eventos também possíveis.<br /> <br /> <strong><span style="color: #3366ff">Estrutura:&nbsp; </span></strong>If + present will + infinitive (sem to) / imperativo / anômalos<br /> <span style="color: #ff0000">Exemplos:<br /> </span><span style="color: #3366ff">If he invites me, I will go to the party. </span>(Se ele me convidar, eu irei à festa.)<br /> <span style="color: #3366ff">If he invites me, I go. </span>(Se ele me convidar, eu irei.)<br /> <span style="color: #3366ff">If he invites me, I can go. </span>(Se ele me convidar, eu posso ir)<br /> &nbsp;</p> <p><strong>IF condition result&nbsp;</strong><br /> <strong><span style="color: #3366ff">Estrutura:</span></strong> present simple WILL + base verb <br /> <span style="color: #ff0000">Exemplos:<br /> </span><span style="color: #3366ff">If I see Mary I will tell her.</span> (Se eu vir Mary eu falo com ela)<br /> <span style="color: #3366ff">If Tara is free tomorrow he will invite her. </span>(Se Tara estiver livre amanhã ele vai convidá-la)</p> <p><strong>Result IF condition</strong> <br /> <strong><span style="color: #3366ff">Estrutura: </span></strong>WILL + base verb&nbsp;&nbsp; present simple <br /> <span style="color: #ff0000">Exemplos:</span><br /> Their teacher will be sad if they do not pass their exam. (O professor deles vai ficar trsite se eles não passarem na prova)</p> <p><span style="color: #ff0000"><strong>OBS: </strong></span>Às vezes, usamos <strong>shall</strong>, <strong>can</strong>, ou <strong>may</strong> ao invés de will, por exemplo: If you are good today, you can watch TV tonight.&nbsp;(Se você ficar bom hoje, poderá asssistir TV à noite.)<br /> &nbsp;</p> Zero condicional 2010-04-12T20:17:09-03:00 2010-04-12T20:17:09-03:00 https://ingles.eu.org/gramatica-inglesa/87-conditional-sentences-condicionais/1350-zero-condicional Samuel S Santos <h3 style="text-align: center; color: red"><span style="font-size: 12px">Zero Conditional - Certeza</span></h3> <p>&nbsp;Usamos o termo &quot;zero condicional&quot; para nos referirmos ao resultado de uma ação que é sempre verdadeira, por exemplo: Pegue gelo. Coloque em uma panela. Acenda o fogo. O que acontece? O gelo derrete. (Surpresa seria se não derretesse.)</p> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td style="text-align: left"><strong><span style="font-size: 12px">Se (IF)</span></strong></td> <td style="text-align: left"><strong><span style="font-size: 12px">Condição</span></strong></td> <td style="text-align: left"><strong><span style="font-size: 12px">Resultado</span></strong></td> </tr> <tr> <td>&nbsp;</td> <td><span style="font-size: 12px">&nbsp;<strong>Tempo:</strong> Presente simples</span></td> <td><strong><span style="font-size: 12px">Tempo: </span></strong><span style="font-size: 12px">Presente simples</span></td> </tr> <tr> <td><span style="font-size: 12px">If (Se)</span></td> <td><span style="font-size: 12px">you heat the ice (você aquecer o gelo)</span></td> <td><span style="font-size: 12px">it melts (ele derrete)</span></td> </tr> </tbody> </table> <p style="text-align: justify">Observe que sempre pensamos que o resultado para essa ação é sempre verdadeiro. Certeza. Não estamos nos referindo à futuro ou passado, ou até mesmo sobre o presente. O importante aqui é o fato. Usamos o presente simples para falar sobre o resultado. Nas frases chamadas &quot;zero conditional&quot; o importante é que a condição tenha sempre o mesmo resultado.&nbsp;</p> <p style="text-align: justify"><strong><span style="color: #3366ff">Estrutura: </span></strong>É formada com as duas orações no presente. <span style="color: #ff0000">Veja:</span>&nbsp;<strong>if + simple present + simple present<br /> </strong>&nbsp;<br /> É usada para:<br /> - Expressar ações decorrentes de leis naturais ou universais.<br /> <span style="color: #ff0000">Exemplos:<br /> </span><span style="color: #3366ff">Fish die if they stay out of water. </span>(Os peixes morrem se ficam fora da água.)<br /> <span style="color: #3366ff">If you don't eat for a long time, you become hungry. </span>(Se você não come(r) por bastante tempo, fica com fome.)<br /> &nbsp;<br /> - Expressar situações gerais que são sempre verdade, quer dizer, dada aquela condição expressa pela oração condicional, obtém-se um resultado determinado.<br /> <span style="color: #ff0000">Exemplos:</span><br /> <span style="color: #3366ff">If you press the button, the machine starts to work.</span> (Se você aperta(r) o botão, a máquina começa a funcionar.)<br /> <span style="color: #3366ff">If you touch the car, the alarm goes off. </span>(Se você toca(r) no carro, o alarme dispara.)<br /> &nbsp;<br /> - Dar uma ordem ou instrução:<br /> <span style="color: #ff0000">Exemplos:</span><br /> <span style="color: #3366ff">Please call me if you have any problems. </span>(Por favor, ligue para mim se você tiver algum problema.)<br /> <span style="color: #3366ff">If you need help, talk to the supervisor. </span>(Se você precisar de ajuda, fale com o supervisor.)<br /> &nbsp;</p> <h3 style="text-align: center; color: red"><span style="font-size: 12px">Zero Conditional - Certeza</span></h3> <p>&nbsp;Usamos o termo &quot;zero condicional&quot; para nos referirmos ao resultado de uma ação que é sempre verdadeira, por exemplo: Pegue gelo. Coloque em uma panela. Acenda o fogo. O que acontece? O gelo derrete. (Surpresa seria se não derretesse.)</p> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td style="text-align: left"><strong><span style="font-size: 12px">Se (IF)</span></strong></td> <td style="text-align: left"><strong><span style="font-size: 12px">Condição</span></strong></td> <td style="text-align: left"><strong><span style="font-size: 12px">Resultado</span></strong></td> </tr> <tr> <td>&nbsp;</td> <td><span style="font-size: 12px">&nbsp;<strong>Tempo:</strong> Presente simples</span></td> <td><strong><span style="font-size: 12px">Tempo: </span></strong><span style="font-size: 12px">Presente simples</span></td> </tr> <tr> <td><span style="font-size: 12px">If (Se)</span></td> <td><span style="font-size: 12px">you heat the ice (você aquecer o gelo)</span></td> <td><span style="font-size: 12px">it melts (ele derrete)</span></td> </tr> </tbody> </table> <p style="text-align: justify">Observe que sempre pensamos que o resultado para essa ação é sempre verdadeiro. Certeza. Não estamos nos referindo à futuro ou passado, ou até mesmo sobre o presente. O importante aqui é o fato. Usamos o presente simples para falar sobre o resultado. Nas frases chamadas &quot;zero conditional&quot; o importante é que a condição tenha sempre o mesmo resultado.&nbsp;</p> <p style="text-align: justify"><strong><span style="color: #3366ff">Estrutura: </span></strong>É formada com as duas orações no presente. <span style="color: #ff0000">Veja:</span>&nbsp;<strong>if + simple present + simple present<br /> </strong>&nbsp;<br /> É usada para:<br /> - Expressar ações decorrentes de leis naturais ou universais.<br /> <span style="color: #ff0000">Exemplos:<br /> </span><span style="color: #3366ff">Fish die if they stay out of water. </span>(Os peixes morrem se ficam fora da água.)<br /> <span style="color: #3366ff">If you don't eat for a long time, you become hungry. </span>(Se você não come(r) por bastante tempo, fica com fome.)<br /> &nbsp;<br /> - Expressar situações gerais que são sempre verdade, quer dizer, dada aquela condição expressa pela oração condicional, obtém-se um resultado determinado.<br /> <span style="color: #ff0000">Exemplos:</span><br /> <span style="color: #3366ff">If you press the button, the machine starts to work.</span> (Se você aperta(r) o botão, a máquina começa a funcionar.)<br /> <span style="color: #3366ff">If you touch the car, the alarm goes off. </span>(Se você toca(r) no carro, o alarme dispara.)<br /> &nbsp;<br /> - Dar uma ordem ou instrução:<br /> <span style="color: #ff0000">Exemplos:</span><br /> <span style="color: #3366ff">Please call me if you have any problems. </span>(Por favor, ligue para mim se você tiver algum problema.)<br /> <span style="color: #3366ff">If you need help, talk to the supervisor. </span>(Se você precisar de ajuda, fale com o supervisor.)<br /> &nbsp;</p> The Zero Conditional Exercise 2010-02-02T18:13:32-02:00 2010-02-02T18:13:32-02:00 https://ingles.eu.org/gramatica-inglesa/87-conditional-sentences-condicionais/1078-the-zero-conditional-exercise Samuel S Santos <tohead> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- Made with executable version 5.5 Release 0 Build 24 --> <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 = 'Excellent!'; var DefaultWrong = 'Bosh!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]='Water boils if ______________ .'; I[0][1] = new Array(); I[0][1][0] = new Array(); I[0][1][0][0]='you heat it to 100 &#186;c'; I[0][1][0][1]=''; I[0][1][0][2] = 1; I[0][1][1] = new Array(); I[0][1][1][0]='you\'ll heat it to 100 &#186;c'; I[0][1][1][1]=''; I[0][1][1][2] = 0; I[0][2] = 0; I[1] = new Array(); I[1][0]='If you mix red and white, ______________ .'; I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='you\'d get orange'; I[1][1][0][1]=''; I[1][1][0][2] = 0; I[1][1][1] = new Array(); I[1][1][1][0]='you\'ll get orange'; I[1][1][1][1]=''; I[1][1][1][2] = 0; I[1][1][2] = new Array(); I[1][1][2][0]='you get pink'; I[1][1][2][1]=''; I[1][1][2][2] = 1; I[1][2] = 0; I[2] = new Array(); I[2][0]='______________ if you leave it in the sun.'; I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='Butter\'d melt'; I[2][1][0][1]=''; I[2][1][0][2] = 0; I[2][1][1] = new Array(); I[2][1][1][0]='Butter melts'; I[2][1][1][1]=''; I[2][1][1][2] = 1; I[2][2] = 0; I[3] = new Array(); I[3][0]='If ______________, take an aspirin.'; I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='you\'ve got a headache'; I[3][1][0][1]=''; I[3][1][0][2] = 1; I[3][1][1] = new Array(); I[3][1][1][0]='you\'d got a headache'; I[3][1][1][1]=''; I[3][1][1][2] = 0; I[3][1][2] = new Array(); I[3][1][2][0]='you\'ll get a headache'; I[3][1][2][1]=''; I[3][1][2][2] = 0; I[3][2] = 0; I[4] = new Array(); I[4][0]='If ______________, it tastes sweet.'; I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='you\'d add sugar'; I[4][1][0][1]=''; I[4][1][0][2] = 0; I[4][1][1] = new Array(); I[4][1][1][0]='you add sugar'; I[4][1][1][1]=''; I[4][1][1][2] = 1; I[4][2] = 0; I[5] = new Array(); I[5][0]='______________ if you go near its food when it\'s eating.'; I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='A dog would bite'; I[5][1][0][1]=''; I[5][1][0][2] = 0; I[5][1][1] = new Array(); I[5][1][1][0]='A dog bites'; I[5][1][1][1]=''; I[5][1][1][2] = 1; I[5][2] = 0; I[6] = new Array(); I[6][0]='If you pull a cat\'s tail, ______________ .'; I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='it would scratch you'; I[6][1][0][1]=''; I[6][1][0][2] = 0; I[6][1][1] = new Array(); I[6][1][1][0]='it scratches you'; I[6][1][1][1]=''; I[6][1][1][2] = 1; I[6][2] = 0; I[7] = new Array(); I[7][0]='______________ if you don\'t wear a seat belt.'; I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='You\'d have more chance of being killed'; I[7][1][0][1]=''; I[7][1][0][2] = 0; I[7][1][1] = new Array(); I[7][1][1][0]='You have more chance of being killed'; I[7][1][1][1]=''; I[7][1][1][2] = 1; I[7][2] = 0; I[8] = new Array(); I[8][0]='You can end up brain damaged if ______________ .'; I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='you wouldn\'t wear a crash helmet'; I[8][1][0][1]=''; I[8][1][0][2] = 0; I[8][1][1] = new Array(); I[8][1][1][0]='you don\'t wear a crash helmet'; I[8][1][1][1]=''; I[8][1][1][2] = 1; I[8][2] = 0; I[9] = new Array(); I[9][0]='If you press this switch, ______________ .'; I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='the dvd player\'d come on'; I[9][1][0][1]=''; I[9][1][0][2] = 0; I[9][1][1] = new Array(); I[9][1][1][0]='the dvd player comes on'; I[9][1][1][1]=''; I[9][1][1][2] = 1; I[9][2] = 0; I[10] = new Array(); I[10][0]='If ______________, her folks get very angry.'; I[10][1] = new Array(); I[10][1][0] = new Array(); I[10][1][0][0]='she comes home very late'; I[10][1][0][1]=''; I[10][1][0][2] = 1; I[10][1][1] = new Array(); I[10][1][1][0]='she\'d come home very late'; I[10][1][1][1]=''; I[10][1][1][2] = 0; I[10][2] = 0; I[11] = new Array(); I[11][0]='Farmers get very angry if ______________ .'; I[11][1] = new Array(); I[11][1][0] = new Array(); I[11][1][0][0]='you leave gates open in the country'; I[11][1][0][1]=''; I[11][1][0][2] = 1; I[11][1][1] = new Array(); I[11][1][1][0]='you\'d leave gates open in the country'; I[11][1][1][1]=''; I[11][1][1][2] = 0; 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">The Zero Conditional 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><font color="#000000"><br /> </font> <span class="ExerciseSubtitle"><font color="#000000">Choose the correct answer below to fill the gap.</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" /> <!-- Made with executable version 5.5 Release 0 Build 24 --> <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 = 'Excellent!'; var DefaultWrong = 'Bosh!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]='Water boils if ______________ .'; I[0][1] = new Array(); I[0][1][0] = new Array(); I[0][1][0][0]='you heat it to 100 &#186;c'; I[0][1][0][1]=''; I[0][1][0][2] = 1; I[0][1][1] = new Array(); I[0][1][1][0]='you\'ll heat it to 100 &#186;c'; I[0][1][1][1]=''; I[0][1][1][2] = 0; I[0][2] = 0; I[1] = new Array(); I[1][0]='If you mix red and white, ______________ .'; I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='you\'d get orange'; I[1][1][0][1]=''; I[1][1][0][2] = 0; I[1][1][1] = new Array(); I[1][1][1][0]='you\'ll get orange'; I[1][1][1][1]=''; I[1][1][1][2] = 0; I[1][1][2] = new Array(); I[1][1][2][0]='you get pink'; I[1][1][2][1]=''; I[1][1][2][2] = 1; I[1][2] = 0; I[2] = new Array(); I[2][0]='______________ if you leave it in the sun.'; I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='Butter\'d melt'; I[2][1][0][1]=''; I[2][1][0][2] = 0; I[2][1][1] = new Array(); I[2][1][1][0]='Butter melts'; I[2][1][1][1]=''; I[2][1][1][2] = 1; I[2][2] = 0; I[3] = new Array(); I[3][0]='If ______________, take an aspirin.'; I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='you\'ve got a headache'; I[3][1][0][1]=''; I[3][1][0][2] = 1; I[3][1][1] = new Array(); I[3][1][1][0]='you\'d got a headache'; I[3][1][1][1]=''; I[3][1][1][2] = 0; I[3][1][2] = new Array(); I[3][1][2][0]='you\'ll get a headache'; I[3][1][2][1]=''; I[3][1][2][2] = 0; I[3][2] = 0; I[4] = new Array(); I[4][0]='If ______________, it tastes sweet.'; I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='you\'d add sugar'; I[4][1][0][1]=''; I[4][1][0][2] = 0; I[4][1][1] = new Array(); I[4][1][1][0]='you add sugar'; I[4][1][1][1]=''; I[4][1][1][2] = 1; I[4][2] = 0; I[5] = new Array(); I[5][0]='______________ if you go near its food when it\'s eating.'; I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='A dog would bite'; I[5][1][0][1]=''; I[5][1][0][2] = 0; I[5][1][1] = new Array(); I[5][1][1][0]='A dog bites'; I[5][1][1][1]=''; I[5][1][1][2] = 1; I[5][2] = 0; I[6] = new Array(); I[6][0]='If you pull a cat\'s tail, ______________ .'; I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='it would scratch you'; I[6][1][0][1]=''; I[6][1][0][2] = 0; I[6][1][1] = new Array(); I[6][1][1][0]='it scratches you'; I[6][1][1][1]=''; I[6][1][1][2] = 1; I[6][2] = 0; I[7] = new Array(); I[7][0]='______________ if you don\'t wear a seat belt.'; I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='You\'d have more chance of being killed'; I[7][1][0][1]=''; I[7][1][0][2] = 0; I[7][1][1] = new Array(); I[7][1][1][0]='You have more chance of being killed'; I[7][1][1][1]=''; I[7][1][1][2] = 1; I[7][2] = 0; I[8] = new Array(); I[8][0]='You can end up brain damaged if ______________ .'; I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='you wouldn\'t wear a crash helmet'; I[8][1][0][1]=''; I[8][1][0][2] = 0; I[8][1][1] = new Array(); I[8][1][1][0]='you don\'t wear a crash helmet'; I[8][1][1][1]=''; I[8][1][1][2] = 1; I[8][2] = 0; I[9] = new Array(); I[9][0]='If you press this switch, ______________ .'; I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='the dvd player\'d come on'; I[9][1][0][1]=''; I[9][1][0][2] = 0; I[9][1][1] = new Array(); I[9][1][1][0]='the dvd player comes on'; I[9][1][1][1]=''; I[9][1][1][2] = 1; I[9][2] = 0; I[10] = new Array(); I[10][0]='If ______________, her folks get very angry.'; I[10][1] = new Array(); I[10][1][0] = new Array(); I[10][1][0][0]='she comes home very late'; I[10][1][0][1]=''; I[10][1][0][2] = 1; I[10][1][1] = new Array(); I[10][1][1][0]='she\'d come home very late'; I[10][1][1][1]=''; I[10][1][1][2] = 0; I[10][2] = 0; I[11] = new Array(); I[11][0]='Farmers get very angry if ______________ .'; I[11][1] = new Array(); I[11][1][0] = new Array(); I[11][1][0][0]='you leave gates open in the country'; I[11][1][0][1]=''; I[11][1][0][2] = 1; I[11][1][1] = new Array(); I[11][1][1][0]='you\'d leave gates open in the country'; I[11][1][1][1]=''; I[11][1][1][2] = 0; 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">The Zero Conditional 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><font color="#000000"><br /> </font> <span class="ExerciseSubtitle"><font color="#000000">Choose the correct answer below to fill the gap.</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 --> Resumo - Condicionais (Conditional) 2009-07-29T15:15:55-03:00 2009-07-29T15:15:55-03:00 https://ingles.eu.org/gramatica-inglesa/87-conditional-sentences-condicionais/311-resumo-condicionais-conditional Samuel S Santos <h3 style="text-align: center; color: red">&nbsp;<span style="font-size: 12px"><b>Frases condicionais</b></span></h3> <div style="text-align: center; margin: 0cm 0cm 12pt"><span style="font-size: 12px"><b>Conditional Tense</b></span></div> <div style="text-align: justify; margin: 0cm 0cm 12pt"><span style="font-size: 12px"><br /> <span style="color: #ff0000">1) Primeiro condicional:</span><br /> - expressa uma condição de futuro possível;<br /> - declara a conexão entre eventos ou situações que são possíveis mas<br /> não certo. Muito usado para se referir a resultados possíveis(y) de ações<br /> e eventos também possíveis (x).<br /> If + present will + infinitive (sem to) / imperativo / anômalos<br /> (presente/futuro)<br /> If <br /> he invites me, I will go to the party.<br /> Se ele me convidar, eu irei à festa.<br /> If he invites me, I go.<br /> Se ele me convidar, eu irei.<br /> If he invites me, I can go<br /> Se ele me convidar, eu posso ir<br /> CONDIÇÃO X RESULTADO Y<br /> <br /> <span style="color: #ff0000">2) Segundo condicional:<br /> </span>- expressa uma condição presente ou futura irreal;<br /> - declara uma ligação entre eventos e situações que podem não vir<br /> a se realizar. Muito usado para se falar do possível ou imaginado<br /> resultado de uma situação (y) caso uma outra ação estivesse<br /> acontecendo (x). Nestas situações o verbo no passado não se refere ao<br /> passado e sim que a condição (x) não existe ou não acontece na<br /> realidade.<br /> If + past would + infinitive (sem to) / anômalos (could, might)<br /> If <br /> I had money, I would buy an ice cream.<br /> Se eu tivesse dinheiro, eu compraria um sorvete.<br /> If I had money, I could buy na ice cream.<br /> Se eu tivesse dinheiro, eu poderia comprar um sorvete<br /> <br /> <span style="color: #ff0000"><strong>Obs</strong></span><br /> Os verbos no segundo condicional estão todos no passado, porém há uma exceção<br /> que é o verbo TO BE que leva a forma de &quot;were&quot; para todos os sujeitos:<br /> If I were you, I wouldn't touch that dog.<br /> Se eu fosse você, eu não tocaria aquele cachorro.<br /> If you were in my place, what would you do?<br /> Se você estivesse no meu lugar, o que você faria?<br /> If <br /> Jack were there, he would defend you<br /> Se o Jack estivesse lá ele o defenderia<br /> <br /> <span style="color: #ff0000">3) Terceiro condicional:</span><br /> - Que expressa um passado irreal;<br /> - Declara a conexão entre possível ou imaginado eventos no<br /> passado. Usado para expressar que o resultado imaginado (y) de<br /> uma situação ou evento (x) que não aconteceu.<br /> If + Past Perfect Would + have + particípio passado<br /> Could, might, should + have + particípio passado<br /> If you <br /> had seen the movie, you would have liked it.<br /> Se você tivesse visto o filme, você teria gostado.<br /> <br /> <span style="color: #ff0000">4) Condicional Conclusiva:<br /> </span>- Expressa uma verdade universal ou científica que é verdadeiro no<br /> passado, presente e futuro. Pela regra, uma dada condição(y) sempre<br /> depende, segue ou é causada por uma outra condição (x).<br /> If + present present<br /> If you drink too much, you get drunk<br /> Se você beber demais, você fica bêbado.<br /> Uma &quot;if-clause&quot; pode aparecer no começo ou no fim da oração:<br /> It would be nice if you helped your brother.<br /> Seria legal se você ajudasse seu irmão.<br /> No inglês britânico o &quot;Should&quot; pode ser usado no lugar do &quot;Would&quot; para a primeira<br /> pessoa do singular e do plural ( I e we ) sem alterar o significado da sentença.<br /> If I knew his address, I should/would tell you.<br /> Se eu soubesse o endereço dele eu lhe diria.<br /> A contração &quot;&acute;d&quot; é usada no lugar do should ou would.<br /> I'd have called you if you had given me your number<br /> Eu teria ligado para você se você tivesse me dado seu número.<br /> &quot;Whether&quot; pode substituir o &quot;If&quot; nos seguintes casos:<br /> - Quando o &quot;if&quot; indica escolha<br /> Please tell whether(or not) you want to come.<br /> Por favor, me diz se você quer (ou não) vir.<br /> - Quando não importar o que uma pessoa escolha ou decida: <br /> Whether <br /> you like spinach or not, you will eat it.<br /> Se você gosta ou não de espinafre, você irá comer.<br /> Atenção. Geralmente não usamos o &quot;will&quot; ou o &quot;would&quot; na sentença que leva o &quot;if&quot;.<br /> <br /> </span></div> <h3 style="text-align: center; color: red">&nbsp;<span style="font-size: 12px"><b>Frases condicionais</b></span></h3> <div style="text-align: center; margin: 0cm 0cm 12pt"><span style="font-size: 12px"><b>Conditional Tense</b></span></div> <div style="text-align: justify; margin: 0cm 0cm 12pt"><span style="font-size: 12px"><br /> <span style="color: #ff0000">1) Primeiro condicional:</span><br /> - expressa uma condição de futuro possível;<br /> - declara a conexão entre eventos ou situações que são possíveis mas<br /> não certo. Muito usado para se referir a resultados possíveis(y) de ações<br /> e eventos também possíveis (x).<br /> If + present will + infinitive (sem to) / imperativo / anômalos<br /> (presente/futuro)<br /> If <br /> he invites me, I will go to the party.<br /> Se ele me convidar, eu irei à festa.<br /> If he invites me, I go.<br /> Se ele me convidar, eu irei.<br /> If he invites me, I can go<br /> Se ele me convidar, eu posso ir<br /> CONDIÇÃO X RESULTADO Y<br /> <br /> <span style="color: #ff0000">2) Segundo condicional:<br /> </span>- expressa uma condição presente ou futura irreal;<br /> - declara uma ligação entre eventos e situações que podem não vir<br /> a se realizar. Muito usado para se falar do possível ou imaginado<br /> resultado de uma situação (y) caso uma outra ação estivesse<br /> acontecendo (x). Nestas situações o verbo no passado não se refere ao<br /> passado e sim que a condição (x) não existe ou não acontece na<br /> realidade.<br /> If + past would + infinitive (sem to) / anômalos (could, might)<br /> If <br /> I had money, I would buy an ice cream.<br /> Se eu tivesse dinheiro, eu compraria um sorvete.<br /> If I had money, I could buy na ice cream.<br /> Se eu tivesse dinheiro, eu poderia comprar um sorvete<br /> <br /> <span style="color: #ff0000"><strong>Obs</strong></span><br /> Os verbos no segundo condicional estão todos no passado, porém há uma exceção<br /> que é o verbo TO BE que leva a forma de &quot;were&quot; para todos os sujeitos:<br /> If I were you, I wouldn't touch that dog.<br /> Se eu fosse você, eu não tocaria aquele cachorro.<br /> If you were in my place, what would you do?<br /> Se você estivesse no meu lugar, o que você faria?<br /> If <br /> Jack were there, he would defend you<br /> Se o Jack estivesse lá ele o defenderia<br /> <br /> <span style="color: #ff0000">3) Terceiro condicional:</span><br /> - Que expressa um passado irreal;<br /> - Declara a conexão entre possível ou imaginado eventos no<br /> passado. Usado para expressar que o resultado imaginado (y) de<br /> uma situação ou evento (x) que não aconteceu.<br /> If + Past Perfect Would + have + particípio passado<br /> Could, might, should + have + particípio passado<br /> If you <br /> had seen the movie, you would have liked it.<br /> Se você tivesse visto o filme, você teria gostado.<br /> <br /> <span style="color: #ff0000">4) Condicional Conclusiva:<br /> </span>- Expressa uma verdade universal ou científica que é verdadeiro no<br /> passado, presente e futuro. Pela regra, uma dada condição(y) sempre<br /> depende, segue ou é causada por uma outra condição (x).<br /> If + present present<br /> If you drink too much, you get drunk<br /> Se você beber demais, você fica bêbado.<br /> Uma &quot;if-clause&quot; pode aparecer no começo ou no fim da oração:<br /> It would be nice if you helped your brother.<br /> Seria legal se você ajudasse seu irmão.<br /> No inglês britânico o &quot;Should&quot; pode ser usado no lugar do &quot;Would&quot; para a primeira<br /> pessoa do singular e do plural ( I e we ) sem alterar o significado da sentença.<br /> If I knew his address, I should/would tell you.<br /> Se eu soubesse o endereço dele eu lhe diria.<br /> A contração &quot;&acute;d&quot; é usada no lugar do should ou would.<br /> I'd have called you if you had given me your number<br /> Eu teria ligado para você se você tivesse me dado seu número.<br /> &quot;Whether&quot; pode substituir o &quot;If&quot; nos seguintes casos:<br /> - Quando o &quot;if&quot; indica escolha<br /> Please tell whether(or not) you want to come.<br /> Por favor, me diz se você quer (ou não) vir.<br /> - Quando não importar o que uma pessoa escolha ou decida: <br /> Whether <br /> you like spinach or not, you will eat it.<br /> Se você gosta ou não de espinafre, você irá comer.<br /> Atenção. Geralmente não usamos o &quot;will&quot; ou o &quot;would&quot; na sentença que leva o &quot;if&quot;.<br /> <br /> </span></div>