Sylvianne Lambert-Hutchinson
Quiz by , created more than 1 year ago

10 Questions for BCS

310
0
0
Rashaad Shakir
Created by Rashaad Shakir over 6 years ago
Sylvianne Lambert-Hutchinson
Copied by Sylvianne Lambert-Hutchinson over 5 years ago
Close

BCS Principles Of Coding

Question 1 of 68

1

What is the scripting language in XAMPP

Select one of the following:

  • Cross-Platform

  • PHP

  • MySQL

  • Perl

  • PHP and Perl

Explanation

Question 2 of 68

1

A programmer runs the following program:
a=47;
b=28;
a=20;
if (a < 45 or b > 26)
{
printf(“SUCCESS”);
}
else
{
printf(“FAILED”);
}

Select one of the following:

  • The word “SUCCESS” appears on screen.

  • Nothing happens.

  • The word “SUCCESS” gets printed out

  • The word “FAILED” appears on screen

Explanation

Question 3 of 68

1

What file does the web crawler look at?

Select one of the following:

  • HTML

  • CSS

  • Robots.txt

  • None of the above

Explanation

Question 4 of 68

1

Which one of the following page elements will NOT affect SEO?

Select one of the following:

  • Colour of the text and background.

  • Choice of mark-up attributes.

  • Speed which the code transfers

  • The type of browser used.

Explanation

Question 5 of 68

1

What files can be accessed across different platforms

Select one of the following:

  • PNG, GIF, SNF, TPA

  • PDF, SNF, GIF, JPG,

  • GIF, SNF, TLS, PDF

  • PDF, GIF PNG, JPG

Explanation

Question 6 of 68

1

Define Dynamic Website

Select one of the following:

  • HTML code

  • server-side scripting language

  • Web server

  • Cookies

Explanation

Question 7 of 68

1

How does SSL and Transport Layer work

Select one of the following:

  • The data is encrypted and is sent to a user

  • The data is sent to another user and the data is hidden in a locked file

  • They encrypt the data and give each other the authentication key

Explanation

Question 8 of 68

1

What letter is the database in MAMP

Select one of the following:

  • (1st) M

  • A

  • (2nd) M

  • P

Explanation

Question 9 of 68

1

How many inputs does a NOT Gate have

Select one of the following:

  • 2

  • 3

  • As many as required

  • 1

Explanation

Question 10 of 68

1

If the output is on, on an OR gate then what will the input be?

Select one of the following:

  • OFF, ON

  • ON, OFF

  • OFF, OFF

  • ON, ON

Explanation

Question 11 of 68

1

If two or more inputs on an OR gate are on, what will be the output?

Select one of the following:

  • ON, ON

  • OFF, OFF

Explanation

Question 12 of 68

1

If none of the inputs on an OR gate is turned on, what will be the output?

Select one of the following:

  • OFF, OFF

  • ON, ON

Explanation

Question 13 of 68

1

If no inputs on an AND gate is on, what will be the output?

Select one of the following:

  • OFF, OFF

  • ON, ON

Explanation

Question 14 of 68

1

If all of the inputs on the AND gate are on, what will be the output?

Select one of the following:

  • ON, ON and must have all of them on to turn on

  • OFF, OFF as it doesn't require any inputs to be turned on

Explanation

Question 15 of 68

1

How many inputs does a NOT gate have?

Select one of the following:

  • 1

  • 2

Explanation

Question 16 of 68

1

If the input in a NOT gate is ON, what will the input be?

Select one of the following:

  • OFF

  • ON

Explanation

Question 17 of 68

1

Define HTML?

Select one of the following:

  • HTML isn't a programming language but a markup language used to develop website using tag elements.

  • A programming language that uses tag elements to develop websites.

Explanation

Question 18 of 68

1

In HTML5 what is it that W3C has added?

Select one of the following:

  • <video> and <audio> tag

  • <li> and <i> tag

Explanation

Question 19 of 68

1

What does the M stand for in MAMP?

Select one of the following:

  • MacOS

  • Macro Asus

Explanation

Question 20 of 68

1

What does the A stand for in MAMP?

Select one of the following:

  • Apache

  • Application

Explanation

Question 21 of 68

1

What is Apache?

Select one of the following:

  • Apache is a HTTP server

  • A markup language

Explanation

Question 22 of 68

1

What is MySQL?

Select one of the following:

  • A database management system

  • HTTP Server

Explanation

Question 23 of 68

1

What is PHP?

Select one of the following:

  • A coding language for websites

  • A HTTP server

Explanation

Question 24 of 68

1

LAMP THE L?

Select one of the following:

  • Linux

  • lonsdale

Explanation

Question 25 of 68

1

WAMP THE W?

Select one of the following:

  • Windows

  • Warwick

Explanation

Question 26 of 68

1

Whats the X in XAMPP?

Select one of the following:

  • Cross platform

  • Xanax

Explanation

Question 27 of 68

