HTML/JavaScript

This is a java script note

Thursday, 23 February 2012

Ascii Codes

Ascii Codes

It is a very well-known fact that computers can manage internally only 0s (zeros) and 1s (ones). This is true, and by means of sequences of 0s and 1s the computer can express any numerical value as its binary translation, which is a very simple mathematical operation (as explained in the paper numerical bases).

Nevertheless, there is no such evident way to represent letters and other non-numeric characters with 0s and 1s. Therefore, in order to do that, computers use ASCII tables, which are tables or lists that contain all the letters in the roman alphabet plus some additional characters. In these tables each character is always represented by the same order number. For example, the ASCII code for the capital letter "A" is always represented by the order number 65, which is easily representable using 0s and 1s in binary: 65 expressed as a binary number is 1000001.

The standard ASCII table defines 128 character codes (from 0 to 127), of which, the first 32 are control codes (non-printable), and the remaining 96 character codes are representable characters:

*0123456789ABCDEF
0NULSOHSTXETXEOTENQACKBELBS TABLF VT FF CR SO SI
1DLEDC1DC2DC3DC4NAKSYNETBCANEM SUBESCFS GS RS US
2 !"#$%&'()*+,-./
30123456789:;<=>?
4@ABCDEFGHIJKLMNO
5PQRSTUVWXYZ[\]^_
6`abcdefghijklmno
7pqrstuvwxyz{|}~

* This panel is organized to be easily read in hexadecimal: row numbers represent the first digit and the column numbers represent the second one. For example, the "A" character is located at the 4th row and the 1st column, for that it would be represented in hexadecimal as 0x41 (65).

Because most systems nowadays work with 8bit bytes, which can represent 256 different values, in addition to the 128 standard ASCII codes there are other 128 that are known as extended ASCII, which are platform- and locale-dependent. So there is more than one extended ASCII character set.

The two most used extended ASCII character sets are the one known as OEM, that comes from the default character set incorporated by default in the IBM-PC and the other is the ANSI extend ASCII which is used by most recent operating systems.

The first of them, the OEM character set, is the one used by the hardware of the immense majority of PC compatible machines, and was also used under the old DOS system. It includes some foreign signs, some marked characters and pieces to represent panels.


The ANSI character set is a standard that many systems incorporate, like Windows, some UNIX platforms and many standalone applications. It includes many more local symbols and marked letters so that it can be used with no need of being redefined in many more languages:

3 Tips for Keeping Your Brain Strong 74

There are three things that you can do to keep your brain strong. They are keeping your mind active, feeding your body the right food, and exercising your body.
For starters, to keep your brain strong, you should keep your mind active. The best way-perhaps-to do that is to become a lifetime learner. Never stop learning. All of us have things we would like to learn more about. I myself, for instance, would like to improve my knowledge about science. Also, I would like to learn more about ancient societies and evolution. I would also like to expand my knowledge about consciousness, investment, music, and a whole host of other topics-the list goes on. Not only do I want to do all of these things, I am, in most cases, doing something about them by, for example, reading a book on investment, science, or health. You should do the same thing. Find out what you desire to learn more about and make that an active pursuit. You don't need to spend a whole hour doing it, you can simply spend just 15 minutes a day.
Another way to keep your brain strong is to feed your body the right food. Namely, you should eat a lot of salmon and vegetables. Salmon supplies your brain with a lot of omega-3 fatty acids. Not only do they keep your arteries clear so that nutrients can flow unimpeded into your brain, but also they keep your neuro-transmitters functioning strong. As for vegetables, any kind will do the job. It is said that eating only two or more serving a day will keep your mental apparatus in shape.
Finally, to keep your brain strong, you need to exercise. Exercise, some think, is an a panacea for the brain. That is to say that it is believed not only to keep the body strong, but also to do likewise for the brain. In the same way that exercise keep the body with functioning well, it also keeps the mind functioning well also. In other words, it preserves the brain's cognitive functioning from decline.
These are just a few tips that you can adopt so that you can keep your brain going strong: Keeping your mind active, eating the right food, and exercising your body.
                                                                                          BY:-NH Presents

General Knowledge Questions Answers

No. General Knowledge Question
01 The first Prime minister of Bangladesh was
Mujibur Rehman
02 The longest river in the world is the
Nile
03 The longest highway in the world is the Trans
Canada
04 The longest highway in the world has a length of About
8000 km
05 The highest mountain in the world is the
Everest
06 The country that accounts for nearly one third of the total teak production of the world is
Myanmar
07 The biggest desert in the world is the
Sahara desert
08 The largest coffee growing country in the world is
Brazil
09 The country also known as "country of Copper" is
Zambia
10 The name given to the border which separates Pakistan and Afghanistan is
Durand line
11 The river Volga flows out into the
Caspian sea
12 The coldest place on the earth is
Verkoyansk in Siberia
13 The country which ranks second in terms of land area is
Canada
14 The largest Island in the Mediterranean sea is
Sicily
15 The river Jordan flows out into the
Dead sea
16 The biggest delta in the world is the
Ganges Delta
17 The capital city that stands on the river Danube is
Belgrade
18 The Japanese call their country as
Nippon
19 The length of the English channel is
564 kilometres
20 The world's oldest known city is
Damascus
21 The city which is also known as the City of Canals is
Venice
22 The country in which river Wangchu flows is
Myanmar
23 The biggest island of the world is
Greenland
24 The city which is the biggest centre for manufacture of automobiles in the world is
Detroit, USA
25 The country which is the largest producer of manganese in the world is
China & South Africa
26 The country which is the largest producer of rubber in the world is
Malaysia
27 The country which is the largest producer of tin in the world is
China
28 The river which carries maximum quantity of water into the sea is the
Amazon River
29 The city which was once called the `Forbidden City' was
Peking
30 The country called the Land of Rising Sun is
Japan
31 Mount Everest was named after
Sir George Everest
32 The volcano Vesuvius is located in
Italy
33 The country known as the Sugar Bowl of the world is
Cuba
34 The length of the Suez Canal is
162.5 kilometers
35 The lowest point on earth is
The coastal area of Dead sea
36 The Gurkhas are the original inhabitants of
Nepal
37 The largest ocean of the world is the
Pacific ocean
38 The largest bell in the world is the
Tsar Kolkol at Kremlin, Moscow
39 The biggest stadium in the world is the
Strahov Stadium, Prague
40 The world's largest diamond producing country is
South Africa
41 Australia was discovered by
James Cook
42 The first Governor General of Pakistan is
Mohammed Ali Jinnah
43 Dublin is situated at the mouth of river
Liffey
44 The earlier name of New York city was
New Amsterdam
45 The Eifel tower was built by
Alexander Eiffel
46 The Red Cross was founded by
Jean Henri Durant
47 The country which has the greatest population density is
Monaco
48 The national flower of Britain is
Rose
49 Niagara Falls was discovered by
Louis Hennepin
50 The national flower of Italy is
Lily
51 The national flower of China is
Narcissus
52 The permanent secretariat of the SAARC is located at
Kathmandu
53 The gateway to the Gulf of Iran is
Strait of Hormuz
54 The first Industrial Revolution took place in
England
55 World Environment Day is observed on
5th June
56 The first Republican President of America was
Abraham Lincoln
57 The country famous for Samba dance is
Brazil
58 The name of Alexander's horse was
Beucephalus
59 Singapore was founded by
Sir Thomas Stamford Raffles
60 The famous British one-eyed Admiral was
Nelson
61 The earlier name of Sri Lanka was
Ceylon
62 The UNO was formed in the year
1945
63 UNO stands for
United Nations Organization
64 The independence day of South Korea is celebrated on
15th August
65 'Last Judgement' was the first painting of an Italian painter named
Michelangelo
66 Paradise Regained was written by
John Milton
67 The first President of Egypt was
Mohammed Nequib
68 The first man to reach North Pole was
Rear Admiral Robert E. Peary
69 The most famous painting of Pablo Picasso was
Guermica
70 The primary producer of newsprint in the world is
Canada
71 The first explorer to reach the South Pole was
Cap. Ronald Amundson
72 The person who is called the father of modern Italy is
G.Garibaldi
73 World literacy day is celebrated on
8th September
74 The founder of modern Germany is
Bismarck
75 The country known as the land of the midnight sun is
Norway
76 The place known as the Roof of the world is
Tibet
77 The founder of the Chinese Republic was
San Yat Sen
78 The first Pakistani to receive the Nobel Prize was
Abdul Salam
79 The first woman Prime Minister of Britain was
Margaret Thatcher
80 The first Secretary General of the UNO was
Trygve Lie
81 The sculptor of the statue of Liberty was
Frederick Auguste Bartholdi
82 The port of Baku is situated in
Azerbaijan
83 John F Kennedy was assassinated by
Lee Harvey Oswald

84 The largest river in France is
Loire
85 The Queen of England who married her brother-in-law was
Catherine of Aragon
86 The first black person to be awarded the Nobel Peace Prize was
Ralph Johnson Bunche
87 The first British University to admit women for degree courses was
London University
88 The principal export of Jamaica is
Sugar
89 New York is popularly known as the city of
Skyscrapers
90 Madagascar is popularly known as the Island of
Cloves
91 The country known as the Land of White Elephant is
Thailand
92 The country known as the Land of Morning Calm is
Korea
93 The country known as the Land of Thunderbolts is
Bhutan
94 The highest waterfalls in the world is the
Salto Angel Falls, Venezuela
95 The largest library in the world is the
United States Library of Congress, Washington DC
96 The author of Harry Potter Books is
JK Rowling
97 Nickname of New York city is
Big Apple
98 What do you call a group of sheep?
A Flock of Sheep
99 In which sport do players take long and short corners?
Hockey
100 Who was the youngest President of the USA?
Theodore Roosevelt
101 How many legs do butterflies have?
6 Legs & 2 Pair of Wings