How many hours do you spend coding each week?
Anonymous Poll
32%
Less than 5 hours
26%
5-10 hours
16%
10-20 hours
16%
20-30 hours
10%
More than 30 hours
How to write an IF statement in JavaScript?
Anonymous Quiz
8%
if i = 5
15%
if i == 5
72%
if (i == 5)
5%
if i == 5:
👍1
An <iframe> is used to
Anonymous Quiz
38%
Display a video within a web page.
50%
Display a web page within a web page.
2%
Create a form for user input.
11%
Style text within a web page.
How do you display hyperlinks without an underline?
Anonymous Quiz
70%
a { text-decoration: none; }
16%
a { underline: none; }
7%
a { no-underline: true; }
7%
a { border: none; }
Find the error in the code.
Difficulty: Hard😤
Difficulty: Hard😤
function processArray(arr) {
let result = [];
arr.forEach(item => {
if (item != '') {
result.push(item);
} else if (typeof item === 'number') {
result.push(item * 2);
}
});
return result;
}
let data = [1, '', 2, 3, '', 5, null, undefined, 'hello'];
console.log(processArray(data));What is the correct file extension for Python files?
Anonymous Quiz
7%
.python
10%
.pyt
75%
.py
8%
.pt
Which of the following elements is considered a global HTML structural element?
Anonymous Quiz
14%
<p>
63%
<header>
13%
<h1>
11%
<strong>
How do you write "Hello World" in an alert box in JavaScript?
Anonymous Quiz
14%
alertBox("Hello, world!")
16%
console("Hello, world!")
20%
print("Hello, world!")
50%
alert("Hello, world!")
How do you make each word in a text start with a capital letter in CSS?
Anonymous Quiz
38%
text-transform: capitalize;
18%
text: capitalize;
32%
text-style: capitalize;
12%
transform: capitalize;
Find the error in the code.
Difficulty: Easy😁
Difficulty: Easy😁
number = 5
text = "Quantity: " + number
print(text)
What is the correct way to create a function in Python?
Anonymous Quiz
23%
function my_function():
27%
def my_function:
40%
def my_function():
10%
create function my_function():
What is the correct HTML element for playing audio files?
Anonymous Quiz
7%
<sound>
70%
<audio>
19%
<mp3>
4%
<video>
👍2🔥1👏1
What is the correct way to write a JavaScript array?
Anonymous Quiz
73%
var colors = ["red", "green", "blue"]
13%
var colors = "red", "green", "blue"
5%
var colors = (1:"red", 2:"green", 3:"blue")
9%
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")