en
Feedback
Programming Quiz Channel

Programming Quiz Channel

Open in 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

Show more
737
Subscribers
+324 hours
+87 days
+2830 days
Posts Archive
How can the code be modified to handle both successful and failed promises? Difficulty: Impossible๐Ÿ˜ˆ
const promises = [
  Promise.resolve(1),
  Promise.reject(new Error('Error'))
];

Promise.all(promises)
  .then(results => console.log(results))
  .catch(error => console.error(error));

What is the purpose of the "else" statement in JavaScript?
Anonymous voting

#skills
#skills

Which CSS property is used to control the transparency of an element?
Anonymous voting

Find the error in the code. The answer should be: 15 Difficulty: Average๐Ÿ˜
function sumArray(arr) {
    let sum = 0;
    arr.forEach(function(num) {
        sum =+ num;
    });
    return sum;
}

let numbers = [1, 2, 3, 4, 5];
console.log(sumArray(numbers));

What type of language is JavaScript?
Anonymous voting

#git #commands #cheatsheet
#git #commands #cheatsheet

What is the purpose of the HTML tag?
Anonymous voting

What will this code output? Spot the bug. Difficulty: Hard๐Ÿ˜ค
for (var i = 0; i < 5; i++) {
    setTimeout(function() {
        console.log(i);
    }, 1000);
}

Which HTML tag is used to create a numbered list?
Anonymous voting

Can negative values be allowed in padding property?
Anonymous voting

What will this code output? Difficulty: Average๐Ÿ˜
let x = 0.1 + 0.2;
let y = 0.3;

if (x === y) {
    console.log("Values are equal");
} else {
    console.log("Values are not equal");
}

Which HTML tag is used to define an unordered list?
Anonymous voting

What is React?
Anonymous voting

Find the error in the code. Difficulty: Easy๐Ÿ™‚
let user = {
    name: "John"
    age: 30,
    isAdmin: true
};

console.log("User's name is: " + user.name);

What is the correct JavaScript syntax to print output?
Anonymous voting

Which of the following keywords is not used to declare a variable in JavaScript?
Anonymous voting

How to rotate a div in CSS?
Anonymous voting

CSS stands for:
Anonymous voting

HTML stands for:
Anonymous voting