PPAR Week 01

PPAR Week 01

University

12 Qs

quiz-placeholder

Similar activities

FEWD Review

FEWD Review

University

12 Qs

Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

CS 2 Vocab Quiz

CS 2 Vocab Quiz

9th Grade - University

12 Qs

FSWI - CH4 T1

FSWI - CH4 T1

KG - Professional Development

15 Qs

Preguntas sobre Algoritmos y JavaScript

Preguntas sobre Algoritmos y JavaScript

University

10 Qs

Javascript

Javascript

10th Grade - Professional Development

10 Qs

C# Cơ bản

C# Cơ bản

University

15 Qs

Java Arrays

Java Arrays

University

10 Qs

PPAR Week 01

PPAR Week 01

Assessment

Quiz

Computers

University

Hard

Created by

Team Informatica

Used 21+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

let test;

console.log(test);

undefined

null

Error

Nothing

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which keyword(s) apply to the const keyword?

Block scope

Global scope

Function scope

Immutable

Mutable

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What are valid ways to create a function in JavaScript?

function a(){ console.log("a");

}

const b = _ => console.log("b");

let c = function() { console.log("c");

}

let d => { console.log("d")

}

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following statements are true?

1 == "1"

1 === "1"

1 == 1

1 === 1

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What are valid ways to create objects in JavaScript?

const a = {

name: "test"

};

function B(){

this.name = "test";

}

const b = new B();

class C{

name = "test";

}

const c = new C();

class D {

public:

name = "test";

}

const d = new D();

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What are the correct ways of looping through an array in JavaScript?

arr.forEach(e => console.log(e));

for(const e of arr){

console.log(e);

}

for(let i = 0;i < arr.length;i++){

console.log(arr[i]);

}

for(const e in arr){

console.log(e);

}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code snippet?

[..."👨‍👩‍👦‍👦"]

['👨', '‍', '👩', '‍', '👦', '‍', '👦']

["👨‍👩‍👦‍👦"]

Error

"👨‍👩‍👦‍👦"

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?