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
How do you insert comments in Python code?
Anonymous Quiz
35%
// This is a comment
49%
# This is a comment
7%
/* This is a comment */
9%
<!-- This is a comment -->
What is the correct HTML for making a checkbox?
Anonymous Quiz
9%
<check>
14%
<input type="check">
8%
<checkbox>
69%
<input type="checkbox">
This media is not supported in your browser
VIEW IN TELEGRAM
โค2๐1๐จโ๐ป1
How do you make the text bold in CSS?
Anonymous Quiz
64%
font-weight: bold;
12%
font-bold: true;
17%
text-style: bold;
7%
text-weight: 800;
Find the error in the code.
Difficulty: Average๐คจ
Difficulty: Average๐คจ
def divide_numbers(a, b):
return a / b
result = divide_numbers(10, 0)
print(f"The result is: {result}")
How many hours do you spend coding each week?
Anonymous Poll
32%
Less than 5 hours
26%
5-10 hours
16%
10-20 hours
16%
20-30 hours
10%
More than 30 hours
How to write an IF statement in JavaScript?
Anonymous Quiz
8%
if i = 5
15%
if i == 5
72%
if (i == 5)
5%
if i == 5:
๐1
This media is not supported in your browser
VIEW IN TELEGRAM
๐2๐ฅ2๐1
An <iframe> is used to
Anonymous Quiz
38%
Display a video within a web page.
50%
Display a web page within a web page.
2%
Create a form for user input.
11%
Style text within a web page.
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; }