wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JAVA CSS Test

Total questions: 135

Worksheet time: 4hrs 29mins

Name
Class
Date
1.

Match the following

a)

any set of instructions that tells the hardware what to do and how to do it

1.

software

b)

a computer that serves up information to other computers on a network.

2.

server

c)

where your software, documents, and other files are stored.

3.

hard drive

d)

any part of your computer that has a physical structure, such as the keyboard or mouse.

4.

hardware

e)

a type of software that allows you to perform specific tasks.

5.

application/program

2.

Match the following

a)

electronic device that manipulates information, or data

1.

computer

b)

computers that are designed to be placed on a desk, and they're typically made up of a few different parts

2.

desktop

c)

battery-powered computers that are more portable than desktops

3.

laptop

d)

the most common type of personal computer, and it typically includes the Microsoft Windows operating system.

4.

PC

e)

made by one company (Apple), and they almost always use the Mac OS X operating system

5.

MAC

3.

Match the following

a)

displays images and text on the screen.

1.

monitor

b)

one of the main ways to communicate with a computer; inputs letters and numbers

2.

keyboard

c)

commonly known as a pointing device, it lets you point to objects on the screen, click on them, and move them.

3.

mouse

d)

used to print documents, photos, and anything else that appears on your screen

4.

printer

e)

allows you to copy a physical image or document and save it to your computer as a digital (computer-readable) image.

5.

scanner

4.

Match the following

a)

also called a trackpad—is a touch-sensitive pad that lets you control the pointer by making a drawing motion with your finger

1.

touchpad

b)

the computer's main circuit board

2.

motherboard

c)

also called a processor, is located inside the computer case on the motherboard

3.

CPU

d)

your system's short-term memory

4.

RAM

e)

a chip on the motherboard that is prerecorded with and permanently stores the set of instructions that the computer uses when you turn it on

5.

ROM

5.

Match the following

a)

the most important software that runs on a computer. It manages the computer's memory and processes, as well as all of its software and hardware.

1.

operating system

b)

A single digit number in base-2 and is the smallest unit of computer data

2.

bit

c)

A set of 8 bits

3.

byte

d)

A collection of data stored in one unit, identified by a filename

4.

file

e)

Used to organize files

5.

folder

6.

Match the following

a)

Data that is entered into your computer

1.

input

b)

Data generated by the computer

2.

output

c)

An external storage device capable of storing thousands of files

3.

USB drive

d)

let you hear sounds from the computer

4.

speakers

7.

CPU stands for

a)

Central Processing Unit

b)

Computer Processing Unit

c)

Computer Processor User

8.

RAM stands for

a)

Random Access Memory

b)

Read Access Memory

c)

Real Allowance Memory

9.

ROM stands for

a)

Random Only Memory

b)

Read Only Memory

c)

Really Over it Memory

10.

What is the study of computers and computing called?



(a)  

11.

What involves designing and implementing an algorithm that is run on a computing device?

a)

Decomposition

b)

Soft Skills

c)

Programming

d)

Pattern Recognition

12.

What is an IDE?

a)

A type of computer program

b)

A software used to program a computing device

c)

A programming language

d)

A problem-solving strategy

13.

What do we use to communicate instructions to a computing device?

a)

Programming Language

b)

Decomposition

c)

Problem Solving

d)

Programmers

14.

Who uses technology to solve problems?

a)

Computer Scientists

b)

Programmers

c)

IDE Developers

d)

Algorithm Designers

15.

What are personal attributes that enable someone to interact effectively with others?

a)

Computational Thinking

b)

Soft Skills

c)

Problem Solving

d)

Decomposition

16.

What involves expressing problems and their solutions in ways that a computer could execute?

a)

Computational Thinking

b)

IDE

c)

Algorithm

17.

What is the way by which solutions are developed to remove an obstacle from achieving an ultimate goal?

a)

Problem Solving

b)

Algorithm

c)

Programming

d)

Decomposition

18.

What involves breaking a problem down into simpler parts?

a)

Pattern Recognition

b)

Decomposition

c)

Algorithm

d)

Soft Skills

19.

What involves the ability to detect arrangements of possibly repeating elements?

a)

Computational Thinking

b)

Programming

c)

Pattern Recognition

d)

Problem Solving

20.

What involves expressing problems and their solutions in ways that a computer could execute?

a)

Algorithm

b)

Computer Program

c)

IDE

d)

Soft Skills

21.

What is a sequence or set of instructions in a programming language for a computer to execute?

a)

Algorithm

b)

Computer Program

c)

Decomposition

d)

Pattern Recognition

22.

What is Processing?

a)

A type of algorithm

b)

A programming language

c)

An IDE for creating graphical representations

d)

A problem-solving strategy

23.

What language does Processing use?

a)

Python

b)

Java

c)

C++

d)

JavaScript

24.

What is the purpose of an Integrated Development Environment (IDE)?

a)

To solve mathematical problems

b)

To create graphical representations

c)

To program a computing device

d)

To develop soft skills

25.

Which statement is true about Java?

a)

Java is a sequence-dependent programming language

b)

Java is a code dependent programming language

c)

Java is a platform-dependent programming language

d)

Java is a platform-independent programming language

26.

What is the extension of java code files?

a)

.txt

b)

.java

c)

.py

d)

.html

27.

What is the extension of compiled java classes?

a)

.class

b)

.java

c)

.js

d)

.code

28.

Which of these keywords is used to make a class?

a)

int

b)

class

c)

public

d)

main

29.

Java is short for "JavaScript".

a)

true

b)

false

30.

Which data type is used to create a variable that should store text?

a)

myString

b)

String

c)

Txt

d)

string

31.

The value of a string variable can be surrounded by single quotes.

a)

true

b)

false

32.

Which operator can be used to compare two values?

a)

><

b)

=

c)

==

d)

<>

33.

How do you call a method in Java?

a)

methodName;

b)

methodName[];

c)

methodName();

d)

(methodName);

34.

Which keyword is used to import a package from the Java API library?

a)

import

b)

lib

c)

getlib

d)

package

35.

Select the right format for ending tag:

a)

<\html>

b)

<html/>

c)

</html>

d)

<|html>

36.

Which is the correct line of code?

a)

<p></p>This is a paragraph

b)

This is a paragraph<p></p>

c)

<p>This is a paragraph</p>

d)

</p>This is a paragraph<p>

37.

What does HTML stand for?

a)

Hypertext Medium Language

b)

Hippo Tries Making Licorice

c)

Hypertext Markup Lingo

d)

Hypertext Markup Language

38.

The following tag will show a bulleted list

a)

<ul>

b)

<ol>

c)

<li>

d)

<list>

39.

What tag do you use to make a numbered list?

a)

<list>

b)

<ol>

c)

<li>

d)

<ul>

40.

TRUE OR FALSE: HTML is used to structure content on a web page.

a)

True

b)

False

41.

Jerry wants to insert a line break into his webpage. Which code should he use?

a)

<ul>

b)

<li>

c)

<br>

d)

<h1>

42.

Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines the main(largest) heading in a web document?

a)

<h3>Product</h3>

b)

<h5>Product</h5>

c)

<h1>Product</h1>

d)

<h6>Product</h6>

43.

A properly coded HTML tag will always be found between which two symbols?

a)

( )

b)

{ }

c)

[ ]

d)

< >

44.

Between which paired tags would the visible content of a web page be displayed? Another word, where should you type in ALL your HTML code in the Web Lab on code.org?

a)

<html></html>

b)

<head></head>

c)

<body></body>

d)

<title></title>

45.

Which one is the smallest heading?

a)

h1

b)

h2

c)

h4

d)

h6

46.

All HTML Tags are enclosed in _______

a)

# and #

b)


< and >

c)

? and !

d)


{ and }

47.

There are ____ levels of headings we can use in HTML.

a)

4

b)

5

c)

6

d)

7

48.

What is the first tag that you put in a html document?

a)

<head>

b)


<header>

c)


<DOCTYPE html>

d)

<!DOCTYPE html>

49.

Which of the following is the last tag in an html document?

a)

</end>

b)


</footer>

c)


</body>

d)

</html>

50.

