Which HTML tag is used to define an internal style sheet?
Anonymous Quiz
84%
<style>
11%
<css>
2%
<script>
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
5%
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
22%
O(n)
40%
O(log n)
21%
O(1)
16%
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
15%
FCFS
35%
Round Robin
23%
FIFO
27%
Priority scheduling
โค2
In Java, what is the default value for uninitialized int variable inside a class?
Anonymous Quiz
36%
0
36%
null
28%
undefined
0%
1
Starvation in operating system means:
Anonymous Quiz
19%
Deadlock situation
39%
Process never served
30%
Memory leak
13%
Low CPU
Which sorting algorithm has the worst case O(n^2)?
Anonymous Quiz
18%
Merge sort
18%
Quick sort
51%
Bubble sort
13%
Heap sort
