wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

WEBZEN MCQ

Total questions: 25

Worksheet time: 10mins

Name
Class
Date
1.

What is the correct way to add an image to a webpage using HTML?

a)

<image src="image.jpg">

b)

<img src="image.jpg">

c)

<image href="image.jpg">

d)

<img href="image.jpg">

2.

Which tag is used to define a hyperlink in HTML?

a)

<a>

b)

<link>

c)

<href>

d)

<hyperlink>

3.

Which attribute is used to specify the alternative text for an image in HTML?

a)

alt

b)

text

c)

src

d)

title

4.

Which tag is used to define a section in a webpage that contains navigation links?

a)

<nav>

b)

<section>

c)

<header>

d)

<links>

5.

What is the purpose of the <meta> tag in HTML?

a)

To define metadata about an HTML document

b)

To create a clickable link

c)

To insert a video

d)

To define a paragraph of text

6.

Which tag is used to create a dropdown list in HTML?

a)

<select>

b)

<list>

c)

<dropdown>

d)

<options>

7.

How can you add a background color to an HTML element?

a)

background-color: red;

b)

color: background red;

c)

bgcolor: red;

d)

color: red;

8.

Which tag is used to define a clickable button in a form in HTML?

a)

<input>

b)

<button>

c)

<submit>

d)

<clickable>

9.

What does CSS stand for?

a)

Cascading Style Sheets

b)

Creative Style Sheets

c)

Computer Style Sheets

d)

Colorful Style Sheets

10.

How do you select an element with id "myElement" in CSS?

a)

#myElement

b)

.myElement

c)

element.myElement

d)

id:myElement

11.

Which property is used to change the font size of text in CSS?

a)

font-size

b)

text-size

c)

font-style

d)

size

12.

How do you make text bold in CSS?

a)

font-weight: bold;

b)

bold: true;

c)

style: bold;

d)

text-weight: bold;

13.

What is the default value of the display property in CSS?

a)

block

b)

inline

c)

none

d)

inline-block

14.

How do you center an element horizontally in CSS?

a)

margin: auto;

b)

text-align: center;

c)

align: center;

d)

horizontal-align: center;

15.

What does the z-index property in CSS control?

a)

Element's position on the z-axis

b)

Element's visibility

c)

Element's size

d)

Element's opacity

16.

What will be the output of the following javascript code?

console.log(typeof NaN);

a)

number

b)

NaN

c)

undefined

d)

string

17.

Which of the following is a valid way to create an object for a class in JavaScript?

a)

var obj = {};

b)

var obj = new Object();

c)

var obj = Object.create({});

d)

var obj = {key: value};

18.

What will be the output of the following javascript code?

console.log(0.1 + 0.2 === 0.3);

a)

true

b)

false

19.

Which of the following statements about arrow functions in JavaScript is true?

a)

Arrow functions do not have their own `this` context.

b)

Arrow functions cannot have multiple parameters.

c)

Arrow functions always have a `return` statement.

d)

Arrow functions cannot be used as methods in objects.

20.

What does the `map()` method do in JavaScript?

a)

Modifies the original array

b)

Creates a new array with the results of calling a provided function on every element in the array

c)

Removes the first element from an array and returns it

d)

Returns the index of the first element in an array that satisfies a provided testing function

21.

What will be the output of the following code?

console.log(5 + '5');

a)

55

b)

"55"

c)

10

d)

"10"

22.

What is the purpose of the `splice()` method in JavaScript?

a)

Adds one or more elements to the beginning of an array.

b)

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

c)

Returns the first element that matches a specified condition.

d)

Returns a new array containing the results of calling a provided function on every element in the array

23.

Which of the following is true about the `let` keyword in JavaScript?

a)

Variables declared with `let` are hoisted to the top of their scope.

b)

Variables declared with `let` cannot be reassigned.

c)

Variables declared with `let` have block scope.

d)

Variables declared with `let` are scoped to the function in which they are declared.

24.

Which property is used to define the HTML content to an HTML element with a specific id?

a)

innerText

b)
  1. innerContent

c)
  1. elementText

d)
  1. innerHTML

25.

What is the difference between `==` and `===` in JavaScript?

a)

`==` compares the values of two variables, while `===` compares both the values and the types.

b)

`==` always returns true, while `===` returns false if the values are not equal.

c)

`==` performs a deep comparison of objects, while `===` only compares their references.

d)

`==` is used for assignment, while `===` is used for comparison.