Saturday, 13 April 2013

General Knowledge

Q.1- Which is the lowest point on Earth?
A.1- Dead Sea

Q.2- Who was the first Indian to join Indian civil service?
A.2- Satyendranath Tagore

Q.3- Who was the first lady Governor of India?
A.3- Sarojini Naidu

Q.4- Which Bird is the symbol of happiness?
A.4-Bluebird

Q.5- Which is highest battlefield in the field?
A.5-Siachen Glacier

Q.6- Which is the hardest substance available on earth?
A.6- Platinum

Q.7- Agha Khan Cup is associated with which game?
A.7- Hockey

Q.8-Who appointed the Chief Election Commissioner of india?
A.8-Presidrent

Q.9-Which is the largest state in India in terms of area?
A.9- Rajasthan

Q.10-When did Vasco-da-Gama come in India?
A.10- 1498

Q.11- Which act Against Gandhiji started Satyagraha in 1919 to protest?
A.11- Rowlatt Act.

Q.12- ‘Mohini Attam’ dance developed from which state?
A.12-Kerala

Q.13- In which state is Jawahar Tunnel located?
A.13- Jammu and Kashmir

Q.14- Who wrote the song ‘Saare Jahan Se Achha’?
A.14- Mohammad Iqbal

Q.15- Which is oldest news agency in the world?
A.15-AFA(Agency France Press)

Q.16- Which planet is knows as Red Planet.
A.16- Mars

Q.17-Who is the Author of Punchtantra?
A.17-Vishnu Sharma

Q.18- Which is the coldest planet in solar system?
A.18- Neptune

Q.19- Who was fastest shorthand writer?
A.19- Dr. G.D. Bist

Q.20- Where is Headquarters of WHO?
A.20- Geneva


Thursday, 11 April 2013

General Knowledge

Q.1- Who is regarded as the father of ‘The Two nation Theory’?
A.1- M.A.Jinnah

Q.2- Who was the political guru of Gopal Krishna Gokhale?
A.2- M.G.Ranade

Q.3- In which year Gandhi ji visited Kerala for the first time?
A.3- 1920

Q.4- In which year Gandhi-Irwin Pact was signed?
A.-1931

Q.5- Which place Akbar was born?
A.5-Amarkot

Q.6 –In which language were the Sangam classics written?
A.6-Tamil

Q.7- Who introduced the system of Local boards or Local Bodies in India?
A.7-Lord Ripon

Q.8- Who delivered his first sermon at Sarnath?
A.8- Buddha

Q.9- Who abolished the system of Dual Government in Bengal?
A.9-Warren Hastings

Q.10- Where from Aryans came in India?
A.10- Central Asia.

Q.11- What portion of actual produce was fixed as the State’s demand under the Zabti System?
A.11- One Third

Q.12- The place where Gandhti was imprisoned for the last time?
A.12- Agha khan palace

Q.13- The state that did not participate in the first war of Independence?
A.13- Tamilnadu.

Q.14- Who was Nana Saheb's commander-in-chief?
A.14- Tantia Tope

Q.15- Who did not participate in revolt of 1857?
A.15- Bhagat Singh

Q.16- What was the earliest tribal assembly?
A.16. Vidhata

Q.17- What was name the Governor-General when the 1857 Revolt broke out?s
A.17- Canning

Q.18- Which was the earliest public association to be formed in modern India?
A.18-The landholder’s Society

Q.19- Where did Gandhiji launched his first struggle ?
A.19- Champaran

Q.20- Who was the first to talk about Swaraj and Swadeshi?
A.20- Swami Dayanand Sarswati.


Wednesday, 10 April 2013

GK Questions

Q.1:- What was the type of marriage in Vedic period, in place of dowry, there was a token bride price of a cow and a bull?
A.1:- Asura

Q.2:-In which field of art extraordinary progress was made in the Gupta period?
A.2:- Painting

Q.3:- Which is oldest Veda?
A.3:-Rig Veda

Q.4:- Who had given the title of ‘Mahatma’ to Gandhi ?
A.4:- Rabindra Nath Tagore

Q.5:- Between whom the battle at Waihind in 1008-09 A.D was fought?
A.5:- Mahmud of Ghazni and Anandapala.

Q.6:- As a prince where was Ashoka sent to suppress the revolt?
A.6:-Taxila

Q.7:- Where did Aurangzeb die?
A.:- Ahmadnagar

