0 of 11 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 11 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
A programmer is writing a program that will output the median value of the data in an array. The array given may not be in order.
The median is found by having all the numbers in a row in ascending numerical order, and
taking the middle value.
Write an algorithm to output the median value of the given array called data.
This response will be reviewed and graded after submission.
The following pseudocode algorithm is for the subroutine characterMovement.
procedure characterMovement(inputKey:byVal, characterx:byRef,charactery:byRef) if inputKey == 37 then characterx = characterx + 1 elseif inputKey == 38 then charactery = charactery + 1 elseif inputKey == 39 then characterx = characterx – 1 elseif inputKey == 40 then charactery = charactery – 1 endif endprocedure
The three parameters within the subroutine are:
SQL & Prolog are examples of which programming paradigm?
Consider the following algorithm in Fig.2, expressed in pseudocode, as function S:
State the name of the algorithm implemented in Fig.2.
What is a MAC address?
What does a WAP provide?
What are the names of common types of wired connection within a LAN?
Match the flowchart shapes to their purpose:
|
|
|
|
|
|
|
|
Explain, giving an example, how pipelining in a CPU could speed up the execution of the code above.
This response will be reviewed and graded after submission.
Which assembly language instruction is used in place of a condition in an IF statement?
Which program will output the sum of two input numbers?