ru
Feedback
Programming Quiz Channel

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

Больше
737
Подписчики
+324 часа
+87 дней
+2830 день
Архив постов
Which of the following is NOT a valid use of the tag in HTML?
Anonymous voting

How can you create a flexbox container in CSS?
Anonymous voting

JavaScript Task Remove all empty strings from the array. Difficulty: Average🤨
let arr = [1, '', 2, 3, '', 5];

How can you check if a variable is an array in JavaScript?
Anonymous voting

Find the error in the code. Difficulty: Average🤨
function processData(data) {
    let result = data.map(item => item.value);
    return result;
}

let inputData = null;

console.log(processData(inputData));

What does the placeholder attribute do in an field?
Anonymous voting

Which CSS property is used to add rounded corners to an element?
Anonymous voting

JavaScript Task Write a function isEven that takes a number as an argument and returns true if the number is even and false if it is odd. Difficulty: Easy😁
function isEven(num) {
    
}

console.log(isEven(4));  
console.log(isEven(7)); 
console.log(isEven(0));  
console.log(isEven(-2));

How many primitive data types are there in JavaScript?
Anonymous voting

How do you create a multi-line text input field in HTML?
Anonymous voting

Find the error in the code. Difficulty: Average🤨
let numbers = [1, 2, 3, 4, 5];

function sumArray(arr) {
    return arr.reduce((accumulator, current) => {
        return accumulator + current;
    }, 0);
}

console.log('Sum:', sumArray(numbers));

numbers = '1, 2, 3, 4, 5'; 
console.log('Sum:', sumArray(numbers));

How can you apply different styles to a child element when hovering over its parent in CSS?
Anonymous voting

JavaScript Task Write a function findMax(arr) that takes an array of numbers and returns the largest number in the array. Difficulty: Easy😁
function findMax(arr) {

}

console.log(findMax([3, 5, 7, 2, 8]));

Which of the following is true about let and var in JavaScript?
Anonymous voting

What will this code output to the console and why? Difficulty: Average🤨
function createAccumulator(initialValue) {
  let total = initialValue;

  return function(amount) {
    total += amount;
    return total;
  };
}

const accumulator = createAccumulator(10);

console.log(accumulator(5));  
console.log(accumulator(10)); 
console.log(accumulator(-5)); 

const anotherAccumulator = createAccumulator(100);
console.log(anotherAccumulator(50));

How do you create a comment in a CSS file?
Anonymous voting

What is the purpose of the declaration?
Anonymous voting

What will this code output to the console and why? Difficulty: Hard😤
function addToArray(arr, value) {
  arr.push(value);
  return arr;
}

const numbers = [1, 2, 3];
const result = addToArray(numbers, 4);
console.log(result);
console.log(numbers);

Which property would you use to animate a change from one set of CSS properties to another?
Anonymous voting

#css #flexbox #cheatsheet
#css #flexbox #cheatsheet

Programming Quiz Channel - Статистика и аналитика Telegram-канала @programming_quizz