wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Principles of Coding Mock

Total questions: 90

Worksheet time: 2hrs 30mins

Name
Class
Date
1.

Which one of the following best describes iteration in flow control?

a)

Executing code for a defined set of conditions.

b)

Executing code for a defined number of repetitions.

c)

Executing blocks of code only once.

d)

Executing code based on user input.

2.
In programming, what is iteration?
a)
The repetition of steps within a program
b)
The order in which instructions are carried out
c)
A decision point in a program
d)
Testing a program to make sure it works
3.

Which data type would be best to hold "Hello World"

a)

Integer

b)

Float

c)

String

d)

Character

4.
A name location in the computer's memory that can store a value is referred to as a
a)
variable
b)
string
c)
operator
d)
method
5.
Order of events, commands carried by a computer exactly as they are written to run properly.
a)
Sequence
b)
Bugs
c)
Syntax
d)
Debugging
6.
Repeating section of code to simplify a solution
a)
Code
b)
Loops
c)
Program
d)
Bugs
7.
Which one of the following is an example of an algorithm?
a)
To patch operating systems.
b)
To run batch files.
c)
To ‘ping’ remote networks.
d)
To sort data alphabetically.
8.
Why is branching used in coding?
a)
To make a decision.
b)
To repeat a task.
c)
To complete a loop.
d)
To return a value.
9.
Which one of the following is an example of an algorithm?
a)
To patch operating systems.
b)
To run batch files.
c)
To ‘ping’ remote networks.
d)
To sort data alphabetically.
10.
Which data structure is required to store numbers from 1 down to 0.0000001?
a)
Numerical Object.
b)
Positive Integer.
c)
Floating Point.
d)
Complex Array.
11.
Floating-point is used for:
a)
whole number data type
b)
a data structure consisting of a collection of elements (values or variables)
c)
data type allowing words, symbols and numbers to be strored
d)
data type allowing decimals to be stored in two halves - the digits and the size
12.
What is an algorithm?
a)
a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
b)
a data structure consisting of a collection of elements (values or variables)
c)
a built-in function of an event driven programming language or environment that keeps checking for events occurring
d)
a means of interacting with a computer program where the user issues commands to the program in the form of successive lines of text
13.
An integer is a:
a)
whole number data type
b)
memory allocation for storing different data types
c)
data type allowing words, symbols and numbers to be strored
d)
data type allowing decimals to be stored in two halves - the digits and the size
14.
A string is a:
a)
whole number data type
b)
data type allowing decimals to be stored in two halves - the digits and the size
c)
memory allocation for storing different data types
d)
data type allowing words, symbols and numbers to be strored
15.

Which one of the following would be the first step in the Software Development Life Cycle?

a)

Design the application.

b)

Writing application code.

c)

Maintenance of live code.

d)

Requirements gathering

16.

Which one of the following in a standard web environment only runs on the webserver?

a)

HTML.

b)

JavaScript.

c)

PHP.

d)

CSS.

17.

Which one of the following in a standard web environment can execute a computer program on a web browser?

a)

JavaScript.

b)

CSS.

c)

HTML.

d)

PHP.

18.

Which one of the following best describes a CSS file?

a)

Run a computer program.

b)

Define the structure of web documents.

c)

Add style to web documents.

d)

Define the semantics of web documents.

19.

Which one of the following can be used to embed programs within an HTML file?

a)

Code written in PHP.

b)

Code written in CSS.

c)

Code written in any computer language.

d)

Code written in the JavaScript language.

20.

Which one of the following is defined by the World Wide Web Consortium (W3C) standards?

a)

Web browser design.

b)

An Open Web Platform.

c)

PHP language definition.

d)

JavaScript language definition.

21.

Which one of the following is a key reason for cross browser compatibility?

a)

Webpages look the same on different browsers.

b)

All browsers’ behaviour will be completely identical.

c)

Webpages perform equivalently on different browsers.

d)

All browsers will display a webpage at roughly the same speed.

22.

Which one of the following is a key consideration when designing webpages for disabled users?

a)

Navigation.

b)

Large text size.

c)

Bright colours.

d)

Accessibility.

23.

Which one of the following is key to allowing webpages to be transferred between computers on different TCP/IP networks?

a)

A router.

b)

A webserver.

c)

A mail server.

d)

A client.

24.

Which one of the following software is normally used to store large amounts of information in a structured format?

a)

A content management system.

b)

A webserver.

c)

A database.

d)

A web authoring suite.

25.

Which one of the following transfers data using protocol encryption?

a)

TCP/IP.

b)

HTTPS.

c)

SMTP.

d)

HTTP.

26.

What is the purpose of a DNS server?

a)

List free domains available to purchase.

b)

Hosting webpages.

c)

Allocate IP addresses.

d)

Resolve Domain names to IP addresses.

27.

Which one of the following defines the process where search engines discover updated content on the web?

a)

Linking.

b)

Walking.

c)

Crawling.

d)

Webing.

28.

Which one of the following is a term used to describe information about information?

a)

Meta information.

b)

Index information.

c)

Dynamic data.

d)

Recursive data.

29.

A kind of data that can be represented as a number, text, or logic statement is called a:

a)

variable

b)

data type

c)

conditional

d)

loop

30.

Why SEO is important

a)

SEO helps build Your brand

b)

SEO is free advertising

c)

SEO brings relevant website traffic with high conversion potential

d)

All of the above

31.

If you want to store data within a database for a website. Which of the following script interpreters is the most convenient to use?

a)

JavaScript

b)

PHP

c)

HTML

d)

Java

32.

What is the objective of SEO?

a)

To have a nice website

b)

To have the best technology in terms of site encoding

c)

Increasing visibility of a website

d)

Increasing brand awareness

33.

What will happen without content in meta description?

a)

No meta description will be displayed

b)

Google picks a meta description of another page

c)

The page won't rank properly

d)

Google will extract a text from the page content

34.
In programming, what is iteration?
a)
The repetition of steps within a program
b)
The order in which instructions are carried out
c)
A decision point in a program
d)
Testing a program to make sure it works
35.

Sequencing is...

a)

a list of instructions which are followed in a set order

b)

a list of instructions where there is a choice based on a condition

c)

A list of instructions which will loop based on a condition

d)

A list of instructions which will loop forever

36.

Which part of the architecture sends the initial HTTP request?

a)

Client

b)

Server

c)

Database

d)

HTML

37.
What does the H in HTTP stand for?
a)
Hyper
b)
Hypertext
c)
HTML
d)
Helix
38.
The part of the internet that users can access using web browsers such as Google Chrome is called the?
a)
World Wide Web
b)
The Intranet
c)
HTTP
d)
The Deep Web
39.
Which protocol is used to transfer files from one computer to another?
a)
FTP
b)
DNS
c)
HTML
d)
HTTP
40.
Which of the following is NOT an advantages of using CMS for developers?
a)
Maintenance can be handed over to client.
b)
Save on monthly maintenance.
c)
SEO Friendly.
d)
Third party plugins.
41.

_____________ is an international network of computers.

a)

Network

b)

WWW

c)

Internet

d)

Local Area Network

42.
An enormous system of interlinked hypertext documents that can
be accessed with a web browser.
a)
stateful packet inspection (SPI)
b)
Web 2.0
c)
NAT Filtering 
d)
World Wide Web (WWW)
43.

W3C stands for?

a)

Web World Wide Consortium

b)

World Wide Web Council

c)

Web Wide World Consortium

d)

World Wide Web Consortium

44.

W3C is the governing body to WWW and its mission is to create…?

a)

Webpages

b)

Websites

c)

Standard and specification

d)

Browser

45.

What is the main purpose of the W3C?

a)

develops standards and support materials to help you understand and implement accessibility.

b)

Developing protocols and guidelines that ensure the long-term growth of the Web.

c)

Make websites, applications, and other digital creations more accessible and usable to everyone.

d)

