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());Which one is not a legal variable name in Python?
Anonymous Quiz
23%
my_var
35%
_myvar
23%
Myvar
19%
my-var
How do you define a function in JavaScript?
Anonymous Quiz
63%
function myFunction() {}
18%
func myFunction() {}
16%
function: myFunction() {}
4%
define myFunction() {}
Which is the correct CSS syntax?
Anonymous Quiz
19%
body: color = black;
59%
body {color: black;}
11%
{body;color:black;}
11%
body: {color=black;}
Which of the following is NOT a JavaScript data type?
Anonymous Quiz
11%
Boolean
9%
Number
43%
Character
36%
Undefined
Find the error in the code.
Difficulty: Easy๐
Difficulty: Easy๐
function greet(name) {
console.log("Hello, " + name);
}
greet();๐2