Programming Quiz Channel
Відкрити в Telegram
Programming quizzes and knowledge tests Short quizzes on programming, logic and computer science. Test and improve your coding knowledge. Join 👉 https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist
Показати більше781
Підписники
-124 години
+27 днів
+1830 день
Архів дописів
In Java, what is the default value for uninitialized int variable inside a class?
What is the time complexity of binary search on a sorted array?
What will this code output? Spot the bug.
Difficulty: Hard😤
for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}Find the error in the code.
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));Which HTML tag is used to define an internal style sheet?
Event delegation in Javascript!!
Commonly used for handling clicks on dynamically added elements, managing events for a large number of similar elements efficiently, and simplifying event management in complex user interfaces.
Find the error in the code.
Difficulty: Easy😁
number = 5
text = "Quantity: " + number
print(text)