Second Prelim Flashcards

1
Q

What is the role of CSS in ensuring that a site is displayed correctly on each device?

A

Media queries would be used to consider the size of the viewport
Separate rules are implemented depending on the detected device screen width

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an array of records?

A

-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is meant by open source?

A

Shared with all users
Source code is open
Open source is a model of software development based on peer collaboration and open access to code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Parameter passing by reference

A

Change made to parameter are retained when the subprogram finishes
Parameter is passed in and out of the subprogram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Parameter passing by value

A

Parameter is copied when passed

Updates discarded when program terminates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Items other than data that are held by a register

A

Memory Address

Instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Function

A

Subprogram which returns a single value
Parameters passed not usually returned
Function name used just like a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

HTML and CSS purposes in separating formatting from structure of a document

A

HTML provides structure of the document/content

CSS rules provide formatting information for tags/styles in document structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How usability testing is carried out?

A

Users given devices with new interfaces and directly observed as they use these
Asked to perform tasks using the devices which relate to realistic situations
Complete questionnaires before and after as feedback

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Phishing description

A

User receives email from supposedly trusted source
Requests sensitive information
Email spoofing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Advantage of open source over proprietary other than licensing cost

A

Updates by community
Testing/Identification of security flaws
Ability to build own versions of applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Advantages of using a 1-D array to store a list of values

A

Saves time
Makes code efficient
One line required to implement parameter passing
Individual elements referenced by indexing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does halting a programs execution using a breakpoint help with finding errors within a program?

A

Values of variables inspected to determine issues
Ability to step into/over code to assess effect
Program flow/logic inspected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Defining records

A

RECORD TYPE name
Data Type: Record Name
Data Type: Other record name etc
END record

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Declaring records

A

ARRAY[Amount to be stored] of Name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Execution error examples

A

Reading past end of file
Reading an empty file
Text file locked by other process
Divide by zero

17
Q

Formal Parameter

A

Identifiers used to stand for a value when subprogram/method is called eg testscore

18
Q

Actual Parameter

A

Actual values passed at runtime eg 12

19
Q

Method

A

A subroutine within an object

Defines an objects behaviour at runtime

20
Q

Reasons of virtual machines being used

A

Ability to access virus infected data without compromising a real machine
Run a headless computer such as a server in the background on your local computer
Test product in a different platform

21
Q

Headless computer

A

No graphical user interface

22
Q

Agile Methodology features

A

Focus on working software over comprehensive documentation
User involvement
Design sprints build working programs quickly
Quick response to change

23
Q

Advantages of public cloud on websites

A

Reduced costs compared to private cloud
Scalability of service tested - can increase/decrease service usage to meet demand
Security more focused

24
Q

CSS example

A
.Headings
Font-family: Verdana/other font;
Font-size: numberpx;
Color: #F3399/other;
Font-style: Italic/other;
25
Q

Impact on video of compression techniques

A

Approximations used reduce accuracy
Reduction in full frames stored as only changes between frames are stored
Sounds not audible to humans removed

26
Q

What is required for describing how a report is produced?

A

Specific field with detail for search
Fields required with tables
Sort eg Date Ascending

27
Q

Client Side disadvantage

A

Without server-side validation it is possible for malicious code inserted in the forms to be used to carry out a scripted attack or a cross-site scripting attach on the website

28
Q

Server side security advantage

A

Data validated at the server side will detect the attempt to send code
Malicious code dis-guarded

29
Q

How can a webpage be optimised for web search?

A

Meaningful title
Meta Data Description
Meta Data Keywords
Alt and name tags to logo images

30
Q

Method Definition

A

Access an objects variables/properties/attributes within its class

31
Q

Explain how a bitmap is stored

A

As a grid of pixels
Each pixel has a binary value
Image uses 8-bit palette of colours (256 colours)