Programming Quiz Channel
721 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
20%
In the <body> section
65%
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
23%
my_var
35%
_myvar
23%
Myvar
19%
my-var
Which of the following is NOT a JavaScript data type?
Anonymous Quiz
11%
Boolean
9%
Number
43%
Character
36%
Undefined
๐Ÿ‘2โค1๐Ÿ”ฅ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
9%
<check>
14%
<input type="check">
8%
<checkbox>
69%
<input type="checkbox">
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