Object & Array in Javascript
Quiz
•
Professional Development
•
Professional Development
•
Medium
Mostafa Hazareh
Used 9+ times
FREE Resource
Enhance your content
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which object method is used?
Object.keys()
Object.values()
Object.create()
Object.assign()
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one is the correct result?
const person = {
name: 'mostafa',
email:'mostafa@me.com',
phone: 23456
}
console.log( Object.keys());
[name, email, phone]
['mostafa', 'email', phone]
[mostafa, mostafa@me.com, 23456]
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
which method is correct?
let person = {
name: 'katja',
email:'katja@me.com'
};
let personAdd = {
location: 'Espoo'
};
output: {name:'katja', email:'katja@me.com', location:'Espoo' }
Object.create()
object.keys()
Object.assign()
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
which method adds items to the end of an Array?
array.pop()
array.push()
array.shift()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which array method is used?
names.push()
names.pop()
names.shift()
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How remove 'Mona' and 'Kirsi' from the names list?
const names = ['Mostafa', 'Mona', 'Kirsi', 'Katja'];
names.push('Mona', 'Kirsi')
names.slice(1, 3)
names.unshift( 'Mona', 'Kirsi')
names.slice(2,2)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How add 'Mona' and 'Kirsi' in the middle of the names list?
const names = ['Mostafa', 'Jessi', 'John', 'Katja'];
names.slice(2, 2)
names.unshift('Mona', 'Kirsi')
names.splice(2, 0, 'Mona', 'Kirsi')
names.push('Mona', 'Kirsi')
8.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How remove 'Jessi' from the names list?
const names = ['Mostafa', 'Jessi', 'John', 'Katja'];
names.pop()
names.slice('Jessi')
names.slice(1, 2)
names.splice(1,1);
9.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How access to the car's model ?
const car = {
name: 'Nissan',
model: ' tiida',
year: 2009
};
console.log(model)
console.log('tiida');
console.log(car.model);
console.log('model');
Similar Resources on Wayground
13 questions
Python Quiz : Loop
Quiz
•
Professional Development
10 questions
Getting to Know Fairmont
Quiz
•
Professional Development
11 questions
Day 3 Quiz - Network Ports & Protocols
Quiz
•
Professional Development
8 questions
Teacher Induction 2021-2022
Quiz
•
Professional Development
10 questions
Knowledge Check #2: Altice USA Products, Services, and Devices
Quiz
•
Professional Development
11 questions
Online Reputation
Quiz
•
Professional Development
10 questions
Neuroscience Quiz 2
Quiz
•
Professional Development
8 questions
CASC Ghostbusters quiz
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade