## Binary options analysis majority of asian equities slide on cyprus woes

28 comments### Free forex training london

The following are sample midterms. I still need to enter in problems in a few places. All sample midterms should be complete by Saturday, March 5th. I will also add a few more solutions but not solutions for every problem. To prepare for the exam, I suggest the following approach: On questions where you have difficulty, re-read the relevant section in the notes and then try to re-do the homework questions.

The Midterm exam is closed note and closed book. Calculators are not allowed they will not be needed. All others will be given. Answer is 15 in decimal. This is similar to what happens when you add a zero at the end of a decimal number - you get the same result as multiplying the number by 10 1.

Why is the binary number system base 2 important in computing? Why don't we use, for example, base 3 or base 5? Give a sentence answer.

In addition, computers are built using logic gates. Logic gates are built using transistors. To represent these to states, we only need a number system with two values. Note that the statement "not all numbers can be represented with base 3 or 5" is not correct. Write down the algorithm that you use to do the multiplication of two decimal numbers, for example,. Perform the following multiplication, assuming that the numbers are binary, in two ways show your work and write your answer in binary:.

You should get the same answer for both cases: For the algorithm question, I am looking for answers that include such statements as "multiply the two numbers in the first column. If the result is larger than 99, then split the result in two pieces an place the left-hand side on the top of the second column. The first and last questions involve setting up a logic table for every possible combination of inputs A and B and then writing down the corresponding output.

The question does not ask what the logic table is for a NAND and AND gate - the question is about the logic table corresponding to the given configuration of logic gates. Note that the answer logic table for the third answer is the same as that of an AND gate. In class we did an experiment in which we estimated the number of bytes a person could memorize in 60 seconds. Our estimate was 1. Describe the experiment and the calculation used to arrive at the estimate of 1.

The experiment involved memorizing a string of digits in 60 seconds. The average number memorized was 10 digits. An alternative and equally valid solution is to say assume that each digit is encoded using four bits which allows 16 patterns, enough to represent the symbols for 0, 1, Suppose that you have an instrument that can store eight bits in memory. Your instrument is set up to measure values from 0. You assign the binary number to the measured value of 0. Describe three types of limitations on computations that can be performed with a computer.

For each case, give an example of a type of computation where this limitation would be evident. The following set of logic gates can be used to add two binary numbers. If switch A is "on" in the down position and the switches labeled B and Carry in are "off" in the up position , which lights will be lit? The "sum part" bulb will be lit. Note that you did not need to know the logic table for an XOR gate or what state the switches are in on the image. You were told that the bulbs correspond to binary addition and that.

So the result of this is the same as if you typed. The second line creates a matrix that is 10 rows by 10 columns. The third line attempts to access the 11th column which does not exist. The part that can be converted into a for loop start on the second line. The folllowing are all valid answers:.

On the left a black triangle is shown with a grid overlayed. In the middle panel, draw a black-and-white digitized version of the triangle in Panel 1 using tiles that are the same size as the grid squares. State the algorithm that you used to determine if a tile was to be black or white. In the right-most panel, and using the same algorithm, draw a black-and-white digitized version of the triangle in Panel 1 using tiles that are one-half the width and height of the grid squares.

Write down a possible representation of what you drew in the middle panel as a series of ones and zeros. My new monitor supports bit color. My new monitor can represent twice as many colors than my old monitor. In a few sentences or bullet points, explain why is this is incorrect and re-write the last sentence so that it is correct. With 8 bits, 2 8 unique combinations of 8 zeros and ones can be written down. If we associate a color with each each set of 8 zeros and ones, then 2 8 colors can be represented.

For 16 bit color, the number of unique combinations is 2 The correct sentence is "My new monitor supports times the number of colors". The claim of twice as many is a mistake because number of unique combinations of zeros and ones and hence number of unique colors is not proportional to the number of bits. If you were to write an advertisement, would you say your brand has " times more colors" or "twice as many bits" than the competitor's brand?

You are told that the disk drive contains square images that are made up of square black or white tiles. You are also told that 1 means black. Suppose that you have an eight-bit calculator and you wanted to add a number to The calculator was set up to represent integers from zero and higher. What is the largest number that you could add to and still expect a result? If you choose to associate each of the unique combinations of 0s and 1s with a decimal number, you could write 0, 1, 2, For reference, the logic table associated with a NAND gate is shown.

The interpretation of the image is that each of the three input numbers are represented as a zero or one, depending on the state of the switch. The interpretation of the light bulbs is that "lit" represents a one and "dark" represents a zero.

If both lights are lit then it means the sum in binary is 1 1. Write down commands that you could enter in MATLAB to create a matrix that has two rows and three columns and has the value 3. Which computer would be better for a person who will only use the computer for storing his collection of digital photos and videos?

Suppose that you have an instrument that can store only four bits in memory. What is the largest instrument measurement value of X that is possible to store in this memory? If both switches A and B are "on" down , which lights will be lit?

Retrieved from " http: Views Article Discussion View source History. A 6x6 grid Grid with a black tile where a one occurs. Note that a valid solution is this image rotated 90 degrees - there is not enough information given to determine unique answer! A 3x3 grid blue squares placed on top of the 6x6 grid. Algorithm for coloring a tile black or white: If any black enclosed by bigger tile, color big tile black. To save this image on the disk drive you would write Alternative solution Algorithm for coloring a tile black or white: Adding 55 to gives , which is the largest number that you can represent with only 8 bits.

Input A Input B Output 0. The correct answer is E. None of the above! If your instrument was upgraded to store five bits in memory, what is X?