Programming Quiz Channel
718 subscribers
81 photos
4 videos
1 file
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
Download Telegram
JavaScript Neat Tricks you should know
โค7๐Ÿ”ฅ1
What is the correct syntax for referring to an external script called "xxx.js"?
Anonymous Quiz
69%
<script src="xxx.js"></script>
19%
<script src="xxx.js">
7%
<script src=""></script>
5%
<script name="xxx.js">
Who is making the Web standards?
Anonymous Quiz
32%
Google
9%
Mozilla
49%
The World Wide Web Consortium
10%
Microsoft
๐Ÿคฃ4๐Ÿ‘2๐Ÿ˜2
Find the error in the code.
Difficulty: Easy๐Ÿ˜

number = 5
text = "Quantity: " + number

print(text)
๐Ÿ”ฅ3๐Ÿค”3๐Ÿ‘2
How do you add a background color for all <h1> elements?
Anonymous Quiz
60%
h1 {background-color:#FFFFFF;}
8%
all.h1 {background-color:#FFFFFF;}
14%
h1 background-color:#FFFFFF;
โคโ€๐Ÿ”ฅ5๐Ÿ”ฅ1
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.
โค3๐Ÿ‘1๐Ÿ”ฅ1
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๐Ÿ˜ค

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
3 rounding methods in JavaScript
๐Ÿ”ฅ2โค1๐Ÿ‘1
๐Ÿคฃ10๐Ÿ˜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๐Ÿ˜ค

for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}
โค6๐Ÿ”ฅ3๐Ÿ‘1
Channel name was changed to ยซProgramming Quiz Channelยป
Channel photo updated
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
In Python, what is the result of len("abc" * 3)?
Anonymous Quiz
22%
3
11%
6
60%
9
7%
12