The ____ tag creates a paragraph.

a)

<p>

b)

<par>

c)


<para>

d)


<pr>

51.

Which character is used to create an end or closing tag?

a)

*

b)

/

c)

<

d)

^

52.

Order the following headers from the BIGGEST to the SMALLEST.

a)

h1

b)

h2

c)

h3

d)

h4

e)

h5

1)
2)
3)
4)
5)
53.

The content of a webpage is the text, images and any other elements include between the body tags.

a)

True

b)

False

54.

HTML coding involves using ____________ to create webpages.

a)


elements

b)

symbols

c)

commands

d)


tags

55.

This is a picture of a ____.

a)

CSS Rule

b)

HTML Rule

c)

Tags

d)

Coding

56.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

57.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

58.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

59.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

60.

What color will this element be?

a)

Green

b)

Blue

c)

Red

d)

No color

61.

Looking at the picture below, based on those 3 important rules to remember, what will the color of the text be?

a)

Red

b)

Blue

c)

No color

d)

White

62.

The color this element will be________

a)

Blue

b)

Red

c)

Blue

d)

No color

63.

The tag #blue-text is written twice. Due to the "Order of Precedence" the text that will appear when you run the code will be what color?

a)

Red

b)

Blue

c)

Green

d)

Purple

64.

CSS is the...

a)

language for designing web pages

b)

longitudinal compass for directions

c)

way we send information to each computer

d)

way we set up each tag

65.

What is the purpose of HTML forms?

a)

HTML forms are used for playing video games

b)

HTML forms are designed for creating animations

c)

HTML forms are meant for sending emails

d)

The purpose of HTML forms is to collect user input data on a website.

66.

Explain the concept of version control and its importance in software development.

a)

Version control is crucial in software development for collaboration, tracking changes, reverting to previous versions, and maintaining a history of modifications.

b)

Version control is not necessary as developers can manually keep track of changes.

c)

Version control is primarily used for storing large files in software development.

d)

Version control is only useful for individual developers, not teams.

67.

How does Git help in managing different versions of a project?

a)

Git provides version control capabilities through features like branching, merging, reverting, and tracking changes.

b)

Git makes it difficult to track changes in a project

c)

Git randomly deletes project versions

d)

Git only allows one version of a project to be stored

68.

What is CSS and how is it used in web development?

a)

CSS is a tool used in web development to analyze website traffic.

b)

CSS is a styling language used in web development to control the visual presentation of a website.

c)

CSS is a software used in web development to manage server configurations.

d)

CSS is a programming language used in web development to create databases.

69.

Describe the role of simple selectors in CSS.

a)

Simple selectors in CSS are used to define complex styling rules.

b)

Simple selectors in CSS are used to target specific HTML elements based on their tag name, class, ID, or attributes.

c)

Simple selectors in CSS have no impact on the appearance of the webpage.

d)

Simple selectors in CSS are only applicable to inline elements.

70.

What are the different types of form elements in HTML?

a)

div

b)

section

c)

input, textarea, select, button, label, fieldset, legend, form

d)

span

71.

What is the command to initialize a Git repository in a folder?

a)

git init

b)

git start

c)

git create

d)

git begin

72.

How can you add changes to the staging area in Git?

a)

git checkout -b new-branch

b)

git add

c)

git push origin master

d)

git commit -m 'message'

73.

Explain the difference between classes and IDs in CSS.

a)

IDs can be used multiple times, while classes should be unique.

b)

Classes can be used multiple times, while IDs should be unique.

c)

Classes are only used for styling text, while IDs are used for styling images.

d)

Classes and IDs are interchangeable in CSS.

74.

What is the syntax for selecting all

elements in CSS?

a)

#p

b)

.p

c)

p{}

d)

p

75.

How can you style a specific

element using CSS?

a)

Use the 'class' attribute to target the specific

element in CSS

b)

Use the 'name' attribute to target the specific

element in CSS

c)

Use the 'href' attribute to target the specific

element in CSS

d)

Use the 'id' attribute to target the specific

element in CSS

76.

What is the purpose of the tag in HTML forms?

a)

To play audio files

b)

To display images

c)

