wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Internship Training Quiz

Total questions: 51

Worksheet time: 26mins

Name
Class
Date
1.

What does HTML stand for?

Next ❯


a)

Home Tool Markup Language

b)

Hyper Text Markup Language

c)

Hyperlinks and Text Markup Language

d)

Hyper Text Machine

Language

2.

Who is making the Web standards?

Next ❯


a)

Microsoft

b)

Mozilla

c)

The World Wide Web Consortium

d)

Google

3.

What does CSS stand for?

Next ❯


a)

Creative Style Systems

b)

Colorful Style Sheets

c)

Cascading Style Sheets

d)

Computer Style Sheets

4.

Which of the following is a JavaScript framework?

Next ❯


a)

XML

b)

React

c)

HTML

d)

CSS

5.

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

Next ❯


a)

To display images

b)

To create a footer for the page

c)

To define the main content of the page

d)

To include metadata and links to scripts and styles

6.

Which of the following is a popular CSS preprocessor?

Next ❯


a)

JavaScript

b)

Sass

c)

PHP

d)

HTML5

7.

What is the main purpose of JavaScript?

Next ❯


a)

To style web pages

b)

To structure web content

c)

To add interactivity to web pages

d)

To manage databases

8.

Which HTML element is used to define an unordered list?

Next ❯


a)

<li>

b)

<list>

c)

<ul>

d)

<ol>

9.

What is the correct HTML element for inserting a line break?

Next ❯


a)

<lb>

b)

<break>

c)

<br>

d)

<linebreak>

10.

Which CSS property is used to change the text color of an element?

Next ❯


a)

font-color

b)

background-color

c)

color

d)

text-color

11.

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

Next ❯


a)

To include scripts

b)

To define the main content of the page

c)

To set the title of the page

d)

To include metadata

12.

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

Next ❯


a)

To define the main content of the page

b)

To set the title of the page displayed in the browser tab

c)

To include scripts

d)

To create a footer for the page

13.

Which of the following is a popular JavaScript library for building user interfaces?

Next ❯


a)

Angular

b)

Bootstrap

c)

Vue.js

d)

jQuery

14.

What does the <img> tag require to display an image?

Next ❯


a)

src attribute

b)

href attribute

c)

alt attribute

d)

title attribute

15.

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

Next ❯


a)

To define a section in a document

b)

To include images

c)

To set the title of the page

d)

To create a hyperlink

16.

Which of the following is a valid way to include a JavaScript file in an HTML document?

Next ❯


a)

<script src='file.js'></script>

b)

<js src='file.js'></js>

c)

<link href='file.js' rel='script'>

d)

<import src='file.js'>

17.

What does the <footer> tag represent in HTML?

Next ❯


a)

The main content of the page

b)

The navigation links

c)

The bottom section of a page, typically containing copyright and contact information

d)

The header of the page

18.

What is the function of the <link> tag in HTML?

Next ❯


a)

To include JavaScript files

b)

To link to external stylesheets

c)

To create hyperlinks

d)

To define the main content of the page

19.

Which HTML element is used to define a table?

Next ❯


a)

<tbody>

b)

<tab>

c)

<tr>

d)

<table>

20.

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

Next ❯


a)

To create a navigation menu

b)

To define the main content of the page

c)

To provide metadata about the HTML document

d)

To include external scripts

21.

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

Next ❯


a)

To set the title of the page

b)

To define the main content of the page

c)

To include CSS styles for the document

d)

To create a navigation menu

22.

Which HTML element is used to define a form?

Next ❯


a)

<submit>

b)

<input>

c)

<form>

d)

<fieldset>

23.

What is the function of the <script> tag in HTML?

Next ❯


a)

To create hyperlinks

b)

To define the main content of the page

c)

To include CSS styles

d)

To include JavaScript code

24.

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

Next ❯


a)

To set the title of the page

b)

To include external scripts

c)

To define the main content of the page

d)

To create a navigation menu

25.

Which HTML element is used to define a section of a document?

Next ❯


a)

<section>

b)

<div>

c)

<article>

d)

<header>

26.

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

Next ❯


a)

