Search over 10,000 free study notes
Over a million students use our free study notes to help them with their homework
Top answers
Describe the difference between TCP and UDP.
TCP (Transport Communication Protocol) allows for guaranteed communication between two machines. Connections are established with acknowledgements, and the receiver will also send acknowledgements when packe...
LW
Answered by
Lewis W.
•
Computing tutor
2042 Views
Describe two's complement.
Two's complement is improvement on one's complement. To get a negative number in One's complement, one has to invert all numbers (turn 1 to 0, and 0 to 1), for two's complement is the same but add 1 (e.g. in...
LP
Answered by
Lukas P.
•
Computing tutor
2277 Views
A common construct found in many algorithms is a loop. Using pseudocode, write a pre-condition loop to output all of the even numbers between 99 and 201.
Key points when answering questions are the marks given for it and how the question is defined. In this example we need to write a pre-condition loop to output all the even numbers in the range (99,201) , an...
SA
Answered by
Stylianos A.
•
Computing tutor
3392 Views
Write a function in pseudocode that determines if a given string is a palindrome
Declare and Initiate a new empty stringTraverse the given string using a loopTake each char from the given string and concatenate it to the beginning of the new stringCompare the final new string with the gi...
CV
Answered by
Charles V.
•
Computing tutor
2206 Views
Given an ordered array of integers "V" and a integer "Sum", write a function that would return "true" if it finds two numbers in V that add up to Sum, and "false" otherwise.
Because there is no unique solution to the problem the goal is to think different ways to approach an issue and ultimately opt for the best one in terms of complexity. There is an example of set of answers t...
FD
Answered by
Fabio D.
•
Computing tutor
1834 Views
←
5
6
7
8
9
→