Search Header Logo

JavaScript Basics Quiz

Authored by Leandro Oliveira

Instructional Technology

10th Grade

DOK Level 1: Recall covered

Used 5+ times

JavaScript Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para criar uma função em JavaScript?

function myFunction {}

function myFunction() {}

function: myFunction() {}

myFunction function() {}

Tags

DOK Level 1: Recall

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes é a maneira correta de declarar um array em JavaScript?

var myArray = "1, 2, 3";

var myArray = [1, 2, 3];

var myArray = (1, 2, 3);

var myArray = {1, 2, 3};

Tags

DOK Level 1: Recall

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você acessa o primeiro elemento de um array chamado `myArray`?

myArray[0]

myArray[1]

myArray.first()

myArray.get(0)

Tags

DOK Level 1: Recall

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que o seguinte código imprimirá? console.log("Hello" + " " + "World");

HelloWorld

Hello World

Hello

World

Tags

DOK Level 1: Recall

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes é uma maneira correta de definir uma função com parâmetros em JavaScript?

function myFunction(param1, param2) {}

function myFunction(param1; param2) {}

function myFunction(param1 param2) {}

function myFunction(param1: param2) {}

Tags

DOK Level 1: Recall

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é o valor de retorno da seguinte função? function add(a, b) { return a + b; } console.log(add(2, 3));

2

3

5

undefined

Tags

DOK Level 1: Recall

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes afirmações é verdadeira sobre arrays em JavaScript?

Os arrays só podem conter números.

Os arrays podem conter diferentes tipos de dados.

Os arrays são imutáveis.

Os arrays não podem ser aninhados.

Tags

DOK Level 1: Recall

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?