uz
Feedback
Programming Quiz Channel

Programming Quiz Channel

Kanalga Telegram’da o‘tish

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

Ko'proq ko'rsatish
737
Obunachilar
+324 soatlar
+87 kunlar
+2830 kunlar
Postlar arxiv
The task is to write a palindrome function. Difficulty: Hard😤
isPalindrome("radar"); // true
isPalindrome("hello"); // false

What does the :nth-child() pseudo-class do in CSS?
Anonymous voting

Best colors for brands #colors
+4
Best colors for brands #colors

What is the correct way to create a hyperlink in HTML?
Anonymous voting

Find the error in the code. Difficulty: Average😐
const data = [1, 2, 3, 4, 5];

function getEvenNumbers(arr) {
  return arr.filter(num => num % 2 = 0);
}

console.log(getEvenNumbers(data));

Which of the following is NOT a valid JavaScript variable name?
Anonymous voting

#cheatsheet
#cheatsheet

Which statement is used to execute a function in JavaScript?
Anonymous voting

Find the error in the code. Difficulty: Easy😁
function greet(name) {
  console.log("Hello, " + name);
}

greet();

What does HTML
tag represent?
Anonymous voting

#JavaScript #methods #cheatsheet
#JavaScript #methods #cheatsheet

Which property is used to change the text color in CSS?
Anonymous voting

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 is the main difference between the "==" and "===" operators in JavaScript?
Anonymous voting

#html #status
#html #status

How can you select all the elements with class "example" in CSS?
Anonymous voting

TEST Write a calculator in JavaScript with minimal code Difficulty: Easy🙂
function calculate(expression) {
    try {
        let result = eval(expression);
        if (isNaN(result)) {
            throw new Error("Invalid expression");
        }
        return result;
    } catch (e) {
        return "Error: " + e.message;
    }
}

let userInput = prompt("Enter an arithmetic expression (for example, 2 + 2):");

if (userInput !== null) {
    console.log("Result:", calculate(userInput));
}

Which HTML tag is used to create a horizontal line?
Anonymous voting

#html #cheatsheet
#html #cheatsheet

Which CSS property is used to make text bold?
Anonymous voting