To create an input field in HTML forms.

d)

To create tables

77.

What is the significance of the commit message in Git?

a)

The commit message in Git is automatically generated and cannot be edited

b)

The commit message in Git is used for storing images related to the changes made

c)

The commit message in Git is only for personal notes and not necessary for others to understand

d)

The commit message in Git is significant for providing a clear description of the changes made in the commit.

78.

How can you apply multiple CSS styles to an element?

a)

style='property1: value1; property2: value2; property3: value3;'

b)

style='property1: value1; property2: value2;'

c)

style='property1: value1; property3: value3;'

d)

style='property1: value1, property2: value2;'

79.

What is the default display property for

elements in CSS?

a)

flex

b)

grid

c)

block

d)

inline

80.

What it stands for HTML?

a)

Hyper Text Markup Language

b)

Hyper Text Meaning Language

c)

Hyphen Text Markup Language

d)

Hypen Text Meaning Language

81.

Which of the following options is the language for the front end developer

a)

HTML, CSS, PHP

b)

HTML, JS, Phyton

c)

HTML, CSS, JS

d)

CSS, JS, PHP

82.

Which of the following options is the Text Editor for programmers to compile program code, except

a)

Atom

b)

Wondershare

c)

Sublime

d)

Visual Studio Code

83.

Which one of the following options is the correct basic construction of HTML Structure?

a)

<html>

<title>

<head></head>

</title>

<body>

</body>

</html>

b)

<html>

<title>

<head></head>

</title>

<body>

</html>

c)

<html>

<head>

<title></title>

</head>

<body>

</body>

</html>

d)

<head>

<html>

<title></title>

</html>

<body>

</body>

</head>

84.

What <tag> we use to create the page title?

a)

<html></html>

b)

<head></head>

c)

<title></title>

d)

<body></body>

85.

What <tag> we use to create the content of web page?

a)

<html></html>

b)

<head></head>

c)

<title></title>

d)

<body></body>

86.

The Developers who designed the processing data from interface to server side is called as

a)

Front End Developer

b)

Back End Developer

87.

The Developers who designed the interface of page for user see is called as

a)

Front End Developer

b)

Back End Developer

88.

An HTML element is defined by a ____ some content, and ___ tag:

a)

Content, element

b)

Start,end

c)

Html,doctype

d)

Head,body

89.

HTML describes the ___of a Web page

a)

Structure

b)

Element

c)

Content

90.

The _____ declaration defines that this document is an HTML5 document

a)

<!DOCTYPE html>

b)

<DOCTYPE html>

c)

<DOCTYPE HTML/>

d)

</DOCTYPE HTML>

91.

The element defines a large heading

a)

<h>

b)

<h6>

c)

<h1>

92.

The ___element is the root element of an HTML page

a)

<head,>

b)

<html>

c)

<title>

93.

How do you end the tag of a html document?

a)

<html/>

b)

<html>

c)

</html>

94.

The visible part of the HTML document is between <body> and </body>.

a)

<body> </body>

b)

<html> and </html>.

c)

<head> and </head>.

95.

HTML stands for ?

a)

Hypertext Markup Language

b)

Hyperlink Markup Language

c)

Hypertext Mark Language

d)

Hyperfile Markup Language

96.

There are ____ types of tag.

a)

3

b)

2

c)

1

d)

4

97.

What will be the output for the following program?

<html>


<body>


<p>Hello SJPS</p>


</body>


</html>

a)

<Hello SJPS>

b)

Hello SJPS

c)

both are correct

98.

HTML tags are element names surrounded by __________.

a)

<angle brackets>

b)

(round brackets)

c)

[square brackets]

d)

(round brackets) and [square brackets]

99.

The first tag in a pair is the start tag, the second tag is the __________.

a)

new tag

b)

end tag

c)

last tag

d)

old tag

100.

The _______ element contains meta information about the document

a)

<title>

b)

<body>

c)

<h1>

d)

<head>

101.

The end tag is written like the start tag, but with a forward slash inserted before the tag name. Which is the following is an example of a correct end tag?

a)

<p>

b)

<p/>

c)

</p>

d)

</p/>

102.

