Programming Quiz Channel
723 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
Find errors in the code.
Given an array of numbers. Remove numbers from it that have two or more zeros.
Difficulty: Hard๐Ÿ˜ค

let numbers = [102, 304, 500, 1002, 20, 404, 80, 7];

function hasTwoOrMoreZeros(num) {

return (num.toString().match(/0/g) && []).length > 2;
}

let filteredNumbers = numbers.filter(num => !hasTwoOrMoreZeros(num));

console.log(filteredNumbers);
Which statement is used to execute a function in JavaScript?
Anonymous Quiz
13%
call
22%
run
59%
function
6%
execute
Find error in the code.
Difficulty: Easy๐Ÿ˜

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

let result = addNumbers(5, '10');

console.log('ะ ะตะทัƒะปัŒั‚ะฐั‚: ' + result);
โค2๐Ÿ‘1๐Ÿคฉ1
Which character is used to indicate an end tag in HTML?
Anonymous Quiz
2%
^
2%
*
42%
/
53%
>
JavaScript Task
Given an array of numbers. Increase each number in the array by 10 percent.
Difficulty: Easy๐Ÿ˜

let numbers = [100, 200, 300, 400, 500];
โค1
Which of the following is the correct way to center a block element horizontally using margins?
Anonymous Quiz
11%
margin: 0;
51%
margin: 0 auto;
23%
margin: 0 50%;
14%
margin: auto 0;
Which HTML5 element represents a self-contained piece of content that could be distributed independently?
Anonymous Quiz
26%
<div>
20%
<section>
17%
<container>
37%
<article>
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 define an unordered list?
Anonymous Quiz
73%
<ul>
9%
<li>
5%
<ol>
14%
<dl>
How can you select the element with the id 'example' in CSS?
Anonymous Quiz
26%
.example
8%
example
5%
*example
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);