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")
Python Task
Write a program that asks the user to enter a number, then displays whether the number is even or odd.
Difficulty: Easy😁
Example of the program's output:
Write a program that asks the user to enter a number, then displays whether the number is even or odd.
Difficulty: Easy😁
Example of the program's output:
Enter a number: 7
The number 7 is odd.
Enter a number: 10
The number 10 is even.
👍2
👏1
Which of the following JavaScript features are used for handling asynchronous operations?
Anonymous Quiz
44%
Promises and Callbacks
13%
SetTimeout and Event Listeners
26%
Var and Let
18%
Functions and Loops
❤1