Top answers


What are higher order functions in functional programming? How does the 'map' function work and why is it a higher order function?

Higher order functions either have one or more arguments that are themselves functions , return a function as their result, or both . Arguments to higher order functions can themselves be higher order functi...
JC
Answered by Joseph C. Computing tutor
2278 Views

Describe the operations of an optical disk drive used to read data from an optical disk, such as a CD or DVD.

Data is stored one a continuous spiraled track around the optical disk, the track is made up of a continuation of lands and pits, where lands will reflect the light focused onto them, and pits will scatter t...
DC
Answered by Daniel C. Computing tutor
3403 Views

How can XOR be used in encryption and what type of encryption is this ?

As we know, XOR is a logical operator which can take 2 inputs and process one output. Given that two parties want to exchange this would be very useful. If A has message 1010 which may stand for "hello&...
AA
Answered by Ahmed A. Computing tutor
2315 Views

Given an unlimited number of light bulbs (that break at a certain height), and a building with 100 floors, how do you determine the height that the light bulb breaks?

The solution is a binary search algorithm (where you start on floor 50th and move up or down depending if the bulb breaks or not, always picking the middle floor of your option range).
DG
Answered by Diana G. Computing tutor
1987 Views

What is 'Virtual Memory', and how does it work?

Virtual memory is the practice of moving information from RAM to secondary storage (eg the hard disk). It allows computers to make use of more memory than they have installed . When space in the RAM is runni...
BC
Answered by Barnaby C. Computing tutor
2589 Views