logo

Crowdly

Browser

Add to Chrome

WEB202_Web Development 2_24/25_T2_11.CCP

Looking for WEB202_Web Development 2_24/25_T2_11.CCP test answers and solutions? Browse our comprehensive collection of verified answers for WEB202_Web Development 2_24/25_T2_11.CCP at moodle.ncst.edu.bh.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Which of the following is NOT a key question to ask during the planning stage?

View this question
Why is breaking a big problem into smaller subproblems beneficial?

View this question
Context:

Changing style on click.

What happens after clicking a button with this code?

btn.addEventListener('click', function(e) {

e.target.style.background = 'blue';

});

]]>
View this question
Context:

Chaining map and filter.

Given:

const arr = [1,2,3,4];

const result = arr.filter(x => x % 2 === 0).map(x => x * 10);

What is result?

]]>
0%
0%
0%
0%
View this question
Context:

Object mutation through function parameter.

What will the console output?

function change(obj) { obj.value = 10; }

const obj = {value: 5};

change(obj);

console.log(obj.value);

]]>
View this question
Which of the following naming conventions is most appropriate for JavaScript variables?

View this question
Why is this function name not a good practice? 

function x() {

 return "Hello";

0%
0%
0%
0%
View this question
Context:

Reference behavior of objects.

Given:

const a = { value: 10 };

const b = a;

b.value = 20;

What is the value of a.value now?

]]>
View this question
Context:

Filtering an array.

Result of this code?

const nums = [1,2,3,4,5,6];

const even = nums.filter(x => x % 2 === 0);

console.log(even);

]]>
View this question

Context:

const profile = { name: "Sara", age: 30 };

const copy = profile;

Which of the following modifies both profile and copy?

0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.ncst.edu.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome