What programming language are you interested in for your next test?
Anonymous Poll
40%
Python
16%
Java
7%
C++
24%
PHP
13%
Other
Find the error in the code.
The answer should be: 0, 1
Difficulty: Average๐
The answer should be: 0, 1
Difficulty: Average๐
const createCounter = () => {
let count = 0;
return () => {
console.log(count++);
};
};
const counter1 = createCounter();
const counter2 = createCounter();
counter1();
counter2();What is the correct way to create a variable with the value of 5 in Python?
Anonymous Quiz
35%
int x = 5
40%
x = 5
25%
let x = 5
0%
5 = x
What does the push() method do for an array in JavaScript?
Anonymous Quiz
6%
Retrieves the last element
15%
Removes the last element
29%
Adds one or more elements to the beginning
50%
Adds one or more elements to the end
๐ฅ1
Which tag is used to define an HTML table header?
Anonymous Quiz
34%
<header>
44%
<th>
18%
<head>
4%
<tr>
How can you ensure that an element always stays at the bottom of its parent container?
Anonymous Quiz
38%
position: fixed; bottom: 0;
15%
position: sticky; bottom: 0;
44%
position: absolute; bottom: 0;
3%
position: relative; bottom: 0;
Find the error in the code.
Difficulty: Average๐
Difficulty: Average๐
numbers = [1, 2, 3, 4, 5]
total = 0
for number in numbers:
total += number
print("The total is: " + total)
What is a correct syntax to output "Hello World" in Python?
Anonymous Quiz
80%
print("Hello World")
5%
echo "Hello World"
11%
console.log("Hello World")
4%
printf("Hello World")
โค1๐ฅ1
How can you open a link in a new tab/browser window?
Anonymous Quiz
2%
<a href="url" target="_self">
54%
<a href="url" target="_blank">
24%
<a href="url" target="_new">
20%
<a href="url" target="_window">
โค2
Preparing for an interview? Check out all the key questions right here!
Programming Quiz Channel pinned ยซPreparing for an interview? Check out all the key questions right here!ยป
Where in an HTML document is the correct place to refer to an external style sheet?
Anonymous Quiz
4%
At the end of the document
20%
In the <body> section
65%
In the <head> section
11%
Before the <html> tag
Find errors in the code.
Difficulty: Average๐คจ
Difficulty: Average๐คจ
class Rectangle {
constructor(width, height) {
this.width = width;
this.height = height;
}
getArea() {
return width * height;
}
}
const rect = new Rectangle(5, 10);
console.log("Area:", rect.getArea());