-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainpage.html
More file actions
611 lines (549 loc) · 21.3 KB
/
mainpage.html
File metadata and controls
611 lines (549 loc) · 21.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<!-- META TAG SEMPRE VEM ANTES -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="keywords"
content="static, single, Page, Aplication, web, desenvolvimento, html, css, responsivo,javascript, questoes " />
<link rel="author" href="https://www.linkedin.com/in/lucas-arifa-460b31178/" />
<link rel="JavaScript Tab Icon" href="images/javascript-icon-tab.png" type="image/x-icon" />
<!-- LINK PARA ARQUIVOS E PASTAS EXTERNOS-->
<link rel="stylesheet" href="mainpage.css">
<script src="mainpage.js"></script>
<!--TITULO PRINCIPAL -->
<title>Questões Simples - JavaScript </title>
</head>
<body>
<span id="nota"></span>
<article class="main">
<!-- SEÇÃO HEADER -->
<table class="header">
<tr class="tr-js-icon">
<td>
<figure>
<img src="images/javascript-icon.png" alt="JavaScript Icon">
</figure>
</td>
<td class="questoes-title">
<h1>Questões</h1>
<!-- ZERAR chances -->
<label for="button">
<input type="button" id="zerarChances" onclick="clearLocalStorage()" value="RESETAR HISTÓRICO">
</label>
</td>
<!-- HISTORICO -->
<section id="historicoSection">
<td id="tdHistorico" class="">
<h4 id="txtHistorico" class="txtTentativa">Histórico</h4>
<p id="txtTentativa1" class="txtTentativa">1º Chance -</p>
<p id="txtTentativa2" class="txtTentativa">2º Chance- </p>
<p id="txtTentativa3" class="txtTentativa">3º Chance- </p>
<a id="relatorio" href="relatory.html">RELATÓRIO</a>
</td>
</section>
<!-- A NOTA DO TESTE -->
<section id="notaSection">
<td id="tdNota" class="">
<p id="txtNota"><strong>ACERTOU</strong></p>
<p id="numNota" onchange=""><strong></strong></p>
<p id="txtNotaMax">de 100%</p>
</td>
</section>
</table>
<!-- QUESTÕES (CORPO) -->
<section class="questoes-body">
<!-- PRIMEIRA QUESTÃO -->
<table>
<!-- CABEÇALHO -->
<tr>
<h2> 1) Questão </h2>
<td>
<span><b> Prova: </b>Quadrix - 2018 - CRM-PR - Programador de Tecnologia da Informação</span>
<br>
<span><b>Ano:</b> 2018</span>
<span style="margin-left: 30px;"> <b>Banca:</b> Quadrix </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> CRM-PR </span>
</td>
</tr>
</table>
<!-- PERGUNTAS -->
<!-- CORPO DA PRIMEIRA PERGUNTA -->
<picture>
<img src="images/question-1-2-3.png" alt="">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Com relação ao programa <b>JavaScript</b> acima, a saída do programa terá o resultado mostrado a seguir.</p>
<img src="images/answer-question-1.png" alt="">
<!-- ALTERNATIVAS -->
<section class="radio-group" id="">
<label class="radio">
<input type="radio" class="radios" value="errado" name="radio-questao-1" id="errado">
errado
<span></span>
</label>
<label class="radio">
<input type="radio" class="radios" value="certo" name="radio-questao-1" id="certo">
certo
<span></span>
</label>
</section>
<hr>
<!-- SEGUNDA QUESTÃO -->
<table>
<!-- CABEÇALHO -->
<tr>
<h2> 2) Questão </h2>
<td>
<span><b> Prova: </b> Quadrix - 2018 - CRM-PR - Programador de Tecnologia da Informação</span>
<br>
<span><b>Ano:</b> 2018</span>
<span style="margin-left: 30px;"> <b>Banca:</b> Quadrix </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> CRM-PR </span>
</td>
</tr>
</table>
<!-- CORPO DA SEGUNDA PERGUNTA -->
<picture>
<img src="images/question-1-2-3.png" alt="Image question Two">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Com relação ao programa <b>JavaScript</b> acima,o comando da <b>linha 11</b> causará um erro em tempo de execução
por tentar incluir elemento fora dos limites da variável lista.</p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
<label class="radio">
<input type="radio" class="radios" value="errado" name="radio-questao-2">
errado
<span></span>
</label>
<label class="radio">
<input type="radio" class="radios" value="certo" name="radio-questao-2">
certo
<span></span>
</label>
</section>
<hr>
<!-- TERCEIRA QUESTÃO -->
<table>
<!-- CABEÇALHO -->
<tr>
<h2> 3) Questão</h2>
<td>
<span><b> Prova: </b> Quadrix - 2018 - CRM-PR - Programador de Tecnologia da Informação</span>
<br>
<span><b>Ano:</b> 2018</span>
<span style="margin-left: 30px;"> <b>Banca:</b> Quadrix </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> CRM-PR </span>
</td>
</tr>
</table>
<!-- CORPO DA TERCEIRA PERGUNTA -->
<picture>
<img src="images/question-1-2-3.png" alt="Image question three">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Com relação ao programa <b>JavaScript</b> acima, assim como na linguagem de programação Pascal, os programas em
linguagem JavaScript iniciam com o comando <b>Program JavaScript (linha 4).</b></p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
<label class="radio">
<input type="radio" class="radios" value="errado" name="radio-questao-3">
errado
<span></span>
</label>
<label class="radio">
<input type="radio" class="radios" value="certo" name="radio-questao-3">
certo
<span></span>
</label>
</section>
<hr>
<!-- QUARTA QUESTÃO -->
<table>
<tr>
<!-- CABEÇALHO -->
<h2> 4) Questão </h2>
<td>
<span><b> Prova: </b> IF-PE - 2019 -IF-PE - Técnico em Tecnologia da Informação - Desenvolvimento</span>
<br>
<span><b>Ano:</b> 2019</span>
<span style="margin-left: 30px;"> <b>Banca:</b> IF-PE </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> IF-PE </span>
<span style="margin-left: 30px;"> <b>Questão Adaptada</b> </span>
</td>
</tr>
</table>
<!-- CORPO DA QUARTA PERGUNTA -->
<picture>
<img src="images/question-4.png" alt=" Image question four">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Dado o código JavaScript apresentado acima, qual código deve ser colocado no lugar do trecho <b>%codigo%</b> para
produzir a saída expressa na imagem?</p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-4" value="questao-4-alternativa-a">
A) person[firstName] + " " + person[lastName]
<span></span>
</label>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-4" value="questao-4-alternativa-b">
B) person->firstName + " " + person->lastName
<span></span>
</label>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-4" value="questao-4-alternativa-c">
C) person.firstName + " " + person["lastName"]
<span></span>
</label>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-4" value="questao-4-alternativa-d">
D) person.(“firstName”) + " " + person.("lastName")
<span></span>
</label>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-4" value="questao-4-alternativa-e">
E) person(“firstName”) + " " + person("lastName")
<span></span>
</label>
</section>
<hr>
<!-- QUINTA QUESTÃO -->
<table>
<tr>
<!-- CABEÇALHO -->
<h2> 5) Questão </h2>
<td>
<span><b> Prova: </b> IF-PE - 2019 -IF-PE - Técnico em Tecnologia da Informação - Desenvolvimento</span>
<br>
<span><b>Ano:</b> 2019</span>
<span style="margin-left: 30px;"> <b>Banca:</b> IF-PE </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> IF-PE </span>
</td>
</tr>
</table>
<!-- CORPO DA QUINTA PERGUNTA -->
<p>Observe o seguinte código <b>JavaScript:</b></p>
<picture>
<img src="images/question-5.png" alt="Image question five">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>O resultado apresentado no browser, após a sua execução, é :</p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-5" value="questao-5-alternativa-a">
A ) 8
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-5" value="questao-5-alternativa-b">
B) 10
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-5" value="questao-5-alternativa-c">
C) 7
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-5" value="questao-5-alternativa-d">
D) 9
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-5" value="questao-5-alternativa-e">
E) 6
<span></span>
</label>
</section>
<hr>
<!-- SEXTA QUESTÃO -->
<table>
<tr>
<!-- CABEÇALHO -->
<h2> 6) Questão </h2>
<td>
<span><b> Prova: </b> IF-PE - 2019 -IF-PE - Técnico em Tecnologia da Informação - Desenvolvimento</span>
<br>
<span><b>Ano:</b> 2019</span>
<span style="margin-left: 30px;"> <b>Banca:</b> IF-PE </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> IF-PE </span>
</td>
</tr>
</table>
<!-- CORPO DA SEXTA PERGUNTA -->
<p>Observe o código <b>JavaScript</b>, a seguir.</p>
<picture>
<img src="images/question-6.png" alt="Image question six">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>O resultado apresentado no browser, após sua execução, é: </p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-6" value="questao-6-alternativa-a">
A) Nada
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-6" value="questao-6-alternativa-b">
B) 10
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-6" value="questao-6-alternativa-c">
C) 11
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-6" value="questao-6-alternativa-d">
D) 13
<span></span>
</label>
     
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-6" value="questao-6-alternativa-e">
E) 12
<span></span>
</label>
</section>
<hr>
<!-- SÉTIMA QUESTÃO -->
<table>
<tr>
<!-- CABEÇALHO -->
<h2> 7) Questão </h2>
<td>
<span><b> Prova: </b> FCC - 2019 - SANASA Campinas
<br> - Analista de Tecnologia da Informação - Análise e Desenvolvimento</span>
<br>
<span><b>Ano:</b> 2019</span>
<span style="margin-left: 30px;"> <b>Banca:</b> FCC </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> SANASA Campinas </span>
</td>
</tr>
</table>
<!-- CORPO DA SÉTIMA PERGUNTA -->
<p>Considere a página HTML abaixo, que contém código <b>JavaScript</b>.</p>
<picture>
<img src="images/question-7.png" alt="Image quesiton seven">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Sabendo que com <b>HTML DOM</b>, JavaScript pode acessar e mudar os elementos de uma página web, para que o
Terceiro Parágrafo seja adicionado ao contêiner identificado como <b>caixa</b>, a lacuna <b>I</b> deve ser
corretamente preenchida por: </p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-7" value="questao-7-alternativa-a">
A) document.getElementById("caixa").add(para)
<span></span>
</label><br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-7" value="questao-7-alternativa-b">
B) element.append(para.append(node))
<span></span>
</label> <br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-7" value="questao-7-alternativa-c">
C) element.innetHTML(para.add(node))
<span></span>
</label> <br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-7" value="questao-7-alternativa-d">
D) element.addNode(para.addContent(node))
<span></span>
</label> <br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-7" value="questao-7-alternativa-e">
E) element.appendChild(para.appendChild(node))
<span></span>
</label>
</section>
<hr>
<!-- OITAVA QUESTÃO -->
<table>
<tr>
<!-- CABEÇALHO -->
<h2> 8) Questão </h2>
<td>
<span><b> Prova: </b> VUNESP - 2019 - UFABC - Técnico de Tecnologia da Informação</span>
<br>
<span><b>Ano:</b> 2019</span>
<span style="margin-left: 30px;"> <b>Banca:</b> VUNESP </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> UFABC </span>
</td>
</tr>
</table>
<!-- CORPO DA OITAVA PERGUNTA -->
<p>Observe trecho do código <b>JavaScript</b> a seguir.</p>
<picture>
<img src="images/question-8.png" alt="Image question eight">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Esse código exibe a mensagem “NÃO”, pois: </p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-8" value="questao-8-alternativa-a">
A) a variável “x” não é do tipo numérico
<span></span>
</label><br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-8" value="questao-8-alternativa-b">
B) o operador comparado testa se a variável “x” é diferente de 10.
<span></span>
</label> <br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-8" value="questao-8-alternativa-c">
C) faltou delimitar os blocos da instrução “if” com chaves.
<span></span>
</label>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-8" value="questao-8-alternativa-d">
D) não é possível utilizar acentos em strings.
<span></span>
</label>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-8" value="questao-8-alternativa-e">
E) não é permitido o uso de ponto-e-vírgula antes de “else”.
<span></span>
</label>
</section>
<hr>
<!-- NONA QUESTÃO -->
<table>
<tr>
<!-- CABEÇALHO -->
<h2>9) Questão </h2>
<td>
<span><b> Prova: </b> FCC - 2019 - Prefeitura de Manaus AM
<br> - Técnico de Tecnologia da Informação da Fazenda Municipal
</span>
<br>
<span><b>Ano:</b> 2019</span>
<span style="margin-left: 30px;"> <b>Banca:</b> FCC </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> Prefeitura de Manaus AM </span>
</td>
</tr>
</table>
<!-- CORPO DA NONA PERGUNTA -->
<p>Em uma página web que utiliza <b>JavaScript</b> um Programador deseja aumentar alguns valores de salário que
estão em um <b>vetor</b> em <b>10%</b> e armazenar estes valores ajustados em outro vetor, utilizando o fragmento
de código abaixo.</p>
<picture>
<img src="images/question-9.png" alt="Image quesiton nine">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Para realizar a operação, a lacuna I deverá ser preenchida por: </p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
  
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-9" value="questao-9-alternativa-a">
A) map.
<span></span>
</label>
       
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-9" value="questao-9-alternativa-b">
B) Math.
<span></span>
</label>
   
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-9" value="questao-9-alternativa-c">
C) aplit.
<span></span>
</label>
   
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-9" value="questao-9-alternativa-d">
D) clone.
<span></span>
</label>
   
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-9" value="questao-9-alternativa-e">
E) calc.
<span></span>
</label>
</section>
<hr>
<!-- DECIMA QUESTÃO -->
<table>
<tr>
<!-- CABEÇALHO -->
<h2> 10) Questão </h2>
<td>
<span><b> Prova: </b> FCC - 2019 - Prefeitura de Manaus AM
<br> - Assistente Técnico de Tecnologia da Informação - Programador
</span>
<br>
<span><b>Ano:</b> 2019</span>
<span style="margin-left: 30px;"> <b>Banca:</b> FCC </span>
<span style="margin-left: 30px;"> <b>Órgão:</b> Prefeitura de Manaus AM </span>
</td>
</tr>
</table>
<!-- CORPO DA DÉCIMA PERGUNTA -->
<p>Considere o fragmento de código de uma página de web abaixo, que utiliza JavaScript.</p>
<picture>
<img src="images/question-10.png" alt="Image quesiton ten">
<figcaption style="font-size: 10px; padding-left: 10px;">Imagem sem direitos autorais</figcaption>
</picture>
<p>Para que o texto PREFEITURA DE MANAUS seja exibido no parágrafo cujo <b> id="id02"</b> a <b>lacuna I</b> deverá
ser preenchida por:</p>
<!-- ALTERNATIVAS -->
<section class="radio-group">
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-10" value="questao-10-alternativa-a">
A) childNodes[1].nodeValue
<span></span>
</label><br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-10" value="questao-10-alternativa-b">
B) firstSibling.nodeValue ou firstNode.nodeValue
<span></span>
</label></br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-10" value="questao-10-alternativa-c">
C) value ou text
<span></span>
</label><br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-10" value="questao-10-alternativa-d">
D) firstChild.nodeValue ou childNodes[0].nodeValue
<span></span>
</label><br>
<label class="radio-alternativas">
<input type="radio" class="radios" name="radio-questao-10" value="questao-10-alternativa-e">
E) parentNode[0].nodeValue
<span></span>
</label>
</section>
<hr>
<a href="#nota">
<label for="button">
<input id="finalizarTeste" name="finalizarTeste" class="finalizarTeste"
type="button"
onclick="finalizarTeste()"
value="FINALIZAR TESTE"
>
</label>
</a>
</article>
</body>
</html>