How do you add a background color for all <h1> elements?
Anonymous Quiz
18%
h1.all {background-color:#FFFFFF;}
60%
h1 {background-color:#FFFFFF;}
6%
all.h1 {background-color:#FFFFFF;}
15%
h1 background-color:#FFFFFF;
❤🔥5🔥1
Which HTML tag is used to define an internal style sheet?
Anonymous Quiz
84%
<style>
11%
<css>
2%
<noscript>
3%
<tag>
❤1
Find the error in the code.
Difficulty: Hard😤
Difficulty: Hard😤
function processArray(arr) {
let result = [];
arr.forEach(item => {
if (item != '') {
result.push(item);
} else if (typeof item === 'number') {
result.push(item * 2);
}
});
return result;
}
let data = [1, '', 2, 3, '', 5, null, undefined, 'hello'];
console.log(processArray(data));❤3👍1🔥1
Which CSS property controls the text size?
Anonymous Quiz
77%
font-size
9%
text-style
4%
font-style
9%
text-size
What will this code output? Spot the bug.
Difficulty: Hard😤
Difficulty: Hard😤
for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}❤6🔥3👍1
What is the time complexity of binary search on a sorted array?
Anonymous Quiz
20%
O(n)
42%
O(log n)
20%
O(1)
18%
O(n log n)
❤2
Which SQL keyword removes duplicate rows?
Anonymous Quiz
28%
UNIQUE
4%
CLEAN
52%
DISTINCT
16%
REMOVE
🥱1
Which OS algorithm may cause starvation?
Anonymous Quiz
16%
FCFS
35%
Round Robin
23%
FIFO
25%
Priority scheduling
❤2
In Java, what is the default value for uninitialized int variable inside a class?
Anonymous Quiz
39%
0
37%
null
24%
undefined
0%
1
Starvation in operating system means:
Anonymous Quiz
18%
Deadlock situation
36%
Process never served
33%
Memory leak
13%
Low CPU
