Back to marketplace

2017

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

Max comparisons in a binary search

Back (Answer)

Finding power of two greater than items in the list Eg List size 5 2^3=8 so 3 is answer

#2
Front (Question)

No of comparisons in a linear search

Back (Answer)

N/2 (n is number of items in the list)

#3
Front (Question)

Linear Search facts

Back (Answer)

Simple algorithm List may be unsorted Number of comparisons given by n/2 Slow for large lists

#4
Front (Question)

Binary Search facts

Back (Answer)

Complex algorithm List must be sorted Max comparisons given by power of two greater than items in list eg 5 items would be 2^3=8 so 3 is answer Fast for large lists

#5
Front (Question)

Why selection sort two lists is inefficient

Back (Answer)

Has to check every item from list every time loop executes Requires second list with same storage space as first= problem if large list being sorted

#6
Front (Question)

Comparing Binary and Linear Search

Back (Answer)

Binary search requires list to be sorted - more complex so more processor time Linear search more efficient on smaller lists

#7
Front (Question)

Bubble sort facts

Back (Answer)

No additional operation memory as swaps items between positions in a list Faster for a partially sorted list as variable can be introduced to keep track of whether swaps have occurred or not Unconditional version will make n passes through list and n^2 comparisons In worst case scenario - reverse order = n^2 swaps also Number of swaps depends on how partially sorted original list is

#8
Front (Question)

Insertion Sort number of passes

Back (Answer)

Always n-1 where n is the number of items in the list Outer loop goes from 1 up to number of elements (Missing element zero)

#9
Front (Question)

Quick Sort facts

Back (Answer)

Recursive algorithm - Suitable for parallel processing Memory intensive Inefficient for sorting lists which contain lots of similar terms

#10
Front (Question)

Merge Sort

Back (Answer)

Divides into sorted sub lists and puts two sorted lists together to make one large sorted list Useful if you have two sorted lists which have to be put together

#11
Front (Question)

Divide and Rule Algorithms

Back (Answer)

Merge sort Quick sort

#12
Front (Question)

Explain why a class may have position variables and others do not

Back (Answer)

The parent class will have properties which are inherited

#13
Front (Question)

Explaining encapsulation in terms of certain class

Back (Answer)

Object properties would be hidden and inaccessible outside the specified class or subclass Code within classes methods may manipulate properties of an instance of that class ie the position coordinates of that instance

#14
Front (Question)

Why classes may be inefficiently structured

Back (Answer)

Repetition of many lines of code ie methods and properties in multiple subclasses

#15
Front (Question)

How classes can be made more efficient

Back (Answer)

Create a subclass and place all common properties/methods in here Create two new subclasses of this subclass with only their unique property

#16
Front (Question)

Explain using object-oriented terminology how you would get Mario to change to a penguin costume

Back (Answer)

The change_costume method of Mario is called

#17
Front (Question)

Explain how a company could use goal tracking in order to evaluate development success

Back (Answer)

Set sales goal Analysis of sales figures would indicate whether it had been achieved or not Development success determined by whether goal was met or not

#18
Front (Question)

How a company can protect its interests when getting rights for work

Back (Answer)

Ensure it owns/ has defined use of any intellectual property rights related to artists work

#19
Front (Question)

Explain how tracking information could be used by a company to influence future development

Back (Answer)

• Cookies gather data about players’ profiles, games they play. Frequency of visit. • Analysis of this data will show which games are popular with certain age groups. • Business can focus on areas likely to generate income.

#20
Front (Question)

Difference between GET and POST methods

Back (Answer)

GET is used when search criteria is displayed in browser address bar POST is used when search criteria is not

#21
Front (Question)

The value in a HTML form

Back (Answer)

The text displayed inside the search box eg search or enter catalogue number

#22
Front (Question)

The name in a HTML form

Back (Answer)

Eg criteria for where you enter criteria or search box for where you enter search credentials

#23
Front (Question)

Describe how testing of a customer order process is integrative

Back (Answer)

Customer order process requires a server side script to activate the SQL instruction used to extract the required details from the database Two separate technologies in use means integrative testing is required to ensure that they connect and communicate correctly

#24
Front (Question)

Types of maintenance

Back (Answer)

Perfective - Carried out on an existing system to improve it Corrective - Carried out to fix any errors which should not be contained within Adaptive - Used when client requires software to run on environment different to the one it was built for