Search Header Logo

Quiz de JavaScript e Node.js

Authored by JOAO MONTEIRO

Information Technology (IT)

12th Grade

Used 2+ times

Quiz de JavaScript e Node.js
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código JavaScript? ```javascript console.log(typeof null); ```

"object"

"null"

"undefined"

"boolean"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é uma maneira correta de declarar uma função assíncrona em JavaScript?

`function async minhaFuncao() {}`

`async function minhaFuncao() {}`

`function minhaFuncao() async {}`

`async minhaFuncao() function {}`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que o método `setTimeout` faz em JavaScript?

Executa uma função imediatamente

Executa uma função após um determinado tempo

Cancela a execução de uma função

Executa uma função repetidamente em intervalos de tempo

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes afirmações é verdadeira sobre o Node.js?

Node.js é um framework para desenvolvimento de front-end

Node.js é baseado no motor JavaScript V8 do Google

Node.js não suporta programação assíncrona

Node.js é usado exclusivamente para desenvolvimento de aplicativos móveis

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Node.js? ```javascript console.log(1); setTimeout(() => console.log(2), 0); console.log(3); ```

1 2 3

1 3 2

2 1 3

3 1 2

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?