What does the push() method do for an array in JavaScript?
Anonymous Quiz
3%
Retrieves the last element
15%
Removes the last element
30%
Adds one or more elements to the beginning
52%
Adds one or more elements to the end
🔥1
Which tag is used to define an HTML table header?
Anonymous Quiz
33%
<header>
45%
<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
81%
print("Hello World")
6%
echo "Hello World"
10%
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">
25%
<a href="url" target="_new">
19%
<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
19%
In the <body> section
66%
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
24%
my_var
31%
_myvar
24%
Myvar
20%
my-var
How do you define a function in JavaScript?
Anonymous Quiz
64%
function myFunction() {}
16%
func myFunction() {}
16%
function: myFunction() {}
4%
define myFunction() {}
Which is the correct CSS syntax?
Anonymous Quiz
19%
body: color = black;
60%
body {color: black;}
10%
{body;color:black;}
12%
body: {color=black;}
Which of the following is NOT a JavaScript data type?
Anonymous Quiz
10%
Boolean
10%
Number
45%
Character
35%
Undefined