what does a%b do in python?
Returns the remainder of a/b
What is an algorithm
An algorithm is a step by step method of solving a problem or manipulating data. It defines a set of instructions to be executed in a certain order to get the desired output.
What kind of search would you use to find a number in a phone book? Binary or Linear?
Binary
What is inheritance in OOP?
a mechanism that allows a class to inherit properties and behaviors from another class.
How do you reference all of the elements in a one-dimension array?
For loop
What digits are in a binary system?
0,1
list at least 2 different time complexities in big O notation
What is the decimal value of the binary number 1101?
13
difference between a compiled and an interpreted language?
A compiled language is converted into machine code so that the processor can execute it. An interpreted language is a language in which the implementations execute instructions directly without earlier compiling a program into machine language. Compiled languages are faster
What are the place values in a binary number system?
128,64,32,16,8,4,2,1
What is the precision of a typical 64-bit double?
15 digits
What is a linked list data structure?
The elements are linked using pointers to form a chain. Each element is a separate object, called a node. Each node has two items: a data field and a reference to the next node. The entry point in a linked list is called the head.
A linked list is a dynamic data structure, where the number of nodes is not fixed, and the list has the ability to grow and shrink on demand.
What is a bucket sort algorithm
distribute the elements of an array into a number of buckets and then sort those individual buckets by a different sorting algorithm or by recursively applying the bucket sorting algorithm.
The observation that the number of transistors on integrated circuits doubles approximately every two years
Moore's Law