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.
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.
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.
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.
5
Differentiate between the methods resetNext() and hasNext() methods with respect to Collections.
1,resetNext() method is used to start at the beginning of the list 2. hasNext() method checks whether there are still more items in the list.
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
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
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;
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
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.
5
Consider the following algorithms and determine the outputs
47,23,11
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
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
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
5
Outline one difference between ASCII and UNICODE representation.
ASCII uses 7 bit,it encodes only 128 characters.Unicode extend to 8,16,32 bit,requires more disk space n uses different representation