What is the output of the following code:
let test;
console.log(test);
PPAR Week 01
Quiz
•
Computers
•
University
•
Hard
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
"👨👩👦👦"
12 questions
Arrays C++
Quiz
•
University
8 questions
Advanced Promises
Quiz
•
12th Grade - Professi...
10 questions
bài ktra LT 2
Quiz
•
University
10 questions
JS Quiz
Quiz
•
University
11 questions
Introdução à JavaScript
Quiz
•
University
10 questions
Apps Script Quiz - Day 1 Lesson
Quiz
•
University
13 questions
JS IF ELSE FOR LOOPS
Quiz
•
University
10 questions
Java Arrays
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade