wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Combine

Total questions: 114

Worksheet time: 58mins

Name
Class
Date
1.
What does HTML stand for?
a)
Hypertext Making Language
b)
Hyper Transfer Markup Language
c)
Hypertext Markup Language
d)
Hyper Transfer Making Language
2.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
3.
A <tag>
a)
Is used to divide sections
b)
Is not needed in HTML
c)
Tells the browser how to format our content
d)
Is part of the title line in HTML
4.
<h> is
a)
Header Tag
b)
Headline Tag
c)
Half of a tag
d)
Closing header tag
5.
</h> is
a)
Header Tag
b)
Headline Tag
c)
Half of a tag
d)
Closing header tag
6.
<p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
7.
An attribute is a; 
a)
Applies changes to everything
b)
Different options for each tab
c)
Allows for no changes to the site
d)
Gives structure and text
8.
Body tags are used;
a)
Used for only the header
b)
Used only for the paragraph
c)
element that wraps everything that is visible on the page.
d)
Not used in HTML
9.
<html>
a)
Gives you structure and text
b)
Not needed when creating HTML sites
c)
Goes after the <h1>
d)
Goes after the <body>
10.

Which is the proper way to write an h1 tag

a)

<h1>Hello</h1>

b)

<h1>"Hello

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

11.

Which of the following codes would create a horizontal line

a)

<br>

b)

<h1></h1>

c)

<hr>

d)

<p>

12.

You need a closing tag for an image without text

a)

True

b)

False

13.

src attribute in an image tag means what?

a)

Source of the image

b)

Name of the image

c)

Description of the image

d)

Not used with image tag

14.

Which list tag would you use for an ordered list

a)

<h1></h1>

b)

<ol></ol>

c)

<ul></ul>

d)

<a></a>

15.

Which of the following contains a nested list

a)

<ul>

<li>Apples</li>

<li>Cookies</li>

<li>Milk</li>

</ul>

b)

<ul>

<li>Apples</li>

<li>

Cookies

<ul>

<li>Chocolate Chip</li>

<li>Peanut Butter</li>

</ul>

</li>

<li>Milk</li>

</ul>

16.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
17.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
18.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
19.

Which is the correct way of defining an HTML document?

a)

<!DOCTYPE html>

b)

<!DOCTYPE HTML5>

c)

<!DOCTYPE html "PUBLIC">

d)

<DOCTYPE html>

20.

1.

What is the meaning of HTML?

a)

Hypertext Making Language

b)

Hightext Markup Language

c)

Hypertext Markup Language

d)

Hypertext Medium Language

21.

2.

The stylesheet is used to

a)

code the css page

b)

add css to notepad++

c)

link css to the html page

d)

link java script to the html page

22.

3.

Comments in coding is used to help

a)

the programmer

b)

the editor of the code

c)

anyone viewing the website

d)

the reader of the code

23.

4.

What is the proper way to code a website title using HTML

a)

title{

New Website}

b)

<title>New Website</title>

c)

.tile New Website

d)

<title>New Website<title>

24.

5.

An HTML document is saved with the ____ extension.

a)

.htl

b)

.html

c)

.hml

d)

.htnl

25.

6.

CSS stands for

a)

Cascade style sheets

b)

Color and style sheets

c)

Cascading style sheets

d)

None of the above

26.

7.

What is the difference between HTML and CSS?

a)

HTML provides the content, CSS provides the pictures

b)

HTML provides the structure & content, CSS provides the color / look of the web page

c)

HTML and CSS are the same thing

d)

None of the above

27.

8.

Name an element which doesn't have a closing tag.

a)

<p>

b)

<body>

c)

<head>

d)

<img>

28.

9.

What does the <div> tag do in HTML?

a)

Changes everything and makes it correct.

b)

Divides code in half.

c)

Creates different sections to organize the code.

d)

Creates a paragraph in body.

29.

10.

What is missing from this HTML skeleton?

<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<div></div>

b)

<head></head>

c)

<img></img>

d)

<p></p>

30.

Что покажет console.log

a)

{h: "there"}

b)

{g: "here"}

c)

{h: "there", g: "here"}

d)

null

31.

Что не является отдельным типом данных?

a)

NaN

b)

undefined

c)

null

d)

symbol

32.
a)

there', 'here'

b)

undefined, undefined

c)

Error, Error

d)

null, null

33.

Что покажет console.log?

a)

1, 2, 3

b)

undefined, undefined, undefined

c)

undefined, undefined, 3

d)

undefined, 2, undefined

34.

Что покажет console.log?

a)

1, 2, 3

b)

undefined, undefined, undefined

c)

undefined, undefined, 3

d)

1, undefined, undefined

35.

Переменная обявленная через let...

a)

не может быть изменена после объявления.

b)

может хранить сразу несколько значений.

c)

по умолчанию инициализируется значением undefined.

d)

должна быть инициализирована значением.

36.

Для приведения "MANGO" в нижний регистр используется метод,,,

a)

"Mango".lowerCase()

b)

"Mango".transform("lower-case")

c)

"Mango".makeLowerCase()

d)

"Mango".toLowerCase()

37.

Какое из этих значений приведется к true в булевом преобразовании?

a)

0

b)

undefined

c)

"false"

d)

false

38.

Выберите верную запись шаблонной строки с интерполяцией переменной age

a)

`Мне {age} лет!`

b)

'Мне ${age} лет!'

c)

`Мне ${age} лет!`

d)

`Мне #{age} лет!`

39.

Каким будет результат выражения? 0 || "Манго"

a)

0

b)

"Манго"

40.

В каком примере выполниться тело блока if?

a)

if ("") {...} else {...}

b)

if (false) {...} else {...}

c)

if ("ПолиРобоКар") {...}

else {...}

d)

if (null) {...} else {....}

41.

В каком примере выполнится тело блока else?

a)

if ("ПолиРобоКар") {...} else {...}

b)

if (null) {...} else {...}

c)

if (27) {...} else {....}

d)

if (true) {...} else {...}

42.

Что делает оператор break в теле цикла?

a)

Переводит цикл на следующую итерацию.

b)

Прерывает выполнение цикла.

c)

Прекращает выполнение всего скрипта.

d)

Прерывает выполнение текущей строки кода (инструкции)

43.

Выберите верное объявление коллекции names из трех элементов

a)

const names = ["Манго" - "Поли" - "Аякс"];

b)

const names = ("Манго", "Поли", "Аякс");

c)

const names = {"Манго", "Поли", "Аякс"};

d)

const names = ["Манго", "Поли", "Аякс"];

44.

Что покажет?

a)

NaN

b)

undefined

c)

true

d)

false

45.

Что покажет?

a)

3

b)

4

c)

["нам не", "страшен", "серый", "волк"]

d)

push() is not a function

46.

[7, 3, 8, 9, 2].slice(3)

a)

Новый массив [7, 3, 8]

b)

Исходный массива [7, 3, 8]

c)

Новый массив [8, 9, 2]

d)

Новый массив [9, 2]

47.

Результат выражения? "ПолиРобоКар" && "Манго"

a)

"ПолиРобоКар"

b)

"Манго"

48.

Результатом какого выражения будет значение "Манго"?

a)

"false" && "Манго" || null

b)

null || "false" || "Манго"

c)

null && "false" && "Манго"

d)

"Манго" && null || false

49.

Выберите синтаксически верную запись тернарного оператора

a)

условие & значение_1 ? значение_2

b)

условие ? значение_1 : значение_2

c)

условие : значение_1 ? значение_2

d)

условие ? значение_1 & значение_2

50.

["нам не", "страшен", "серый", "волк"].join(" ") Верный результат?

a)

"нам не страшен серый, волк"

b)

"нам не страшен серый волк"

c)

"нам не, страшен, серый, волк"

d)

"Нам не страшен серый волк"

51.

Если в теле функции нет оператора return, то она...

a)

не возвращает никакого значения

b)

возвращает null

c)

возвращает undefined

d)

возвращает пустую строку

52.

Ключи свойств это всегда...

a)

строка

b)

число

c)

буль

d)

боль

53.

let arr = [ 1, 2, 3]

Какой получить пустой массив?

a)

arr.length=0

b)

arr.deleteAll()

c)

Array(arr).empty()

d)

нет верного ответа

54.

Выберите верное обращение к свойству объекта:

a)

obj('key')

b)

obj.'key'

c)

obj['key']

d)

obj(key)

55.

Запрос study.finish вернул undefined это значит...

a)

у объекта study нет свойства finish

b)

такого объекта нет

c)

нет верного ответа, необходимо использовать оператор in

d)

а какой ответ верный?

56.

Метод объекта это...

a)

функция для работы только с текущим объектом

b)

любая функция

c)

ключ, значением которого является функция

d)

свойство, значением которого является функция

57.

Для перебора свойств (ключей или значений) объекта используется цикл

a)

for...out

b)

for...in

c)

for...off

d)

for...each

58.

Как получить список всех ключей объекта obj

a)

obj.keys

b)

obj.keys()

c)

Object.keys

d)

Object.keys(obj)

59.

this в стрелочных функция...

a)

всегда null

b)

всегда undefined

c)

отсутствует свой, используется внешний по месту создания ф-ии

d)

ссылается на объект, в контексте которого вызвали функцию

60.

Что возвращают методы setInterval() и setTimeout()?

a)

Строчный идентификатор созданного таймера

b)

Числовой идентификатор созданного таймера

c)

Ссылку на созданный таймер

d)

Функцию очистки таймера

61.

Что будет в консоли?

a)

A > B > C

b)

B > A > C

c)

A > C > B

d)

B > C > A

62.

Сколько раз в консоль выведется строка "Tick"

a)

1

b)

2

c)

3

d)

0

63.

Многопоточность и асинхронность -это одно и то же?

a)

True

b)

False

64.

Что такое промис?

a)

Объект, представляющий результат асинхронной операции

b)

Функция представляющая результат асинхронной операции

c)

Данные полученные в результате асинхронной операции

d)

Объект, представляющий результат синхронной операции

65.

Выберите исходное состояние промиса

a)

Settled

b)

Pending

c)

Wairing

d)

Fullfiled

66.

Когда говорят что промис исполнился (settled), то какие состояния подразумевают?

a)

Pending и Rejected

b)

Pending, Fulfilled, Rejected,

c)

Pending и Fullfilled

d)

Fulfilled и Rejected

67.

Какие параметры получает колбэк-функция executor?

a)

Никаких

b)

Только resolve

c)

resolve и reject

d)

Только reject

68.

Что делает Set?

a)

возвращает объект с сложными ключами

b)

возвращает новый объект с уникальными значениями

c)

возвращает функционально выражение

d)

ничего не возвращает, лишь вычисляет данные из hash выражений

69.

Что возвращает метод then()

a)

Данные

b)

Промис

c)

Ничего

d)

Ошибку

70.

Что будет в консоли?

a)

A > C > B

b)

A > B > C

c)

B > A > C

d)

C > B > A

71.

Что увидим в консоли?

a)

A > B > C > D

b)

A > D > C > B

c)

A > D > B > C

d)

A > B > D > C

72.

JS - это боль?

a)

Да, всегда.

b)

Да, иногда.

73.

Какой метод промиса позволяет выполнения код вне зависимости от того как выполнится промис

a)

resolve()

b)

catch()

c)

finally()

d)

then()

74.

Что увидим в консоли?

a)

A > B > C > D > E

b)

A > E > C > D

c)

A > E > D

d)

A > E > B > D

75.

Что будет в консоли?

a)

Строка "Whoops"

b)

Ошибка

c)

undefined

d)

Ничего

76.

Что будет консоли?

a)

10

b)

20

c)

undefined

d)

Error

77.

Что такое функции высшего порядка?

a)

возвращающая значения после мутации

b)

возвращающая неизменными аргументы приходящие в нее

c)

возвращающая другую функцию или принимающая другую функцию в качестве аргумента.

d)

возвращающая измененный итератор

78.

Что такое IIFE?

a)

это библиотека, позволяющая легко получать доступ к задержке передачи данных в запросе.

b)

это функция, которая вызывается или выполняется сразу же после создания или объявления.

c)

это тип, передачи данных в REST

d)

это переменная, внутреннего окружения

79.

Как проверить, является ли значение ложным?

a)

Boolean()

b)

нет верного ответа

c)

оператор "!!"

d)

console.error()

80.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
81.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
82.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
83.
Select the code below that uses CSS to configure a background color of #000000 for a web page.
a)
body { background-color: #000000; }
b)
body { bgcolor: #000000; }
c)
document { background­-page: #000000; }
d)
None of these
84.
Which is the correct way to format a Font Family for a paragraph?
a)
p { font-face: Arial; }
b)
p { family-font: Arial; }
c)
p { font-family: Arial; }
d)
p { font: Arial; }
85.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
86.
Which CSS code is incorrect?
a)
a {color: blue;}
b)
p {font-size: 10px;}
c)
body {background-color="red";}
d)
img {width: 100%;}
87.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
88.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
89.
Which CSS code centers text?
a)
p {align: center;}
b)
p {text-align: center;}
c)
p {align=center;}
d)
p {center;}
90.
Which CSS code centers text?
a)
p {align: center;}
b)
p {align=center;}
c)
p {text-align: center;}
d)
p {center;}
91.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

92.

To create a dotted border around the page

a)

border-style

b)

border-width

c)

border-color

d)

width

93.

Set the color of the border

a)

border-style

b)

border-width

c)

border-color

d)

width

94.

sets the element to one side of the page

a)

margin

b)

width

c)

float

d)

height

95.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

96.

What is the correct HTML for referring to an external style sheet?

a)

<style src="mystyle.css">

b)

<stylesheet>mystyle.css</stylesheet>

c)

<link rel="stylesheet" type="text/css" href="mystyle.css">

97.

Which is the correct CSS syntax?

a)

body {color: yellow;}

b)

body:color=yellow;

c)

{body:color= yellow;}

d)

{body;color: yellow;}

98.

Which one is the correct syntax for CSS?

a)

property {selector : value}

b)

value {property : selector}

c)

selector {value : property}

d)

selector { property : value}

99.
http://www.google.com is an example of a what?
a)
URL
b)
IP address
c)
Browser
d)
Application
100.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
101.
What does RGB stand for?
a)
Red, Green, & Blue
b)
this is not the right one
c)
Roger, George, & Ben
d)
Don't pick this one unless you are trying to fail!!
102.

A program that searches for and identifies items in a database that corresponds to keywords

a)

Algorithm

b)

Website

c)

Webpage

d)

Search Engine

103.

closely connected or appropriate to the matter at hand

a)

Relevant

b)

Trustworthy

c)

Irrelevant

d)

Dependable

104.

An identifier that allows multiple elements in an HTML document to be styled in the same way

a)

Algorithm

b)

CSS class

c)

Style Sheet

d)

CSS

105.

A precise sequence of instructions for processes that can be executed by a computer

a)

Rule Set

b)

CSS Class

c)

Algorithm

d)

HTML

106.

Able to be honest and truthful

a)

Relevant

b)

Trustworthy

c)

Irrelevant

d)

Suspicious

107.

A document that controls how a web page will appear.

a)

CSS class

b)

Style sheet

c)

HTML

d)

CSS

108.

A language that controls the way content on a website appears

a)

CSS

b)

HTML

c)

Javascript

d)

Pig Latin

109.

Color: rgb(255,255,255)

a)

Red

b)

Green

c)

Black

d)

White

110.

color: rgb(0,0,255)

a)

Red

b)

Green

c)

Blue

d)

Black

111.

color: rgb(0,255,0)

a)

Red

b)

Green

c)

Blue

d)

White

112.

color: rgb(0,0,0)

a)

Red

b)

Green

c)

White

d)

Black

113.

color: (255,0,0)

a)

Red

b)

Green

c)

Blue

d)

Black

114.

The ______ property makes an element "_____," meaning that the elements that come after it all flow around it.

a)

Border-radius

b)

Boder-style

c)

Margin

d)

Float