1

First letter of the web stack is?

Select one of the following:

  • The Operating System used like Windows, Mac OS, Linux

  • The HTTP server like Apache

Explanation

Question 28 of 68

1

What does the 2nd letter mean in a webstack layer?

Select one of the following:

  • The web server which is the HTTP server, Apache

  • A database like MySQL

Explanation

Question 29 of 68

1

What does the 3rd layer on the webstack layer represent?

Select one of the following:

  • The database like My SQL or Maria DB

  • The http server

Explanation

Question 30 of 68

1

The forth and fifth layer is?

Select one of the following:

  • The scripting language

  • The server

Explanation

Question 31 of 68

1

The compatibility of PDF file?

Select one of the following:

  • New browsers can display these word document looking files in their browsers.

  • Cross platform which means it can be opened on any browsers or mobile device. Word editors can be used for these.

Explanation

Question 32 of 68

1

The compatibility of HTML?

Select one of the following:

  • Cross platform which means it can be opened on any browser and mobile device. You can edit HTML using a simple word editor like Notepad, Wordpress, Notepad++.

  • (GIF, JPG, PNG) All file formats

Explanation

Question 33 of 68

1

The compatibility of Image files?

Select one of the following:

  • (GIF, JPG, PNG) All file formats

  • Mpeg; used in older browsers but now the new HTML5 supports videos and can run .mp4 files.

Explanation

Question 34 of 68

1

The compatibility of video files?

Select one of the following:

  • Mpeg; used in older browsers but now the new HTML5 supports videos and can run .mp4 files.

  • Cross platform which means it can be opened on any browser and mobile device. You can edit HTML using a simple word editor like Notepad, Wordpress, Notepad++.

Explanation

Question 35 of 68

1

What does the API stand for?

Select one of the following:

  • Application Programming Interface

  • Application Programming International

Explanation

Question 36 of 68

1

What is the application programming interface?

Select one of the following:

  • APIs are the way computers communicate with each other. They can request and deliver information. A software application can call what’s known as an endpoint: an address that corresponds with a specific type of information we provide (endpoints generally unique like phone numbers).

  • This is an application Protocol and allows for distribution and collaborative text. This is the foundation of data communication for the World Wide Web

Explanation

Question 37 of 68

1

What does HTTP stand for?

Select one of the following:

  • Hyper Transfer Protocol

  • Hyper Traport Protocol

Explanation

Question 38 of 68

1

What is HTTP?

Select one of the following:

  • This is an application Protocol and allows for distribution and collaborative text. This is the foundation of data communication for the World Wide Web

  • The s stands for Secure is an extension of the hypertext transfer protocol for secure communication over a computer network. Port number: 443

Explanation

Question 39 of 68

1

What is HTTPS?

Select one of the following:

  • The s stands for Secure is an extension of the hypertext transfer protocol for secure communication over a computer network. Port number: 443

  • This is an application Protocol and allows for distribution and collaborative text. This is the foundation of data communication for the World Wide Web

Explanation

Question 40 of 68

1

What does SSL stand for?

Select one of the following:

  • Secure Socket Layer

  • Secure Sonic Layer

Explanation

Question 41 of 68

1

What does TLS stand for?

Select one of the following:

  • Transport Layer Security

  • Transport Logic Security

Explanation

Question 42 of 68

1

What does the TLS and SSL layer do?

Select one of the following:

  • The SSL and TLS protocols allows for authentication and communication between two parties. This allows confidentiality and data interity.

  • A web server is for simple plain text HTML files
    Application server is when you need to login and do scripting with PHP/Python

Explanation

Question 43 of 68

1

Web and Application server

Select one of the following:

  • A web server is for simple plain text HTML files
    Application server is when you need to login and do scripting with PHP/Python

  • This is an application Protocol and allows for distribution and collaborative text. This is the foundation of data communication for the World Wide Web

Explanation

Question 44 of 68

1

Examples of web and application servers:

Select one of the following:

  • Content management systems- Wordpress and Joomla

  • Content management systems- Linux and Wordlist

Explanation

Question 45 of 68

1

What is a relational database?

Select one of the following:

  • Always have one key field that is unique. Just focus on the unique information.

  • A browser is an application that is used to view websites for example google chrome, Internet Explorer etc. The primary function of a web page is to render HTML; this is the code use to design or ‘mark-up’ web pages.

Explanation

Question 46 of 68

1

What is the purpose of a web browser?

Select one of the following:

  • Always have one key field that is unique. Just focus on the unique information.

  • A browser is an application that is used to view websites for example google chrome, Internet Explorer etc. The primary function of a web page is to render HTML; this is the code use to design or ‘mark-up’ web pages.

Explanation

Question 47 of 68

1

Is a browser a web client?

Select one of the following:

  • Yes

  • No

Explanation

Question 48 of 68

1

What actions can web applications give you?

Select one of the following:

  • Gmail, Facebook, Google analytics

  • Windows defender, linux anti virus

