Second Prelim Flashcards
What is the role of CSS in ensuring that a site is displayed correctly on each device?
Media queries would be used to consider the size of the viewport
Separate rules are implemented depending on the detected device screen width
What is an array of records?
-
What is meant by open source?
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
Parameter passing by reference
Change made to parameter are retained when the subprogram finishes
Parameter is passed in and out of the subprogram
Parameter passing by value
Parameter is copied when passed
Updates discarded when program terminates
Items other than data that are held by a register
Memory Address
Instruction
Function
Subprogram which returns a single value
Parameters passed not usually returned
Function name used just like a variable
HTML and CSS purposes in separating formatting from structure of a document
HTML provides structure of the document/content
CSS rules provide formatting information for tags/styles in document structure
How usability testing is carried out?
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
Phishing description
User receives email from supposedly trusted source
Requests sensitive information
Email spoofing
Advantage of open source over proprietary other than licensing cost
Updates by community
Testing/Identification of security flaws
Ability to build own versions of applications
Advantages of using a 1-D array to store a list of values
Saves time
Makes code efficient
One line required to implement parameter passing
Individual elements referenced by indexing
How does halting a programs execution using a breakpoint help with finding errors within a program?
Values of variables inspected to determine issues
Ability to step into/over code to assess effect
Program flow/logic inspected
Defining records
RECORD TYPE name
Data Type: Record Name
Data Type: Other record name etc
END record
Declaring records
ARRAY[Amount to be stored] of Name
Execution error examples
Reading past end of file
Reading an empty file
Text file locked by other process
Divide by zero
Formal Parameter
Identifiers used to stand for a value when subprogram/method is called eg testscore
Actual Parameter
Actual values passed at runtime eg 12
Method
A subroutine within an object
Defines an objects behaviour at runtime
Reasons of virtual machines being used
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
Headless computer
No graphical user interface
Agile Methodology features
Focus on working software over comprehensive documentation
User involvement
Design sprints build working programs quickly
Quick response to change
Advantages of public cloud on websites
Reduced costs compared to private cloud
Scalability of service tested - can increase/decrease service usage to meet demand
Security more focused
CSS example
.Headings Font-family: Verdana/other font; Font-size: numberpx; Color: #F3399/other; Font-style: Italic/other;
Impact on video of compression techniques
Approximations used reduce accuracy
Reduction in full frames stored as only changes between frames are stored
Sounds not audible to humans removed
What is required for describing how a report is produced?
Specific field with detail for search
Fields required with tables
Sort eg Date Ascending
Client Side disadvantage
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
Server side security advantage
Data validated at the server side will detect the attempt to send code
Malicious code dis-guarded
How can a webpage be optimised for web search?
Meaningful title
Meta Data Description
Meta Data Keywords
Alt and name tags to logo images
Method Definition
Access an objects variables/properties/attributes within its class
Explain how a bitmap is stored
As a grid of pixels
Each pixel has a binary value
Image uses 8-bit palette of colours (256 colours)