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
Find the error in the code.
Difficulty: Easy😁
Difficulty: Easy😁
function greet(name) {
console.log("Hello, " + name);
}
greet();👍2
How do you insert comments in Python code?
Anonymous Quiz
37%
// This is a comment
47%
# This is a comment
8%
/* This is a comment */
8%
<!-- This is a comment -->
What is the correct HTML for making a checkbox?
Anonymous Quiz
5%
<check>
15%
<input type="check">
8%
<checkbox>
71%
<input type="checkbox">