Programming Quiz Channel
720 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
HTML Tip๐Ÿ’ก

You can add dark mode to your website with just one line of code.

#html #tips
๐Ÿ‘4โค1๐Ÿคฏ1
Find the error in the code.
Difficulty: Average๐Ÿคจ

def divide_numbers(a, b):
return a / b

result = divide_numbers(10, 0)
print(f"The result is: {result}")
How to write an IF statement in JavaScript?
Anonymous Quiz
8%
if i = 5
15%
if i == 5
72%
if (i == 5)
5%
if i == 5:
๐Ÿ‘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));
What is the correct file extension for Python files?
Anonymous Quiz
7%
.python
10%
.pyt
75%
.py
8%
.pt
Best colors for brands

#colors
๐Ÿ”ฅ3โค2๐Ÿ‘1
Which of the following elements is considered a global HTML structural element?
Anonymous Quiz
14%
<p>
63%
<header>
13%
<h1>
11%
<strong>
How do you write "Hello World" in an alert box in JavaScript?
Anonymous Quiz
14%
alertBox("Hello, world!")
16%
console("Hello, world!")
20%
print("Hello, world!")
50%
alert("Hello, world!")
How do you make each word in a text start with a capital letter in CSS?
Anonymous Quiz
38%
text-transform: capitalize;
18%
text: capitalize;
32%
text-style: capitalize;
12%
transform: capitalize;
Find the error in the code.
Difficulty: Easy๐Ÿ˜

number = 5
text = "Quantity: " + number

print(text)