Explanation

Question 49 of 68

1

What do web crawlers do?

Select one of the following:

  • A web crawler also knows as a Robot, Search Bot, Spider – is a program this is used to find new items on the internet. When a web crawler visits a web page it loads the site’s content onto a database.

  • A browser is an application that is used to view websites for example google chrome, Internet Explorer etc. The primary function of a web page is to render HTML; this is the code use to design or ‘mark-up’ web pages.

Explanation

Question 50 of 68

1

Why is it important for web crawlers to visit your website?

Select one of the following:

  • A web crawler also knows as a Robot, Search Bot, Spider – is a program this is used to find new items on the internet. When a web crawler visits a web page it loads the site’s content onto a database.

  • It is important for google crawlers to visit your site. As it will put your website onto the google database.

Explanation

Question 51 of 68

1

What is Robots.txt?

Select one of the following:

  • This is the file that crawlers look at. This file contains information on how to crawl your website.

  • This is written in code usually in HTML.

Explanation

Question 52 of 68

1

What is a static website?

Select one of the following:

  • This is written using a server-side scripting language such as PHP, ASP, JSP or ColdFusion

  • This is written in code usually in HTML

Explanation

Question 53 of 68

1

What is a dynamic website?

Select one of the following:

  • This is written using a server-side scripting language

  • The coding language used to create static website with video tags

Explanation

Question 54 of 68

1

Examples of dynamic website coding?

Select one of the following:

  • PHP, ASP, JSP or ColdFusion

  • HTML 5, CSS

Explanation

Question 55 of 68

1

What is state management?

Select one of the following:

  • State management is the process of holding web page information

  • State management is the process of holding web page numbers

Explanation

Question 56 of 68

1

What does a state management use?

Select one of the following:

  • A URL (uniform resource locator), when entered sends a HTTP request to a Web server for a Web page.

  • A TLS, when entered sends a HTTP request to a Web server for a Web page.

Explanation

Question 57 of 68

1

What is HTTP stateless protocol?

Select one of the following:

  • HTTP is stateless protocol; this means it doesn’t hold its data from session to session.This means when you close a browser data isn’t saved.

  • A URL (uniform resource locator), when entered sends a HTTP request to a Web server for a Web page.

Explanation

Question 58 of 68

1

How many types of states are there?

Select one of the following:

  • 3

  • 6

Explanation

Question 59 of 68

1

What is a session state?

Select one of the following:

  • When an application requests a login.
    Ends when a user ends the session or logs out

  • When a browser sends a request for a web page to a web server.
    Ends when a user closes the browser

Explanation

Question 60 of 68

1

What is a application state?

Select one of the following:

  • When a browser sends a request for a web page to a web server.
    Ends when a user closes the browser

  • Data remains for use by an application after a session ends.
    Allows an app to continue its state when a user returns to a site

Explanation

Question 61 of 68

1

What is a persistent state?

Select one of the following:

  • Data remains for use by an application after a session ends.
    Allows an app to continue its state when a user returns to a site

  • When an application requests a login.
    Ends when a user ends the session or logs out

Explanation

Question 62 of 68

1

What are cookies?

Select one of the following:

  • Developers can use cookies to retain data from session to session. These are small files that can save information about users and this is saved on a user’s computer.

  • A URL (uniform resource locator), when entered sends a HTTP request to a Web server for a Web page.

Explanation

Question 63 of 68

1

What are the problems with cookies?

Select one of the following:

  • -Security Risk.
    -Performance decrease due to data being sent back and forth between computers.

  • -Viruses.
    -Hackers.

Explanation

Question 64 of 68

1

HTML5 can allow people to store information on their web browsers, what are the two main storage types?

Select one of the following:

  • Session and Local storage

  • HTML and CSS storage

Explanation

Question 65 of 68

1

What is Local Storage?

Select one of the following:

  • No limit to how long the data persists and users can save large amounts of persistent data.

  • Lets users save session state data. It only lasts for the duration of the session.

Explanation

Question 66 of 68

1

What is session storage?

Select one of the following:

  • Lets users save session state data. It only lasts for the duration of the session.

  • No limit to how long the data persists and users can save large amounts of persistent data.

Explanation

Question 67 of 68

1

What is the similarity of Local and Session storage?

Select one of the following:

  • Both methods allow users to store large amounts data without it slowing down a connection because data is transferred when it is requested.

  • Browsers send cookies back to web servers, and this is used to identify and customize their experience. Cookies can slow down your app performance.

Explanation

Question 68 of 68

1

What is AppCache or Application Cache?

Select one of the following:

  • AppCache can store resources, such as HTML, CSS and JavaScript files. This is stored locally to a user’s machine. Developers can dictate which type of information is stored locally in the cache manifest file.

  • Developers can use cookies to retain data from session to session. These are small files that can save information about users and this is saved on a user’s computer.

Explanation