Programming Quiz Channel – Telegram
Programming Quiz Channel
613 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
Where in an HTML document is the correct place to refer to an external style sheet?
Anonymous Quiz
4%
At the end of the document
19%
In the <body> section
66%
In the <head> section
11%
Before the <html> tag
Find errors in the code.
Difficulty: Average🤨

class Rectangle {
constructor(width, height) {
this.width = width;
this.height = height;
}

getArea() {
return width * height;
}
}

const rect = new Rectangle(5, 10);
console.log("Area:", rect.getArea());
Which one is not a legal variable name in Python?
Anonymous Quiz
24%
my_var
31%
_myvar
24%
Myvar
20%
my-var
Which of the following is NOT a JavaScript data type?
Anonymous Quiz
10%
Boolean
10%
Number
45%
Character
35%
Undefined
👍21🔥1
Find the error in the code.
Difficulty: Easy😁

function greet(name) {
console.log("Hello, " + name);
}

greet();
👍2
What is the correct HTML for making a checkbox?
Anonymous Quiz
5%
<check>
15%
<input type="check">
8%
<checkbox>
71%
<input type="checkbox">
HTML Tip💡

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

#html #tips
👍41🤯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
9%
if i = 5
13%
if i == 5
75%
if (i == 5)
4%
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));