Programming Quiz Channel
Відкрити в Telegram
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
Показати більше804
Підписники
Немає даних24 години
+37 днів
+1230 днів
Архів дописів
What is a correct syntax to output "Hello World" in Python?
Find the error in the code.
Difficulty: Average😐
numbers = [1, 2, 3, 4, 5]
total = 0
for number in numbers:
total += number
print("The total is: " + total)How can you ensure that an element always stays at the bottom of its parent container?
What does the push() method do for an array in JavaScript?
What is the correct way to create a variable with the value of 5 in Python?
Find the error in the code.
The answer should be: 0, 1
Difficulty: Average😐
const createCounter = () => {
let count = 0;
return () => {
console.log(count++);
};
};
const counter1 = createCounter();
const counter2 = createCounter();
counter1();
counter2();What programming language are you interested in for your next test?
What will this code output to the console?
Difficulty: Easy 😁
function add(a, b) {
return a * b;
}
const result = add(5,'2');
console.log(result);How can you select the element with the id 'example' in CSS?
What is true about a variable declared with "const" in JavaScript?
What will this code output? Spot the bug.
Difficulty: Hard😤
for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}Which HTML5 element represents a self-contained piece of content that could be distributed independently?
