CPD Quiz

CPD Quiz

3rd Grade

6 Qs

quiz-placeholder

Similar activities

How well do I Know My Flow WiFi

How well do I Know My Flow WiFi

1st - 11th Grade

10 Qs

MINT Quizizz Breakout Room Review for New Teachers

MINT Quizizz Breakout Room Review for New Teachers

KG - 12th Grade

10 Qs

REFRESHMENT NOS 2021 - H1

REFRESHMENT NOS 2021 - H1

1st - 5th Grade

10 Qs

M1 - Bài 4 - Array (Bài tập cuối buổi)

M1 - Bài 4 - Array (Bài tập cuối buổi)

1st - 3rd Grade

11 Qs

ES6 and babel on automation test

ES6 and babel on automation test

KG - 5th Grade

10 Qs

XBOX Modding

XBOX Modding

KG - Professional Development

11 Qs

BENGKEL PENYEDIAAN RANCANGAN PERBELANJAAN 2023

BENGKEL PENYEDIAAN RANCANGAN PERBELANJAAN 2023

KG - Professional Development

10 Qs

JS-3

JS-3

KG - 3rd Grade

10 Qs

CPD Quiz

CPD Quiz

Assessment

Quiz

Professional Development

3rd Grade

Hard

Created by

Parameswaran Sajeenthiran

Used 5+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

const obj1 = {Name: "Hello", Age: 16};

const obj2 = {Name: "Hello", Age: 16};

console.log(obj1 === obj2);

true

false

undefined

None of the above

Answer explanation

The strict equality operator compares objects by their references so even though the contents of both objects are the same, their references don’t match resulting in false.

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

function test(...args) {

console.log(typeof args);

}

test(12);

NaN

Object

Array

Number

Answer explanation

The …args parameter allows us to collect all remaining arguments into an array, and in Javascript typeof an array is an object.

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The process in which an object or data structure is translated into a format suitable for transferral over a network, or storage is called?

Object Serialization

Object Encapsualization

Object Inheritace

None of the Above

Answer explanation

Object Serialization is the process in which an object or data structure is translated into a format suitable for transferral over a network, or storage.

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What will be the output of the following code snippet?

function solve(arr, rotations){

if(rotations == 0) return arr;

for(let i = 0; i < rotations; i++){

let element = arr.pop();

arr.unshift(element);

}

return arr; }

console.log( solve([44, 1, 22, 111], 5));

[ 111, 4 ,1, 22]

[ 44 ,1 ,22 ,111]

[1,2,11, 4]

[1,2,11,4]

Answer explanation

Wrong Answer

The above code snippets rotate an array to its right by some specified number of times(here 5).

5.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

function factorial (n){

if (n==0){

return 1;

}

else {

return (n * factorial(n-1));

}

console.log(factorial(3))

3

6

0

12

Answer explanation

using recursion calculates the factorial of 3 (3!)= 1*2*3=6

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is a dynamic data structure ?

stack

queue

Linked List

All of the Above