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
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
23%
O(n)
41%
O(log n)
20%
O(1)
17%
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
Which OS algorithm may cause starvation?
Anonymous Quiz
15%
FCFS
35%
Round Robin
23%
FIFO
27%
Priority scheduling
Which HTTP status implies retry later?
Anonymous Quiz
9%
200
30%
429
27%
301
34%
404
โค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
Which data structure uses LIFO behavior ?
Anonymous Quiz
21%
Queue
9%
Tree
67%
Stack
4%
Graph
Which SQL clause sorts results?
Anonymous Quiz
18%
GROUP BY
6%
ARRANGE
39%
SORT BY
36%
ORDER BY
Starvation in operating system means:
Anonymous Quiz
19%
Deadlock situation
39%
Process never served
30%
Memory leak
13%
Low CPU
Which Automata has a stack memory?
Anonymous Quiz
24%
DFA
32%
NFA
40%
PDA
4%
TM