Font size
WorksheetsPrinciples of Coding Mock
Total questions: 90
Worksheet time: 2hrs 30mins
Which one of the following best describes iteration in flow control?
Executing code for a defined set of conditions.
Executing code for a defined number of repetitions.
Executing blocks of code only once.
Executing code based on user input.
Which data type would be best to hold "Hello World"
Integer
Float
String
Character
Which one of the following would be the first step in the Software Development Life Cycle?
Design the application.
Writing application code.
Maintenance of live code.
Requirements gathering
Which one of the following in a standard web environment only runs on the webserver?
HTML.
JavaScript.
PHP.
CSS.
Which one of the following in a standard web environment can execute a computer program on a web browser?
JavaScript.
CSS.
HTML.
PHP.
Which one of the following best describes a CSS file?
Run a computer program.
Define the structure of web documents.
Add style to web documents.
Define the semantics of web documents.
Which one of the following can be used to embed programs within an HTML file?
Code written in PHP.
Code written in CSS.
Code written in any computer language.
Code written in the JavaScript language.
Which one of the following is defined by the World Wide Web Consortium (W3C) standards?
Web browser design.
An Open Web Platform.
PHP language definition.
JavaScript language definition.
Which one of the following is a key reason for cross browser compatibility?
Webpages look the same on different browsers.
All browsers’ behaviour will be completely identical.
Webpages perform equivalently on different browsers.
All browsers will display a webpage at roughly the same speed.
Which one of the following is a key consideration when designing webpages for disabled users?
Navigation.
Large text size.
Bright colours.
Accessibility.
Which one of the following is key to allowing webpages to be transferred between computers on different TCP/IP networks?
A router.
A webserver.
A mail server.
A client.
Which one of the following software is normally used to store large amounts of information in a structured format?
A content management system.
A webserver.
A database.
A web authoring suite.
Which one of the following transfers data using protocol encryption?
TCP/IP.
HTTPS.
SMTP.
HTTP.
What is the purpose of a DNS server?
List free domains available to purchase.
Hosting webpages.
Allocate IP addresses.
Resolve Domain names to IP addresses.
Which one of the following defines the process where search engines discover updated content on the web?
Linking.
Walking.
Crawling.
Webing.
Which one of the following is a term used to describe information about information?
Meta information.
Index information.
Dynamic data.
Recursive data.
A kind of data that can be represented as a number, text, or logic statement is called a:
variable
data type
conditional
loop
Why SEO is important
SEO helps build Your brand
SEO is free advertising
SEO brings relevant website traffic with high conversion potential
All of the above
If you want to store data within a database for a website. Which of the following script interpreters is the most convenient to use?
JavaScript
PHP
HTML
Java
What is the objective of SEO?
To have a nice website
To have the best technology in terms of site encoding
Increasing visibility of a website
Increasing brand awareness
What will happen without content in meta description?
No meta description will be displayed
Google picks a meta description of another page
The page won't rank properly
Google will extract a text from the page content
Sequencing is...
a list of instructions which are followed in a set order
a list of instructions where there is a choice based on a condition
A list of instructions which will loop based on a condition
A list of instructions which will loop forever
Which part of the architecture sends the initial HTTP request?
Client
Server
Database
HTML
_____________ is an international network of computers.
Network
WWW
Internet
Local Area Network
be accessed with a web browser.
W3C stands for?
Web World Wide Consortium
World Wide Web Council
Web Wide World Consortium
World Wide Web Consortium
W3C is the governing body to WWW and its mission is to create…?
Webpages
Websites
Standard and specification
Browser
What is the main purpose of the W3C?
develops standards and support materials to help you understand and implement accessibility.
Developing protocols and guidelines that ensure the long-term growth of the Web.
Make websites, applications, and other digital creations more accessible and usable to everyone.
identifying the expected meaning for form input data.
_________________________is the part of the internet URL selected and registered by an individual, bsuiness, or organization to represent their web presence.
Snapchat name
Domain name
Party name
Legal name
Select one disadvantage of a relational database
Avoids data duplication
All records in other tables with a link will reflect any changes made
Easier and quicker to add data
Can be complex to build from scratch
HTML Hypertext Markup Language
tells web browser how to make a page look.
is a programming language used by hackers.
is used to make websites secure.
only the text of a website.
SSL or Secure Sockets Layer and TLS or Transport Layer Security are...
used to communicate securily over the internet.
required for browsing the internet.
the same as TCP/IP.
Which are the protocols for when the computer sends a request to the server for codes of a webpage?
HTTP (HyperText Transfer Protocol)
Web Browser
HTML (HyperText Markup Language)
URL (Uniform Resource Locator)
What part of this web address is the Domain Name?
https://www.gcflearnfree.org
The software you use that helps you find information on the Internet?
Search Engine
Word Processor
Games
Which of the following statements is true?
The Internet consists of millions of web pages linked together.
The Internet is a web page created by a business.
The WWW consists of millions of web pages linked together.
WWW is the unique identity of a web page.
This is used to connect web pages ...
Web crawler
Browser
Wizard
Hyperlink
Web sites are held on a ...
Proxy Server
Web Server
Mail Server
Print Server
What is the language used to create web pages?
HTML
HTTP
HTTPS
FTP
Identify the three main parts that make up a URL.
Protocol
Path
Link
Domain
What does FTP stand for?
File Text Protocol
Fast Transfer Protocol
File Transfer Protocol
Fast Transfer Pace
Which statement refers to FTP?
Used to create web pages
Set of rules to handle what we do on the web
Used to open emails
Used to upload and download files from a web server
Which statement refers to HTTP?
The path of a URL
A webpage that is secure
Rules that handle what we do on the web
Elements of a webpage
What do search engines use to keep a record of the resources located on the World Wide Web?
indexes
links
joins
records
What describes the content of a web page?
Meta tags
Meta labels
Meta morphism
Meta nalyses
How does a search engine rank the web pages?
using an algorithm
by how colourful it is
by checking its safe
What is a program or automated script that browses the World Wide Web in a methodical, automated manner, also called spidering?
Query
Algorithm
Index
Web Crawler
What is a database that correlates keywords and websites so that the search engine can display websites that match a user's search query?
Index
Query
Algorithm
Web Crawler
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.
Selection
Sequence
Iteration
single-alternative ifs
A benefit of using flowcharts is:
They help you program faster
They write the program for you
They are easier
They help you to visually plan a program
What is the main purpose of establishing requirements
To establish project costs and projected timeline
To establish customer expectations and project scope
To establish a specific project development baseline
To establish a methodology for the design process
Which of the following applies a consistent font style across a website?
CSS
DNS
TCP
FTP
Which one of the following is the main purpose of a content management system?
To map a website's URL to an IP address.
To deploy a website to a server architecture
To provide data and information for a website
To define authentication for securing a website
Java is used for?
Writing and developing web pages
The behaviour of a website making websites more dynamic
Producing programs that will run on any computer system.
What is JavaScript?
A general-purpose computer programming language that produces programs that will run on any computer system.
Use for writing and developing web pages
A client-side interpreted programming language
What is the HTTP protocol?
Foundation of data communication for the world wide web
Foundation of data communication for the internet
Foundation of data communication for the cloud
Foundation of data communication for a browser
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?
Update the browser version
Install Internet Explorer
Restart both browsers
Download the file and use Adobe Acrobat Reader to view
Which of the following protocols provides encryption and data integrity between a web browser and server?
FTP
TLS
HTTP
TLC
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?
HTML
Cookies
AJAX
Adobe Flash
