Programming Quiz Channel
724 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
The task is to write a palindrome function.
Difficulty: Hard๐Ÿ˜ค

isPalindrome("radar"); // true
isPalindrome("hello"); // false
๐Ÿ‘4๐Ÿ”ฅ1๐Ÿพ1
Find the error in the code.
Difficulty: Easy๐Ÿ˜

function add(a, b) {
return a + b;
}

const result = add(5);
console.log(result);
โคโ€๐Ÿ”ฅ1๐Ÿ‘1๐Ÿ‘1
Find the error in the code.
Difficulty: Hard๐Ÿ˜ค

async function fetchData() {
const response = await fetch('https://api.example.com/data');
const data = await response.json();
return data;
}

async function processData() {
const data = fetchData();
console.log(data);
}

processData();
Which HTML tag is used to define a list of key-value pairs?
Anonymous Quiz
32%
<list>
30%
<dl>
18%
<ul>
20%
<ol>
JavaScript Task
Write a double function that takes an array of numbers and returns a new array with each number multiplied by 2.
Difficulty: Average๐Ÿคจ

const numbers = [1, 2, 3, 4, 5];
const doubledNumbers = double(numbers);

console.log(doubledNumbers);
Which JavaScript method is used to create a new instance of a Date object?
Anonymous Quiz
17%
Date.create()
46%
new Date()
10%
Date()
Find the error in the code.
Difficulty: Average๐Ÿคจ

const person = {
name: "John",
greet: function() {
setTimeout(function() {
console.log(Hello, my name is ${this.name});
}, 1000);
}
};

person.greet();
Which CSS property is used to create space between elements on a page?
Anonymous Quiz
45%
margin
11%
border-spacing
28%
padding
15%
space
JavaScript Task
Write a greet function that takes a name and prints the message "Hello, [name]!".
Difficulty: Easy ๐Ÿ˜

greet("John");
greet("Alex");
Which HTML element is used to define a navigation section?
Anonymous Quiz
11%
<n>
8%
<navigate>
12%
<section>
69%
<nav>
โค3๐Ÿ”ฅ2๐Ÿ‘1
What will this code output?
Difficulty: Average๐Ÿคจ

const obj1 = { name: 'Alice' };
const obj2 = { name: 'Alice' };

if (obj1 === obj2) {
console.log("true");
} else {
console.log("false");
}
๐Ÿ‘2
Find the error in the code.
Difficulty: Average๐Ÿคจ

const numbers = [1, 2, 3, 4, 5];
const doubleNumbers = numbers.map(function(num) {
num *= 2;
});
console.log(doubleNumbers);
What does the typeof operator return for an array?
Anonymous Quiz
9%
list
34%
object
23%
array
33%
array-object
๐Ÿ‘2