JavaScript Basics Quiz

JavaScript Basics Quiz

10th Grade

15 Qs

quiz-placeholder

Similar activities

IT Dasar

IT Dasar

1st - 12th Grade

15 Qs

1_NEM_24_AV1_2T_Pensamento Computacional_JS

1_NEM_24_AV1_2T_Pensamento Computacional_JS

10th Grade

18 Qs

Fun with Numpy

Fun with Numpy

9th - 12th Grade

10 Qs

Quiz sobre Introdução ao Arduino

Quiz sobre Introdução ao Arduino

7th Grade - University

15 Qs

Yellow Belt Level 4

Yellow Belt Level 4

9th - 12th Grade

10 Qs

Quiz de Programação no Scratch e p5.js

Quiz de Programação no Scratch e p5.js

10th Grade - University

10 Qs

AV2 PC 1B

AV2 PC 1B

10th Grade

10 Qs

Sistemas Embarcados I

Sistemas Embarcados I

10th Grade

15 Qs

JavaScript Basics Quiz

JavaScript Basics Quiz

Assessment

Quiz

Instructional Technology

10th Grade

Hard

DOK Level 1: Recall

Standards-aligned

Created by

Leandro Oliveira

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?