To include metadata

b)

To define the main content of the page

c)

To display images

d)

To create a drawing area

27.

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

Next ❯


a)

To set the title of the page

b)

To define a thematic grouping of content

c)

To create a footer for the page

d)

To include external stylesheets

28.

Which HTML element is used to define a hyperlink?

Next ❯


a)

<url>

b)

<href>

c)

<a>

d)

<link>

29.

What is the function of the <aside> tag in HTML?

Next ❯


a)

To include images

b)

To define content that is related to the main content

c)

To set the title of the page

d)

To create a navigation menu

30.

Which of the following is a valid CSS selector?

Next ❯


a)

.className

b)

#idName

c)

elementName

d)

All of the above

31.

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

Next ❯


a)

To represent the footer of a document or section

b)

To include external scripts

c)

To create a navigation menu

d)

To define the main content of the page

32.

Which of the following is a method to apply CSS styles to an HTML document?

Next ❯


a)

Inline styles

b)

Internal stylesheets

c)

External stylesheets

d)

All of the above

33.

Choose the correct HTML element for the largest heading:

Next ❯


a)

<h1>

b)

<h6>

c)

<heading>

d)

<head>

34.

What is the correct HTML for adding a background color?

Next ❯


a)

<background>yellow</background>

b)

<body bg="yellow">

c)

<body style="background-color:yellow";>

Next ❯


d)

none

36.

Which character is used to indicate an end tag?

Next ❯


a)

*

b)

^

c)

/

d)

<

37.

How can you open a link in a new tab/browser window?

Next ❯


a)

<a href="url" new>

b)

<a href="url" target="_blank">

c)

<a href="url" target="new">

d)

none

38.

What is the correct HTML for making a text input field?

Next ❯


a)

<textfield>

b)

<textinput type="text">

c)

<input type="text">

d)

<input type="textfield">

39.

What is the correct HTML for inserting an image?

Next ❯


a)

<img alt="MyImage">image.gif</img>

b)

<img src="image.gif" alt="MyImage">

c)

<image src="image.gif" alt="MyImage">

d)

<img href="image.gif" alt="MyImage">

40.

How do you write "Hello World" in an alert box?

Next ❯


a)

msg("Hello World");

b)

alertBox("Hello World");

c)

alert("Hello World");

d)

msgBox("Hello World");

41.

How do you create a function in JavaScript?

Next ❯


a)

function:myFunction()

b)

function myFunction()

c)

function = myFunction()

d)

none

42.

How do you call a function named "myFunction"?

Next ❯


a)

call function

b)

myFunction()

c)

call myFunction()

d)

none

43.

How to write an IF statement for executing some code if "i" is NOT equal to 5?

Next ❯


a)

if i =! 5

b)

thenif i <> 5

c)

if (i <> 5)

d)

if (i != 5)

44.

How does a WHILE loop start?

Next ❯


a)

while i = 1 to 10

b)

while (i <= 10)

c)

while (i <= 10; i++)

d)

botha &b

45.

What is the correct way to write a JavaScript array?

Next ❯


a)

var colors = (1:"red", 2:"green", 3:"blue")

b)

var colors = ["red", "green", "blue"]

c)

var colors = "red", "green", "blue"

d)

var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")

46.

JavaScript is the same as Java.

Next ❯


a)

False

b)

True

47.

How do you declare a JavaScript variable?

Next ❯


a)

v carName;

b)

var carName;

c)

variable carName;

48.

Which operator is used to assign a value to a variable?

Next ❯


a)

*

b)

-

c)

=

d)

x

49.

Is JavaScript case-sensitive?

Next ❯


a)

Yes

b)

No

50.

How do you display hyperlinks without an underline?

Next ❯


a)

a {text-decoration:none;}

b)

a {underline:none;}

c)

a {text-decoration:no-underline;}

d)

a {decoration:no-underline;}

51.

How do you display a border like this:

The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?

Next ❯


a)

border-width:10px 5px 20px 1px;

b)

border-width:10px 1px 5px 20px;

c)

border-width:5px 20px 10px 1px;

d)

border-width:10px 20px 5px 1px;