identifying the expected meaning for form input data.

46.
Which of these are viable reasons why some people do not like cookies?
a)
Because they store your personal details
b)
They are allergic to cookies.
c)
They use up terabytes of storage.
d)
They cause your computer to crash during peak hours.
47.
When is the data of cookies used?
a)
When you revisit a website
b)
When the hacker intercepts it.
c)
When you create your own website.
d)
When you are hungry.
48.
What is a company which facilitates placing websites online and delivers the data to and from computers
a)
Website
b)
Web Host
c)
Spy Host
d)
Search Engine
49.
Which of these is an advantage of storing a web address as a favourite?
a)
it reduces the chances of misspelling a website address
b)
the website can be deleted
c)
it creates a backup of the entire website on your computer
d)
the website can analyse whether you've pressed favourite and deliver better content to you
50.
The HTML tag <b> does what to text?
a)
Makes it bold
b)
Breaks the text into pieces
c)
Creates a border
d)
Blinks the text
51.

_________________________is the part of the internet URL selected and registered by an individual, bsuiness, or organization to represent their web presence.

a)

Snapchat name

b)

Domain name

c)

Party name

d)

Legal name

52.

Select one disadvantage of a relational database

a)

Avoids data duplication

b)

All records in other tables with a link will reflect any changes made

c)

Easier and quicker to add data

d)

Can be complex to build from scratch

53.

HTML Hypertext Markup Language

a)

tells web browser how to make a page look.

b)

is a programming language used by hackers.

c)

is used to make websites secure.

d)

only the text of a website.

54.

SSL or Secure Sockets Layer and TLS or Transport Layer Security are...

a)

used to communicate securily over the internet.

b)

required for browsing the internet.

c)

the same as TCP/IP.

55.

Which are the protocols for when the computer sends a request to the server for codes of a webpage?

a)

HTTP (HyperText Transfer Protocol)

b)

Web Browser

c)

HTML (HyperText Markup Language)

d)

URL (Uniform Resource Locator)

56.

What part of this web address is the Domain Name?


https://www.gcflearnfree.org

a)

https://

b)

www

d)

.org

57.

The software you use that helps you find information on the Internet?

a)

Search Engine

b)

Word Processor

c)

Games

d)

Email

58.
A required document usually found on a website that informs users why an organisation is collecting data and how it will be used and stored.
a)
Privacy Policy
b)
Privacy Act 1988
c)
Data Collection Policy
d)
Data Collection Act 1998
59.
SSL stands for...
a)
Secure System Line
b)
Secure Sockets Layer
c)
Security Sockets Line
d)
Secure System Layer
60.
A protocol used to provide security for communications on the internet. Preceded TLS.
a)
HTTPS
b)
None of these
c)
TCP/IP
d)
SSL
61.
TLS stands for...
a)
Transport Layer Security
b)
Transport Line System
c)
Transport Layer System
d)
Translate Layer Secure
62.
An interactive webpage that changes as requested by the user.
a)
Static webpage
b)
Dynamic webpage
c)
Both of these
d)
None of these
63.
HTTPS
a)
Hypertext total transfer protocol security
b)
Hypertext total transfer protocol secure
c)
Hypertext transfer protocol security
d)
Hypertext transfer protocol secure
64.

Which of the following statements is true?

a)

The Internet consists of millions of web pages linked together.

b)

The Internet is a web page created by a business.

c)

The WWW consists of millions of web pages linked together.

d)

WWW is the unique identity of a web page.

65.

This is used to connect web pages ...

a)

Web crawler

b)

Browser

c)

Wizard

d)

Hyperlink

66.

Web sites are held on a ...

a)

Proxy Server

b)

Web Server

c)

Mail Server

d)

Print Server

67.

What is the language used to create web pages?

a)

HTML

b)

HTTP

c)

HTTPS

d)

FTP

68.

Identify the three main parts that make up a URL.

a)

Protocol

b)

Path

c)

Link

d)

Domain

69.

What does FTP stand for?

a)