Q.8:-Where is called Ashoka’s the Third Buddhist council?
A.:- Magadha

Q.9.:- Which was the earliest tribal assembly?
A.9:- Vidhata

Q.10:- When was Burma separated from India?
A.:-1937

Q.11:- What was the real name of Chanakya?
A.11:- Bishnu Gupta

Q.12:- Where did Rigvedic Aryans live in India?
A.12:-Sapta Sindhu Area

Q.13:- Which ruler went to Sri Lanka to spread Buddhism?
A.13:-Sanghmitra

Q.14:- Who is the founder of Mahabalipuram?
A.14:-Narshima Varman

Q.15:- Who is the founder of the Capital city of Agra?
A.15:-Sikinder Lodi

Q.16:- Who was Francisco De Almeida?
A.16:- Portuguese Viceroy in India.

Q.17:- With which movements is the slogan "Do or die" associated?
A.:- Quit India Movement.

Q.18:- With whose permission did the English set up their first factory in Surat?
A.18:-Jahangir

Q.19:- In the 'individual Satyagraha', Vinoba Bhave was chosen as the first Satyagrahi. Who was the second?
A.19:- Pandit Jawaharlal Nehru

Q.20:- Who edited ‘Basumati’, the oldest Bengali Daily paper ?
A.20:- Barinder Ghosh.


Thursday, 4 April 2013

GK Questions for Knowledge

Q.1 In which year The Battle of Plassey did fight?
A.1:- The Battle of Plassey, 23 June 1757.

Q.2:-What is sacred book of Buddhists?
A 2:- Tripitakas is the holy book of Buddhists.

Q.3:- which year the system of competitive examination for civil service was accepted in principle?
A 3:- 1853

Q.4:- Who Two of the great Mughals wrote their own memories?
A.4:- Babar and Jahangir

Q.5:- Wich king belongs the Lion capitol at Sarnath?
A.5:-Ashoka

Q.6:-When The title of 'Viceroy' was added to the office of the Governor-General of India for the first time in country?
A.6:- 1858 AD

Q.7:- In which city Vasco d agama landed at 1498?
A.7:- Calicut

Q.8:- Who is the Jain saint credited with the spread of Jainism in Karnataka?
A.8:-Bhadrabahu

Q.9:- To whom built by bibi ka makbara?
A.9:-Aurangzeb

Q.10:- To whom designed by Indian flag?
A.10:-Madam cama

Q.11:-Who formed the Indian League in London?
A.11:-Shyamji Krishna Verma

Q.12:- Which was the capital of Shivaji?
A.12:-Raigarh

Q.13:-Which battle in Akbar defeated Hemu?
A.13:-2nd Battle of Panipat.

Q.14:- Who founded SERVENT OF INDIA SOCIETY?
A.14:- GK Gokhale.

Q.15:-Gautama Buddha was discourse of which language?
A.15:- Pali

Q.16:- Which republic belongs to Buddha?
A.16:-sakyas

Q17:- Which city ruled by Tipu Sultan?
A.17:-Mysore

Q.18:-Which first country establish regular trade with India?
A.18:-Portuguese

Q.19:-When Aryans came from central asia to india?
A.19:- 2500 B.C.

Q.20:- From which city Babar entered India for the first time?
A.20:- Punjab


Monday, 3 September 2012

Expat Parser

Expat is an parser which is used to read, update, create and manipulate XML data.
Types of XML parsers:
a) Tree based parser - This parser analyzes the whole document and provides tree elements after transforming a XML document. Document Object Model (DOM) is an example of Tree-based parser.
b) Event based parser - XML document views as a series of events. After occuring any event it calls a function to handle it. Expat parser is an exaple of event based parser.
Event based parser focus the content of any XML document not their structure. So this type of parser can access data faster than tree based parsers.

Wednesday, 8 August 2012

utf8_encode — This function is used to Encode an ISO-8859-1 string to UTF-8

Above function encodes string data into UTF-8 and returns ecoded version of the string. UTF-8 mechanism is standard and used by Unicode for encoding character values into a byte system. PHP encodes UTF-8 upto 4-bytes.

Sunday, 29 July 2012

Cookie in CakePHP

Write Cookie:
$this->Cookie->write('countryName', 'India', false, 0); Argument Description sequence: cookie name, value, encrypted or not if set false means cookie will store as plain text.
Read Cookie:
echo $this->Cookie->read('countryName');
Output: India