Describe how Concurrent processing can be used to solve a problem
Concurrency is the act of managing and running multiple computations at the same time .Increases Computational speed n decreases complexity of work.
Oops!
Check
Okay!
Check
5
Outline how a sub-procedure can be considered an example of abstraction.
A sub-procedure is a section of code in a program that does a specific job; It can be called by name when needed without naming the details as these are wrapped
Oops!
Check
Okay!
Check
5
Other than the use of different keywords, outline two ways in which two higher level languages might differ from one another
1.Method of translation 2.Syntax differences 3.Different Programming paradigms 4.Compatibility with diff environments.
Oops!
Check
Okay!
Check
5
For an identified application, explain why a binary search would be preferred to a linear search.
It is already sorted n needs to be searched in the least amount of time; Is faster because binary search divides and searches smaller blocks of data
Oops!
Check
Okay!
Check
5
Is there a need for a translation process from a higher level language to machine code.If so explain the types of translators.
Yes.1. A Compiler translates the whole source program into object program at once.2. An Interpreter does the translation line by line.
Oops!
Check
Okay!
Check
5
Consider the following algorithms and determine the outputs
47,23,11
Oops!
Check
Okay!
Check
baam
Lose 20 points!
Oops!
magnet
Take 25 points!
Okay!
gift
Win 20 points!
Okay!
thief
Give points!
5
10
15
20
25
boom
Lose 50 points!
Oops!
fairy
Take points!
5
10
15
20
25
gift
Win 5 points!
Okay!
lifesaver
Give 10 points!
Oops!
5
Outline the main steps involved in Selection sort
The list is searched for the next element in order; And placed in its correct position in the new list deleting original OR in the same list by swapping with th
Oops!
Check
Okay!
Check
5
With respect to OOP ,Define an Object and how is it identified?
An object is an instance of a class .It is identified by its state, behaviour and attributes.
Oops!
Check
Okay!
Check
5
Identify the given Chart
1.Gantt chart Visually maps out a Project plan 2.Organise complex projects 3.Coordinate multiple stakeholders 4.Estimate timeline n workloads.
Oops!
Check
Okay!
Check
5
Explain the advantages of Modular Programming
1.Reusability of code2.We can fix/update a module 3.Easy Program Mgmt n organisation4.Easy future maintainence5.Easy to design n test a module
Oops!
Check
Okay!
Check
5
Define Abstraction. Explain why an object is an example of Abstraction.
It is the process of removing the characteristics from something inorder to reduce it to a set of essential characteristics.It manages complexity.An object hide
Oops!
Check
Okay!
Check
5
Explain the steps involved in Bubble sort technique
BS first loops through the array.Then it compares each pair of the adjacent elements and swaps them if they are in wrong order and this is repeated until it is
Oops!
Check
Okay!
Check
5
Identify 2 similarities and 2 differences betweeen a Bubble Sort and Selection Sort
Simi are both use nested loops n each time reducing the inner loop. Diff areBubble sort swaps adjacent items each time it goes through the list;