The <p> element defines a ___________.

a)

title

b)

heading

c)

paragraph

d)

page content

103.

The _____ element defines a large heading

a)

<h2>

b)

<h1

c)

<h3>

d)

<h4>

104.

What is 'html' used for?

a)

to search websites

b)

to spellcheck web pages

c)

to create webpages

d)

to destroy viruses

105.
What does HTML stand for?
a)
hidden marked text login
b)
hyper text markup language
c)
height test made language
106.
Is the <h3> tag the largest heading tag?
a)
yes
b)
no
107.
Which tag creates a line break? 
a)
<br>
b)
<lb>
c)
<line break>
d)
<break>
108.
A group of industry professionals who joined a club to standardize and develop Internet standards:
a)
world wide web consortium
b)
w3schools
c)
debs who like webs
109.
important text
a)
<strong> </strong>
b)
<b> </b>
c)
<em> </em>
d)
<i> </i>
110.
emphasized text
a)
<emphasized> </emphasized>
b)
<b> </b>
c)
<em> </em>
d)
<i> </i>
111.
bold text
a)
<emphasized> </emphasized>
b)
<b> </b>
c)
<em> </em>
d)
<i> </i>
112.
italisized text
a)
<emphasized> </emphasized>
b)
<b> </b>
c)
<em> </em>
d)
<i> </i>
113.
table cell element
a)
<table> </table>
b)
<tr> </tr>
c)
<th> </th>
d)
<td> </td>
114.
Creates a list of items that are bulleted:
a)
<ul>
b)
<unordered list>
c)
<bulleted list>
d)
<bl>
115.
Creates a list of items that are numbered:
a)
<ol>
b)
<ordered list>
c)
<numbered list>
d)
<nl>
116.
<a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>
The URL to the new website is 'Visit our HTML tutorial'
a)
false
b)
true
117.
<a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>
The words that can be seen and clicked on are  'Visit our HTML tutorial'
a)
false
b)
true
118.
<img src="html5.gif" alt="HTML5 Icon" width="128" height="128" The alt = is link to the image
a)
false
b)
true
119.
<img src="html5.gif" alt="HTML5 Icon" width="128" height="128" The alt = are the words that load before the image and are read aloud by computers for the visually impares. 
a)
false
b)
true
120.
HTML5 doctype (the first line in your website)
a)
<!DOCTYPE html>
b)
<!DOCTYPE html5>
c)
<DOCTYPE html>
d)
<doctype html5>
121.
fine print at the bottom of the page, usually for copyright, contact info, or last date updated
a)
<footer>
b)
<fp>
c)
<small text>
d)
<@copy right>
122.
comments not read by computers, but left for people who will read the code
a)
<!--This is a comment.-->
b)
<<!--This is a comment.-->>
c)
<!!--This is a comment..-->
d)
<//This is a comment//>
123.
links to other pages or sites
a)
<nav>
b)
<link>
124.
title of page that is displayed in tabs and web browsers
a)
<title> </title>
b)
<TITLE> </TITLE>
125.
CSS
a)
cascading style sheets
b)
corrupt and sinister systems
c)
caffeine and sugar are super
d)
catatonic snake don't slither
126.
Every selector in CSS matches a _____ in HTML
a)
tag
b)
property
127.
Selectors in CSS hold ____________ and they have values.
a)
selectors
b)
properties
c)
values
d)
tags
128.
Properties in CSS are defined by their _____
a)
values
b)
actions
c)
tags
d)
elements
129.
You cannot see elements in the:
a)
header
b)
body
c)
footer
130.
You can see elements in the:
a)
header
b)
body
c)
footer
131.
opening tag:
a)
<p>
b)
</p>
132.
closing tag:
a)
<p>
b)
</p>
133.

The stylesheet is used to

a)

code the css page.

b)

link css to the html page.

c)

add css to notepad++

d)

link java script to the html page.

134.

Which one is the largest heading?

a)

h1

b)

h2

c)

h4

d)

h6

135.
WWW stands for?
a)
Wibble Wobble Wibble
b)
World Wide Web
c)
World Wide Wise
d)
Wonderful Willie Wonka