File Text Protocol

b)

Fast Transfer Protocol

c)

File Transfer Protocol

d)

Fast Transfer Pace

70.

Which statement refers to FTP?

a)

Used to create web pages

b)

Set of rules to handle what we do on the web

c)

Used to open emails

d)

Used to upload and download files from a web server

71.

Which statement refers to HTTP?

a)

The path of a URL

b)

A webpage that is secure

c)

Rules that handle what we do on the web

d)

Elements of a webpage

72.

What do search engines use to keep a record of the resources located on the World Wide Web?

a)

indexes

b)

links

c)

joins

d)

records

73.

What describes the content of a web page?

a)

Meta tags

b)

Meta labels

c)

Meta morphism

d)

Meta nalyses

74.

How does a search engine rank the web pages?

a)

using an algorithm

b)

by how colourful it is

c)

by checking its safe

75.

What is a program or automated script that browses the World Wide Web in a methodical, automated manner, also called spidering?

a)

Query

b)

Algorithm

c)

Index

d)

Web Crawler

76.

What is a database that correlates keywords and websites so that the search engine can display websites that match a user's search query?

a)

Index

b)

Query

c)

Algorithm

d)

Web Crawler

77.
What is a search engine?
a)
a paid library website that gives reliable information
b)
a library online catalog
c)
searches the Internet and identifies items that match the characters and keywords entered by a user
d)
a collection of full text articles used for research projects
78.
Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?
a)
Selection
b)
Loop
c)
Functional
d)
Sequence
79.
Jackson has written a section of code in his program that instructs a character to move forward unless it encounters an obstacle, such as a rock. If the character encounters an obstacle, then it should change direction before moving forward again. If it does not encounter an obstacle, it should continue moving forward. Which type of control structure has Jackson written?
a)
Selection
b)
Loop
c)
Functional
d)
Sequence
80.

Identify the control structure involved to this question.

A grocery store manager wants a program that allows the clerk to enter original price of an item and discount rate. The program then should display both the original and discounted price.

a)

Selection

b)

Sequence

c)

Iteration

d)

single-alternative ifs

81.

A benefit of using flowcharts is:

a)

They help you program faster

b)

They write the program for you

c)

They are easier

d)

They help you to visually plan a program

82.

What is the main purpose of establishing requirements

a)

To establish project costs and projected timeline

b)

To establish customer expectations and project scope

c)

To establish a specific project development baseline

d)

To establish a methodology for the design process

83.

Which of the following applies a consistent font style across a website?

a)

CSS

b)

DNS

c)

TCP

d)

FTP

84.

Which one of the following is the main purpose of a content management system?

a)

To map a website's URL to an IP address.

b)

To deploy a website to a server architecture

c)

To provide data and information for a website

d)

To define authentication for securing a website

85.

Java is used for?

a)

Writing and developing web pages

b)

The behaviour of a website making websites more dynamic

c)

Producing programs that will run on any computer system.

86.

What is JavaScript?

a)

A general-purpose computer programming language that produces programs that will run on any computer system.

b)

Use for writing and developing web pages

c)

A client-side interpreted programming language

87.

What is the HTTP protocol?

a)

Foundation of data communication for the world wide web

b)

Foundation of data communication for the internet

c)

Foundation of data communication for the cloud

d)

Foundation of data communication for a browser

88.

A user tries to open a PDF document in up to date versions of Firefox and Safari, but both attempts fail. What SHOULD the user do if they want to view the file?

a)

Update the browser version

b)

Install Internet Explorer

c)

Restart both browsers

d)

Download the file and use Adobe Acrobat Reader to view

89.

Which of the following protocols provides encryption and data integrity between a web browser and server?

a)

FTP

b)

TLS

c)

HTTP

d)

TLC

90.

A user is filling in a form online and the browser crashes. On re-starting the browser, the user is surprised to find all the information entered is still in the web page. What technology has been employed to allow this data to be saved?

a)

HTML

b)

Cookies

c)

AJAX

d)

Adobe Flash