Thursday, 15 September 2011

Numerical sequence test

In a numerical sequence test it is necessary to identify a pattern that is occurring in the sequence.
The numbers in the sequence may be progressing, or they may be decreasing. In some cases they may be both progressing and decreasing within the sequence, and in some cases two separate sequences may be interwoven. It is up to you to determine which of these is occurring and to continue the sequence by providing
the missing number(s) indicated by the question mark(s) in each question.
ANSWERS BELOW CLICK READ MORE...
1.
0, 1, 2, 3, 5, 7, 9, 12, 15, 18, ?
2.
3, 6, 12, 21, 33, ?
3.
1000, 975, 925, 850, 750, ?
4.
1, 10, 2.5, 7.5, 4, 5, ?, ?
5.
12, 8.5, 5, 1.5, ?
6.
8, 16, 64, 128, 512, 1024, ?
7.
12, 11, 9, 6, 2, ?
8.
1, 1.5, 3, 7.5, 21, ?
9.
2, 6, 9, 27, 30, 90, 93, ?
10.
5, 6, 7, 8, 10, 12, 14, 20, ?, ?
11.
100, 99, 96, 91, 84, 75, 64, ?
12.
19, 38, 57, 76, 95, 114, ?
13.
2, 5, 12, 27, 58, 121, ?
14.
10, 9.75, 9.25, 8.5, 7.5, 6.25, ?
15.
10, 11.75, 9.25, 11, 8.5, ?

Wednesday, 20 July 2011

Methods of Interpreting bit Setting

Non-Negative Binary System
In this System each bit position represents a power of 2.
The right most bit position represent 20 which equals 1.
The next position to the left represents 21= 2 and so on.
An Integer is represented as a sum of powers of 2. A string
of all 0s represents the number 0. If a 1 appears in a
particular bit position, the power of 2 represented by that
bit position is included in the Sum. But if a 0 appears, the
power of 2 is not included in the Sum. For example 10011,
the sum is 19
   
Ones Complement Notation

Negative binary number is represented by ones Complement Notation.
In this notation we represent a negative number by changing each bit
in its absolute value to the opposite bit setting. For example,
since 001001100 represent 38, 11011001 is used to represent -38. The
left most number is reserved for the sign of the number. A bit String
Starting with a 0 represents a positive number, where a bit string
starting with a 1 represents a negative number.
   

Methods of Interpreting bit Setting

Why Data Structures?
   1. Data structures study how data are stored in a computer so
      that operations can be implemented efficiently
   2. Data structures are especially important when you have a large
     amount of information
   3. Conceptual and concrete ways to organize data for efficient
      storage and manipulation.
Methods of Interpreting bit Setting
   1. Binary Number System
      * Non Negative
      * Negative
             o Ones Complement Notation
             o Twos Complement Notation
   2. Binary Coded Decimal
   3. Real Number
   4. Character String