Saturday, January 30, 2010

Code for tab in drupal.

This conditional statement controls the tabs.
if ($tabs = theme('menu_local_tasks')) {
$output .= $tabs;
}

How to build joomla templates

Step 1:

Create  a  folder into the templates folder.This folder name must be the template name.


Step 2:

Create a folder named "style" for stylesheet,

Create a folder named "javascript" for javascript,

Create a folder named "images" for images,

Create a folder named "html" for components,

Create a file index.php into you template folder. After that copy and paste the following lines.

<?php
/**
* @copyright    Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license        GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/


defined('_JEXEC') or die('Restricted access');
$url = clone(JURI::getInstance());
?>


Step 3: Copy and paste the follwing lines

<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include />
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/[your css].css" rel="stylesheet" />
if any javascript file is needed, write the following lines

<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/javascript/[your script].js"></script></head>
<body>


Step 4: For displaying primary links paste thi following codes into the appropriate <Div>

<jdoc:include type="modules" style="" />

Step 5:

For displaying your site content write the following code within appropriate <Div>

<jdoc:include type="component" />

Step 6:
Colse all the opened html tag.

Pie chart using php

<?php
$myImage = ImageCreate(300,300);
$white = ImageColorAllocate ($myImage, 255, 255, 255);
$red  = ImageColorAllocate ($myImage, 255, 0, 0);
$green = ImageColorAllocate ($myImage, 0, 255, 0);
$blue = ImageColorAllocate ($myImage, 0, 0, 255);
$lt_red = ImageColorAllocate($myImage, 255, 150, 150);
$lt_green = ImageColorAllocate($myImage, 150, 255, 150);
$lt_blue = ImageColorAllocate($myImage, 150, 150, 255);

for ($i = 120;$i > 100;$i–) {
ImageFilledArc ($myImage, 100, $i, 200, 150, 0, 90, $lt_red, IMG_ARC_PIE);
ImageFilledArc ($myImage, 100, $i, 200, 150, 90, 180, $lt_green, IMG_ARC_PIE);
ImageFilledArc ($myImage, 100, $i, 200, 150, 180, 360, $lt_blue, IMG_ARC_PIE);
}

ImageFilledArc($myImage, 100, 100, 200, 150, 0, 90, $red, IMG_ARC_PIE);
ImageFilledArc($myImage, 100, 100, 200, 150, 90, 180 , $green, IMG_ARC_PIE);
ImageFilledArc($myImage, 100, 100, 200, 150, 180, 360 , $blue, IMG_ARC_PIE);
header (“Content-type: image/png”);
ImagePNG($myImage);
ImageDestroy($myImage);
?>

Dynamic bar chart using php

<?php
header(“Content-type: image/jpeg”);
$data = array(‘3400′,’2570′,’245′,’473′,’1000′,’3456′,’780′);
$sum = array_sum($data);

$height = 255;
$width = 320;
$im = imagecreate($width,$height); // create width , height px of chart background
/*    $background_color = imagecolorallocate($im, 0, 0, 0);
*/    $white = imagecolorallocate($im,255,255,255);
$black = imagecolorallocate($im,0,0,0);
$red = imagecolorallocate($im,255,0,0);
//create the X & Y axis lines.
imageline($im, 10, 5, 10, 230, $black);
imageline($im, 10, 230, 300, 230, $black);

$x = 15;
$y = 230;
$x_width = 20;
$y_ht = 0;

for ($i=0;$i<7;$i++){
$y_ht = ($data[$i]/$sum)* $height;
imagerectangle($im,$x,$y,$x+$x_width,($y-$y_ht),$red);

/*    $colorHandle = imageColorAllocate($im, 225, 192, $i); // allocate color
imageFilledRectangle($im, $x,$y,$x+$x_width,($y-$y_ht), $colorHandle);// use it for drawing
*/
imagestring( $im,2,$x-1,$y+10,$data[$i],$black);
$x += ($x_width+20);
}
imagejpeg($im);
?>

Friday, January 29, 2010

DIRECTORY_SEPARATOR in php

DIRECTORY_SEPARATOR = strtoupper(substr(PHP_OS,0,3)=='WIN')?'\\':'/';

Monday, January 25, 2010

WBCS preli question paper 2010


W.B.C.S EXECUTIVE EXAMINATION, 2010
Preliminary
Time: 2 hours 30 minutes Marks: 200
GENERAL STUDIES

1. A pugilist is a
(A) boxer                               (B) swimmer
(C) athlete                              (D) weight-lifter


2. The specialist who handles problems in the human body related to bones is a/an
(A) orthodontist                      (B) osteopath
(C) podiatrist                          (D) oncologist

3. Baptism of fire means
(A) a fire fighting act
(B) a bad beginning in the first job
(C) a difficult introduction to an experience
(D) a religious experience

4. A duck is a bird, but to duck is
(A) to feel shy                          (B) to refuse
(C) to abandon                        (D) to avoid

5. Insert the appropriate phrasal verb in the blank below and make the sentence meaningful:
This evidence _____________ with what one already knows.
(A) ties in                                 (B) sets in
(C) gives in                               (D) goes down

6. A manicurist takes care of
(A) foot                                    (B) ear
(C) nails                                   (D) mind

7. Fill in the blank with the right word:
A lame duck organization is one which needs ___________.
(A) authority                            (B) staff
(C) power                               (D) support

8. 'To give a dog a bad name' means
(A) it is very difficult to destroy the reputation of a loyal person
(B) it is very difficult to lose a bad reputation
(C) it is very difficult to earn a good reputation in a bad company
(D) it is very difficult to both be loyal and do something that jeopardizes self-reputation

9. The prospect of her marriage is remote.
The opposite of 'remote', in this sentence, would be
(A) high                                   (B) less
(C) far                                     (D) near

10. 'We are superior to everybody else' is the aptitterance of a/an
(A) egoist                                (B) pacifist
(C) anarchist                            (D) chauvinist

11. Choose the right alternative from the options given below:
A gourmet loves —.
(A) Fashion                             (B) Action
(C) Food                                 (D) Films

Direction for Question Nos. 12 and 13
Fill in the blanks in the sentences choosing the most meaningful alternative from the ones supplied:

12. The street is not properly .
(A) Illumed                             (B) Illumined
(C) Illuminated                        (D) Enlightened

13. The of the place attracts many ascetics.
(A) Quietness                         (B) Silence
(C) Quietude                          (D) Soundlessness

14. Choose the correct alternative from the ones supplied:
Detect where the adjective "public" is used in a derogatory sense:
(A) Public house                    (B) Public woman
(C) Public servant                  (D) Public speech

Direction for Question Nos. 15 to 17
Fill in the blank with the correct alternative from the ones supplied:
15. The man who follows his nose actually follows his .
(A) Passion                          (B) Rationality
(C) Instinct                           (D) Memory

16. Lachrymose nature means .
(A) Lethargic                        (B) Prone to anger
(C) Prone to tear                  (D) Energetic

17. A man in the charge of farming and nurturing animals is called .
(A) A ploughman                 (B) A farmer
(C) A firm-manager             (D) A husbands man

18. Choose the right alternative from the options given:
A man with an irrationally fixed idea is called
(A) An eccentric                  (B) A maniac
(C) A manikin                      (D) A phobic

19. Choose the right word from the alternatives to complete the sentence idiomatically:
A clever man sweeps his family scandals under the .
(A) Ground                         (B) Floor
(C) Carpet                          (D) Grave-stone

20. Fill in the blank with correct word to make the sentence meaningful:
It is usual nowadays to blow one's own
to impress others.
(A) Horn                           (B) Trumpet
(C) Drum
(D) Band
Direction for Question Nos. 21 and 22
Opposite Meaning from these:

21. (A) Doggish Canine
(B) Manly Virile
(C) Divine Infernal
(D) Earthly Terrestrial



22. (A) Pedant Pedagogic
(B) Humid Arid
(C) Erroneous Faulty
(D) Horrible — Horrendous


23. Choose the correct alternative from the options to fill in the blanks:
'In the time of danger, we should try to take the bull by the horns' means "In the time of danger we should try to "
(A) Surmount it
(B) Face the situation boldly
(C) Overcome it
(D) Control ourselves


Direction for Question Nos. 24 and 25
Choose the word from the list which is nearest in meaning to the underlined part of the sentence:


24. The separation from a lover fills one's mind with blues.
(A) Sadness
(B) Romanticism
(C) Nostalgia
(D) Colourfulness

25. Hike in oil price may mar the future of the trade world.
(A) Harness
(B) Help
(C) Better
(D) Worsen

26. Enzymes speed up biochemical reactions by
(A) Increasing the activation energy of the reaction
(B) Lowering the temperature of the reaction
(C) Increasing the temperature of the reaction
(D) Lowering the activation energy of the reaction

27. The narrow portion between uterus and vagina of higher mammals is known as
(A) Clitoris
(B) Urethra
(C) Oviduct
(D) Cervix

28. Presence of sunken stomata in leaves indicates the character of
(A) Hydrophytes
(B) Xerophytes
(C) Halophytes
(D) Mesophytes

29. Cardiac muscles do not undergo fatigue, because
(A) Interconnection of cells by intercalated disc
(B) Having numerous mitochondria
(C) Having more actins
(D) Having more myosin

30. Which Five Year Plan was suspended one year before its time schedule?
(A) Third Plan
(B) Fourth Plan
(C) Fifth Plan
(D) Sixth Plan

31. At which Delhi Durbar the Queen of England was proclaimed the Empress of India?
(A) 1876-77 A.D.
(B) 1911 A.D.
(C) 1921 A.D.
(D) None of the above

32. Rate of radiation of heat from a body is the highest if its surface is
(A) White
(B) Smooth
(C) Smooth but black
(D) Rough but black

33. Which of the following is not a physical change?
(A) Dehydrating milk to get milk powder
(B) Sublimation of iodine
(C) Dissolving sugar in tea
(D) Burning of wax in a candle

34. The vegetative body of a bry ophy te/moss represents the structure of
(A) Sporophyte
(B) Gametophyte
(C) Sporophyte or gametophyte
(D) Sporophyte and gametophyte

35. Polytene chromosome is found in the cells of
(A) Salivary gland of larvae of flies
(B) Liver of man
(C) Neuron of insects
(D) None of the above

36. Chittaranjan in West Bengal is well known for its
(A) Fertiliser plant
(B) Locomotive works
(C) Iron and Steel industry
(D) None of the above

37. VAT is imposed on
(A) the final consumer of a commodity
(B) total value added at the final stage of production of a commodity
(C) the value added at each stage of production of a commodity
(D) aggregate value in terms of cost of production of the producer of a commodity

38. The gene for Haemophilia is
(A) X-linked recessive
(B) X-linked dominant
(C) Y-linked
(D) Located in autosome

39. Who was the main inspiration of the Young Bengal movement?
(A) Rammohan
(B) Derozio
(C) Debendranath
(D) David Hare

40. The minimum number of artificial satellites required for communication throughout the globe is
(A) i
(B) 2
(C) 3
(D) 4


41. The toxic chemical element that caused Minamata disease in Japan was
(A) Uranium
(B) Mercury
(C) Cadmium
(D) Arsenic

42. Who is called "A traditional moderniser"?
(A) Vidyasagar
(B) Swami Vivekananda
(C) RammohanRoy
(D) B.G.Tilak

43. The Right to Information Act is applicable to the whole of India except to the state of
(A) Jammu and Kashmir
(B) Mizoram
(C) Manipur
(D) Nagaland

44. Which metal ion is responsible for electron transportation in photosynthesis?
(A) Sodium
(B) Potassium
(C) Cobalt
(D) Iron

45. The Muhammadan Anglo-Oriental College of Aligarh was founded in the year
(A) 1868 A.D.
(B) 1875 A.D.
(C) 1883 A.D.
(D) 1906 A.D.

46. India developed RISAT 2 satellite in collaboration with
(A) USA
(B) Russia
(C) France
(D) Israel

47. The earthquake in Latur is believed to have resulted from
(A) Excessive loading of water
(B) Plate movement
(C) Fault line underneath a dam
(D) Folding

48. has been declared the International Year of Astronomy.
(A) 2008
(B) 2009
(C) 2010
(D) None of the above

49. In photosynthesis, 'Light reaction' takes place in
(A) Cytosol
(B) Grana of chloroplast
(C) Stroma of chloroplast
(D) Ribosome

50. How much of India's crude oil requirement is imported?
(A) 65%
(B) 70%
(C) 75%
(D) 80%

51. Haversian system is a part of
(A) Kidney
(B) Bone
(C) Heart
(D) Brain

52. With the people of which country Harappan people carried trade?
(A) China
(B) Iran
(C) Russia
(D) Sumer

53. Nadir Shah invaded India in the year
(A) 1738 A.D.
(B) 1739 A.D.
(C) 1740 A.D.
(D) 1741 A.D.

54. The oldest school of Indian Philosophy is
(A) Yoga
(B) Sankhya
(C) Vaisesika
(D) Karma Mimansa

55. The Treaty of Amritsar was signed by the English with Ranjit Singh in the year
(A) 1807 A.D.
(B) 1809 A.D.
(C) 1811 A.D.
(D) 1813 A.D.

56. To which period of Indian history did Aryabhatta and Varahamihira (Scientist and Mathematician
respectively) belong?
(A) Maurya period
(B) Gupta period
(C) Pala period
(D) Delhi Sultanate

57. The apex body which operates micro-finance scheme by promoting self-help groups of individuals from a homogeneous class through banks or non-government organisations is
(A) Regional Rural Bank
(B) Grameen Bank
(C) State Bank of India
(D) National Bank for Agriculture and Rural Development

58. Who was the founder-President of theSwaraj Party?
(A) Motilal Nehru
(B) C.R.Das
(C) Rajendra Prasad
(D) Rajagopalachari
59. Who was the Governor-General who decided in favour of Western education in India?
(A) Lord Cornwallis
(B) LordBentinck
(C) LordRipon
(D) LordCurzon

60. Under which Article of the Indian Constitution provision has been made for the formation of a Finance Commission to deal with various aspects of Centre-State financial relationship?
(A) Article 245
(B) Article 280
(C) Article 356
(D) Article 370


61. The number of m' s in the series a bbb ccccc ddddddd ................... is
(A) 15
(B) 17
(C) 25
(D) 27

62. Which of the following is a good nuclear fuel?
(A) Uranium 238
(B) Plutonium 239
(C) Neptunium 239
(D) Thorium 236

63. Among the districts of West Bengal, according to 2001 census data sex ratio is lowest in
(A) Kolkata
(B) Purulia
(C) Hooghly
(D) Uttar Dinajpur

64. What did Iqta mean during Sultanate period?
(A) A form of Salutation
(B) An important official
(C) The grant of land revenue from a village or territory
(D) None of the above

65. A tube-well will not work if the depth of water below the ground is
(A) 20 ft.
(B) 25 ft.
(C) 28 ft.
(D) 38 ft.

66. Who founded the "Amrita Bazar Patrika"?
(A) Surendra Nath Banerjee
(B) Barindra Ghosh
(C) Krishna Kumar Mitra
(D) Sisir Kumar Ghosh

67. The technique of 'DNA sequencing' was discovered by
(A) H.G.Khorana
(B) Watson and Crick
(C) Frederick Sanger
(D) E.M. Southern

68. Which one of the following companies has recently entered into a memorandum of understanding with the Uranium Corporation of India for exploration of uranium deposits?
(A) ONGC
(B) GAIL
(C) Reliance Petroleum
(D) EssarOil

69. A Cladogram depicts the hypothesis of
(A) Evolutionary relationship
(B) Phenatic relationship
(C) Genetic relationship
(D) Taxonomic relationship

70. Which movement of Gandhiji joined with Khilafat movement?
(A) Civil Disobedience
(B) Non-Co-operation
(C) Quit India
(D) Against Indigo cultivation (1917)

71. Which Carbohydrate is used commercially in the silvering of mirrors?
(A) Sucrose
(B) Fructose
(C) Cellulose
(D) Glucose

72. The capital of Tipu Sultan was at
(A) Mysore
(B) Seringapattam
(C) Sringeri
(D) Belur

73. Who v/as the Governor-General of India when Widow Remarriage Act was passed?
(A) LordRipon
(B) Lord Canning
(C) Lord Dalhousie
(D) LordBentinck

74. The Muslim League joined the Interim Government in
(A) October 1946
(B) November 1946
(C) December 1946
(D) January 1947

75. Who translated 'Nil Darpan' in English?
(A) Madhusudan Dutt
(B) Rev. James Long
(C) Harish Chandra Mukherjee
(D) Kali Prasanna Singha

76. Consider the following statement
1. Definition of force is obtained from Newton's first law of motion.
2. Definition of force is obtained from Newton' s second law of motion.
3. In a house-hold wiring the appliances are connected in series.
4. The picture-tube of a television is basically a cathode ray tube.

(A) Only 1 is correct
(B) Only 2 is correct
(C) Only 2 and 4 are correct
(D) Only 1 and 4 are correct

77. In West Bengal SEZ was planned
(A) Around Medinipur
(B) Around Jhargram
(C) Around Nandigram
(D) Around Haldia

78. The Central Government is to collect Rs crore from disinvestment in 2009-10.
(A) 1120
(B) 1125
(C) 1130
(D) 1150

79. The Himalayas are
(A) Fold Mountains
(B) Block Mountains
(C) Residual. Hills
(D) Tableland

80. Which one of the following is an indirect tax levied by the Central Government in India?
(A) Service tax
(B) Corporate Income tax
(C) Profession tax
(D) Agricultural Income tax


81. Which of the following films was directed by Tapan Sinha?
(A) Zindagi Zindagi
(B) Sagina
(C) Ek Doctor Ki Maut
(D) All of the above

82. Prohibition of Sati was enacted by Regulation XVII in year
(A) 1829 A.D.
(B) 1830 A.D.
(C) 1835 A.D.
(D) None of the above

83. Electrical energy is converted into mechanical energy by a
(A) Thermostat
(B) Motor
(C) Dynamo
(D) Rectifier

84. The Simon Commission was appointed for
(A) Indian Constitutional Reforms
(B) Administrative Reforms
(C) Educational Reforms
(D) Jail Code Reforms

85. Todas are tribals of
(A) Jharkhand
(B) Chhattisgarh
(C) Uttarakhand
(D) Nilgiri Hills

86. World Conference against Racism was recently held in
(A) Beijing
(B) Durban
(C) Bonn
(D) Geneva

87. The 73rd Constitutional Amendment in 1992
1. provided a constitutional guarantee to the formation of Panchayats at the village and other levels.
2. added a new part to the Constitution relating to urban local bodies.
3. stipulated that all Panchayat members be elected for a five year term in elections supervised by the State Election Commission.
Which of the statements given above is/are correct?
(A) 1 and 2
(B) land3
(C) lonly
(D) 2 only

88. Partition of Bengal was withdrawn in
(A) 1905
(B) 1906
(C) 1911
(D) 1909

89. What is Ibadat Khana at Fatepur Sikri?
(A) A magnificent building for residence
(B) A house for religious discourses of all religion s
(C) A house for eating
(D) None of the above

90. Who was Megasthenes?
(A) Ambassador of Selecus
(B) Prime Minister of Chandragupta Maurya
(C) A Greek pilgrim
(D) A Chinese traveller

91. Who among the following Sultans of Delhi wanted to become Second Alexander and conquer the world?
(A) Alauddin Khilji
(B) Ghiyasuddin Balban
(C) Muhammad Bin Tugluq
(D) None of them

92. Kapildhara Falls is located on
(A) River Sone
(B) River Chambal
(C) River Narmada
(D) River Krishna

93. Who founded the "School Book Society"?
(A) William Jones
(B) Hyde East
(C) D.Bethune
(D) David Hare

94. India held joint naval exercise in February with USA and
(A) Japan
(B) Australia
(C) South Korea
(D) None of the above

95. A piece of cotton cloth gets wet if one end of it is dipped in water in a glass. This is due to
(A) Gravitation
(B) Viscosity
(C) Elasticity
(D) Capillarity

96. Tsunamis are generated by
(A) Undersea plate movements
(B) Undersea vulcanism
(C) Tidal change
(D) None of the above

97. Who wrote "Life Divine"?
(A) Swami Vivekananda
(B) Keshab Chandra Sen
(C) Sister Nivedita
(D) Arabindo Ghosh

98. In which year did Jaljanwalabagh massacre happen?
(A) 1908
(B) 1909
(C) 1918
(D) 1919

99. Who was the author of Rajtarangini?
(A) Kautilya
(B) Megasthenes
(C) Kalhan
(D) None of the above

100. Highest population growth rate in West Bengal, according to 2001 census is found in
(A) Malda
(B) Uttar Dinajpur
(C) Dakshin Dinajpur
(D) South 24-Parganas


121. Satyam Computers has been taken over by
(A) Larsen & Toubro
(B) TCS
(C) TechMahindra
(D) W.L.Ross .

122. The first Indian Prime Minister who the then did not belong to the Indian National Congress?
(A) Charan Singh
(B) Vishwanath Pratap Singh
(C) Chandra Shekhar
(D) MorarjiDesai

123. 8 persons A, B, C, D, E, F, G and H are sitting by a round table each facing the centre. D is second to the left of F and third to the right of H. A is second to the right of F and an immediate neighbour of H. C is second to the right of B and F is third to the right of B. G is not an immediate neighbour of F. In the above information who is to the immediate left of A?
(A) H
(B) E
(C) G
(D) B

124. The Bhakra Nangal Multipurpose Project consists of the Bhakra Dam across
(A) River Jhelum
(B) River Sutlej
(C) River Beas
(D) River Indus

125. 'Sundarbans' in West Bengal has been declared World Heritage site in
(A)  1999
(B)  1989
(C)  1979
(D)  1969

126. India was the country to develop nuclear powered submarine.
(A) 5th
(B) 6th
(C) 7th
(D) 8th

127. Shivaji's coronation took place in the year
(A) 1672 AD.
(B) 1673 A.D.
(C) 1674 A.D.
(D) 1675 A.D.

128. Bauxite extracted in Madhya Pradesh is used for the production of
(A) Bronze
(B) Aluminium
(C) Copper
(D) Mica

129. The Diwani of Bengal was granted to Clive in the year
(A) 1757 A.D.
(B) 1765 A.D.
(C) 1772 A.D.
(D) 1784 A.D.

130. Which officer was called Bakshi during the rule of Akbar?
(A) An officer in charge of town administration
(B) Officer in charge of military organization
(C) An administrative/executive officer
(D) None of the above

131. In which of the following Five Year Plans a bold approach was adopted towards a long term employment policy?
(A) Fifth
(B) Sixth
(C) Seventh
(D) Eighth

132. 19 students appear in a class test. The average of the best 10 scores is 69 while that of the worst 10 is 38. If the average of all the 19 scores is 54, the 10th score in order of magnitude is
(A) 62
(B) 58
(C) 46
(D) 44

133. AIDS/HIV virus is a type of
(A) DNA virus
(B) RNA virus
(C) Either DNA or RNA virus
(D) Both DNA and RNA virus

134. Forest Protection Committees consist of
(A) Forest Guards
(B) Panchayat Members
(C) Forest Villages, Forest Department and Panchayat
(D) Forest Department officials

135. In India variety of corals are found around
(A) Lakshadweep
(B) Daman &Diu
(C) Sundarbans
(D) Narmada estuary

136. 50 added to 60% of a number is the number itself. The number is
(A) 110
(B) 125
(C) 200
(D) 300

137. C is A's only daughter, and B and D are her only two brothers. Of the three grandsons E, G and M of A, E and M are only sons of B and D respectively. Of the three grand daughters F, H and N of A, H and N are only daughters of C and D respectively. Then B is G's
(A) Maternal uncle
(B) Paternal uncle
(C) Nephew
(D) Cousin

138. Bailadila range in India is noted for the production of
(A) Aluminium
(B) Iron Ore
(C) Bauxite
(D) Mica

150. Which one of the following pairs of days may appear 53 times each in a leap year while all other days will appear 52 times each?
(A) Sunday and Friday
(B) Wednesday and Thursday
(C) Monday and Wednesday
(D) Tuesday and Saturday

151. Who was known as the mother of Indian revolutionaries?
(A) Sister Nivedita
(B) Annie Besant
(C) Madame Cama
(D) Matangini Hazra

152. The soil of Bankura district is
(A) Podzolic
(B) Alluvial
(C) Lateritic
(D) Salty

153. Corazone Aquino was the head of .
(A) Thailand
(B) Philippines
(C) Fiji
(D) Australia

154. The Nagarjunasagar Multipurpose Project consists of a masonry dam across
(A) River Krishna
(B) River Cauvery
(C) River Tungabhadra
(D) River Sone

155. Which one among the following Indian states has the highest density of population?
(A) West Bengal
(B) Maharastra
(C) Uttar Pradesh
(D) Bihar

156. The last Wimbledon (2009) was Roger Federars grand slam title.
(A) 15th
(B) 16th
(C) 17th
(D) 18th

157. The 109th amendment of the Indian Constitution relates to .
(A) The President's power
(B) Age of voters
(C) Reservation for SCs and STs
(D) Official language

159. Alberto Fujimori was the President of
(A) Peru
(B) Japan
(C) Kenya
(D) Chile

160. Who of the following conquered territory in India and founded an empire in the name of his ancestors?
(A) Humayun
(B) SherShah
(C) Babur
(D) None of them


161. Who presided over the second session of the Indian National Congress?
(A) Dadabhai Naoroji
(B) Badruddin Tayebji
(C) W.C. Bonerjea
(D) Pherozeshah Mehta

162. Queen Victoria became Empress of India by
(A) Royal Titles Act, 1876
(B) Act of 1858
(C) Council Act, 1861
(D) Act of 1872

163. Iran recently celebrated anniversary of its Islamic Revolution.
(A) 20th
(B) 25th
(C) 30th
(D) 50th

164. Inter-state water dispute regarding sharing of river water has been taking place between
(A) Madhya Pradesh and Orissa
(B) Karnataka and Tamil Nadu
(C) Utttar Pradesh and Bihar
(D) Gujarat and Maharashtra

165. In respiration, cytosol plays a significant role in
(A) Oxidative phosphorylation
(B) Oxidative decarboxylation of pyruvic acid
(C) Krebs cycle
(D) Glycolysis

166. Which Constitutional Amendment Act granted the Right to Education for all Indian citizens?
(A) 73rd
(B) 74th
(C) 86th
(D) 91st

167. The All India Home Rule League was established by
(A) Annie Besant
¦ (B) Motilal Nehru
(C) B.R.Ambedkar
(D) Sarojini Naidu

168. A man, while facing east, turns twice in succession to his right; then turns thrice in succession to his left; finally he turns twice in succession to his right. The direction he is facing now is
(A) East
(B) West
(C) North
(D) South

169. The author of "In Other Rooms, Other Wonders" is
(A) Mohsin Hamid
(B) NadeemAslam
(C) Daniyal Mueenuddin
(D) Mohammad Hanif

170. Which one of the following years is regarded as the base year for construction of the Wholesale Price Index in India?
(A) 1990-91
(B) 1991-92
(C) 1992-93
(D) 1993-94

171. Who founded the Indian Association in Calcutta?
(A) W. C. Banerjea
(B) S. N. Banerjee
(C) Subhas Chandra Bose
(D) Chittararijan Das

172. India's third research st?tion in Antarctica will be named
(A) Gangotri
(B) Maitri
(C) Bharti
(D) Alka

173. 69 biscuits were distributed among 27 students in a class. If each boy got 2 biscuits and each girl 3, how many girls were there in the class?
(A) 23
(B) 19
(C) 15
(D) 12

174. River Ganga flows into the sea through
(A) An estuary
(B) A delta
(C) A bird's foot estuary
(D) None of the above

175. The word "demarche" recently appeared in the news in the wake of Mumbai Terror Attacks. What is a "demarche"?
(A) A sudden air-strike on a specific area in a foreign country
(B) A secret report on subversive activities within a state
(C) Diplomatic representation of a government position
(D) Recommendations to the government on police reforms

176. Gangubai Hangal belonged to gharana.
(A) Agra
(B) Gwalior
(C) Mewati
(D) Kirana

177. China was recently lashed by Typhoon ,
(A) Morakot
(B) Lungwang
(C) Wukong
(D) Rumbia

178. The next term in the series 1,2,6,15,31, is
(A) 47
(B) 50 (O 56 (D) 63

179. Suppose x * y = x + y,   if x < y
= x-y+l,  if  x>y
= 2x-l,    if  x = y
Then 5 * (6 * 2) + (5 * 6) * 2 = ?
(A) 24
(B) 23
(C) 20
(D) 19



181. Who is the Chairperson of the Unique Identification Authority'?
(A) B.G.Verghese (3) Nandan Nilekani
(C) SamPitroda
(D) Nandan Bagchi


182. Consider the following statements:
1. Part II ofthe Indian Constitution covers Articles 12 to 35 and deals with Fundamental Rights of Indian citizens.
2. Right to Property is listed as a Fundamental Right in the Constitution.
Which of the above statements is/are correct? (A)  1 only (h) 2 only
(C) Both 1 and 2
(D) Neither 1 nor 2

183. Which ofthe following recently filed for bankruptcy?
(A) General Motors
(B) Toyota rf     -     (C) Hyundai
tag      (D) Honda

184. Globalisation is being reflected in the Indian Scenario through thf1 establishment of
(A) Neighbourhood shops
(B) Local bazaars
(C) Shopping malls
(D) Stationery shops

185. Among Ashok, Dibakar, Aran and Bratin, Dibakar is younger than Aran, Bratin is older than only Ashok. Who is the oldest?
(A) Can't be identified data incomplete
(B) Dibakar
(C) Aran
(D) Bratin

186. An alloy contains 20% zinc, 45% nickel and rest aluminium. The total mass in gm of the alloy containing 105 gm of aluminium is
(A) 170
(B) 200
(C) 250
(D) 300

188. Which of the following Indian pharmaceuticals companies was recently taken over by Diichi Sankyo of Japan with 62-92% of equity share capital?
(A) Ranbaxy
(B) Dr. Reddy's Laboratories
(C) Nicholas Piramal
(D) Glaxo India

189. Bombay High Court recently ordered the merger of Reliance Industries and .
(A) Reliance Natural
(B) Reliance Infra
(C) Reliance Petroleum
(D) Reliance Power

190. 'Andhis' are storms of
(A) Punjab
(B) West Bengal
(C) Assam
(D) Uttar Pradesh

191. Which was not a member of Third Front in last Lok Sabha Election?
(A) CP1(M)
(B) Janata (S)
(C) TRS
(D) SP

192. Same force is applied to two bodies A and B of masses na and 5 m respectively for the same time. Then
(A) Velocity of A and B will be same
(B) Momentum of A and B will be same
(C) Momentum of A will be greater
(D) Momentum of B will be greater

193. Coastal Regulation Zones in India have been identified on the, basis of
(A) Tidal Height
(B) Sea Level Rise
(C) Depth of Water
(D) Undersea Bathymetry

194. India is not a member of .
(A) BRIC
(B) BIMSTEC
(C) SCO
(D) WTO

195. Consider the following statements:
1. Rajya Sabha is a permanent body.
2. Every member of the Rajya Sabha is entitled to a maximum term of five years.
3. Lok Sabha can make laws on subjects mentioned in the State List.
Which of the above statements is/are correct?
(A) 2 and 3
(B) land 3
(C) 2 only
(D) None of 1,2 and 3

196. Who was the President of the Constituent Assembly ?
(A) B.R. Ambedkar
(B) C. Rajagopalachari
(C) Rajendra Prasad
(D) Jawaharlal Nehru

197. Last August India signed a free trade agreement with .
(A) OPEC
(B) AU
(C) ASEAN
(D) NAFTA

198. Which of the following recently witnessed ethnic riots?
(A) Urumaqi
(B) Wuhan
(C) Tianjin
(D) Taichung

199. In West Bengal Plantation Agriculture is found in
(A) Malda district
(B) Darjeeling district
(C) Bankura district
(D) Howrah district

200. Match List I with List II and select the correct
answer using the codes given below the Lists:
List I (Person) List II (Position)
(a) N. Gopalaswamy       1. Chief Information Commissioner
(b) Sukhadeo Thorat       2. Chief Election Commissioner
(c) Wajahat Habibullah    3. Chairperson, National Human
Rights Commission
(d) S. Rajendra Babu      4. Chairman, University Grants
Commission
Codes:
(A) a-2,b-l,c-4,d-3
(B) a-l,b-3,c-4,d-2
(C) a-2,b-4,c-3,d-l
(D) a-2,b-4,c-l,d-3

Tuesday, January 19, 2010

Wednesday, January 13, 2010

How to Get the Current Page URL

<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>

You can now get the current page URL using the line:
<?php
echo curPageURL();
?>

Javascript form validation

validateFormOnSubmit ( )


This is a main function that calls a series of subfunctions, each of which checks a single form element for compliance. If the element complies than sufunction returns an empty string. Otherwise it returns a message describing the error and highlight appropriate element with yellow.

function validateFormOnSubmit(theForm) {
var reason = "";


reason += validateUsername(theForm.username);
reason += validatePassword(theForm.pwd);
reason += validateEmail(theForm.email);
reason += validatePhone(theForm.phone);
reason += validateEmpty(theForm.from);


if (reason != "") {
alert("Some fields need correction:\n" + reason);
return false;
}


return true;
}

validateEmpty ( )


The function below checks if a required field has been left empty. If the required field is blank, we return the error string to the main function. If it’s not blank, the function returns an empty string.

function validateEmpty(fld) {

var error = "";

if (fld.value.length == 0) {
fld.style.background = 'Yellow';
error = "The required field has not been filled in.\n"
} else {
fld.style.background = 'White';
}
return error;
}

validateUsername ( )


The function below checks if the user entered anything at all in the username field. If it’s not blank, we check the length of the string and permit only usernames that are between 5 and 15 characters. Next, we use the JavaScript regular expression /\W/ to forbid illegal characters from appearing in usernames. We want to allow only letters, numbers and underscopes.
function validateUsername(fld) {
var error = "";
var illegalChars = /\W/; // allow letters, numbers, and underscores


if (fld.value == "") {
fld.style.background = 'Yellow';
error = "You didn't enter a username.\n";
} else if ((fld.value.length < 5) || (fld.value.length > 15)) {
fld.style.background = 'Yellow';
error = "The username is the wrong length.\n";
} else if (illegalChars.test(fld.value)) {
fld.style.background = 'Yellow';
error = "The username contains illegal characters.\n";
} else {
fld.style.background = 'White';
}
return error;
}

validatePassword ( )


The function below checks the password field for blankness and allow only letters and numbers - no underscopes this time. So we should use a new regular expression to forbid underscopes. This one /[\W_]/ allow only letters and numbers. Next, we want to permit only passwords that contain letters and at least one numeral. For that we use the seacrh() method and two more regular expressions: /(a-z)+/ and /(0-9)/.
function validatePassword(fld) {
var error = "";
var illegalChars = /[\W_]/; // allow only letters and numbers

if (fld.value == "") {
fld.style.background = 'Yellow';
error = "You didn't enter a password.\n";
} else if ((fld.value.length < 7) || (fld.value.length > 15)) {
error = "The password is the wrong length. \n";
fld.style.background = 'Yellow';
} else if (illegalChars.test(fld.value)) {
error = "The password contains illegal characters.\n";
fld.style.background = 'Yellow';
} else if (!((fld.value.search(/(a-z)+/)) && (fld.value.search(/(0-9)+/)))) {
error = "The password must contain at least one numeral.\n";
fld.style.background = 'Yellow';
} else {
fld.style.background = 'White';
}
return error;
}

validateEmail ( )


Next we want to see if the email address the user entered is real. This means that the input data must contain at least an @ sign and a dot (.). Also, the @ must not be the first character of the email address, and the last dot must at least be one character after the @ sign.

At first we check if the user entered anything at all in the email field. Next, we use regular expression and the test() method to check the field for a compliance. Also we will use trim() function that will trim leading whitespace off the string. This won’t be perfect validation — it is possible to slip not compliant addresses by it — but it's normally good enough.
function trim(s)
{
return s.replace(/^\s+|\s+$/, '');
}
function validateEmail(fld) {
var error="";
var tfld = trim(fld.value);                        // value of field with whitespace trimmed off
var emailFilter = /^[^@]+@[^@.]+\.[^@]*\w\w$/ ;
var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ ;


if (fld.value == "") {
fld.style.background = 'Yellow';
error = "You didn't enter an email address.\n";
} else if (!emailFilter.test(tfld)) {              //test email for illegal characters
fld.style.background = 'Yellow';
error = "Please enter a valid email address.\n";
} else if (fld.value.match(illegalChars)) {
fld.style.background = 'Yellow';
error = "The email address contains illegal characters.\n";
} else {
fld.style.background = 'White';
}
return error;
}

validatePhone ( )


The function below checks if the phone number is valid. At first we use regular expression and the replace() method to clear out any spacer characters. Next, we use the isNaN() function to check if the phone number contain only numbers. At last we check the length of the string and permit only phone numbers with 10 digits.
function validatePhone(fld) {
var error = "";
var stripped = fld.value.replace(/[\(\)\.\-\ ]/g, '');



if (fld.value == "") {
error = "You didn't enter a phone number.\n";
fld.style.background = 'Yellow';
} else if (isNaN(parseInt(stripped))) {
error = "The phone number contains illegal characters.\n";
fld.style.background = 'Yellow';
} else if (!(stripped.length == 10)) {
error = "The phone number is the wrong length. Make sure you included an area code.\n";
fld.style.background = 'Yellow';
}
return error;
}

HTML Form


This script accompanies an HTML form. When the user clicks the Submit button on the form, the form data is sent to a JavaScript validation function that checks each field to make sure that it is in the appropriate format. The HTML form could look something like this:
<html>
<head>
<title>Kajal's blog - JavaScript Tutorial</title>
</head>
<body>
<h1>Kajal's blog- JavaScript Tutorial</h1>

<form name="demo" onsubmit="return validateFormOnSubmit(this)" action="test.htm">
<table summary="Demonstration form">
<tbody>
<tr>
<td><label for="username">Your user name:</label></td>
<td><input name="username" size="35" maxlength="50" type="text"></td>
</tr>
<tr>
<td><label for="pwd">Your password</label></td>
<td><input name="pwd" size="35" maxlength="25" type="password"></td>
</tr>
<tr>
<td><label for="email">Your email:</label></td>
<td><input name="email" size="35" maxlength="30" type="text"></td>
</tr>
<tr>
<td><label for="phone">Your telephone number:</label></td>
<td><input name="phone" size="35" maxlength="25" type="text"></td>
</tr>
<tr>
<td>
<label for="from">Where are you :</label></td>
<td><input name="from" size="35" maxlength="50" type="text"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="Submit" value="Send" type="submit" ></td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</form>

</body>
</html>




Tuesday, January 12, 2010

addClass & removeClass in jquery



<style>
.red
{
background-color:#CC0033;
color:green;
font-weight:bold;
}
.green
{
background-color:#003300;
color:red;
font-weight:bold;
}
#myDiv
{
border:3px double #000000;
}
</style>
<script>
$(document).ready(function(){
$(“#addclass_red”).click(function ()
{
$(“#myDiv”).addClass(“red”);
$(“#myDiv”).removeClass(“green”);
});
$(“#addclass_green”).click(function ()
{
$(“#myDiv”).addClass(“green”);
$(“#myDiv”).removeClass(“red”);
});
});
</script>
<div id=”myDiv” style=”width:100px; height:30px;”>div 1</div>
<input type=”button” id=”addclass_red” name=”addclass_red” value=”Add Red” />
<input type=”button” id=”addclass_green” name=”addclass_green” value=”Add Green” />
when click on “Add Red” button the function add red class to div myDiv & removing the class green.

similarly, when click on “Add Green” button the function add greenclass to div myDiv & removing the class red.

Captcha using php


<form name=”form1″ method=”post” action=”form.php” “>
<table width=”342″ align=”center” cellspacing=”0″ bgcolor=”#D4D0C8″>
<tr>  <td align=”center”><img src=”php_captcha.php”></td>
<td align=”center”> Please enter the string shown in the image in the form.<br>
</td><td align=”center”>
<input name=”number” type=”text”></td><td><input name=”Submit” type=”submit”   value=”Submit”></td> </tr></table></form>


The <ima src=…> is given a page php_captcha.php. Lets create the page.

The following code use to create random numbers and this number are embedding with existing image file, the first line used to initiate session, which use to carry the user inputs.

<?php
session_start();
$RandomStr = md5(microtime());
$ResultStr = substr($RandomStr,0,5);
$NewImage =imagecreatefromjpeg(“img.jpg”);
?>
The second line [md5 (microtime ())] use to generate the random string, and the resultant string is trim by using third line [substr], which returns the portion of string specified by the start and length parameters.
The function imagecreatefromjpeg (“img.jpg”) is use to create a image by existing image file and as back ground ,so that you need to give an image file path.

<?php
$LineColor = imagecolorallocate($NewImage,233,239,239);
$TextColor = imagecolorallocate($NewImage, 255, 255, 255);
imageline($NewImage,1,1,40,40,$LineColor);
imageline($NewImage,1,100,60,0,$LineColor);
imagestring($NewImage, 5, 20, 10, $ResultStr, $TextColor);
?>
After creation of back ground image, we generate some linear line, which is use to avoid the phrasing from random numbers, the respective lines are create by the function named imageline () and imagestring () use to draw a random string horizontally.

<?php
$_SESSION['key'] = $ResultStr;
?>
The resultant random number [trimmed one], carry through session especially for validation purpose.

<?php
header(“Content-type: image/jpeg”);
imagejpeg($NewImage);
?>
Finally above two functions are uses to display/out put the image to browser. So we can just call the particular file by through image source path, it will display the final image.

<?php
if(isset($_REQUEST['Submit'])){
$key=substr($_SESSION['key'],0,5);
$number = $_REQUEST['number'];
if($number!=$key){
echo ‘ Validation string not valid! Please try again!’;}
else{
echo ‘ Your string is valid!’;}
}
?>

Code for active primary link in drupal.

In the page template.php in sites/all/themes/yourthemes paste the following codes:

function new_primary_links($start_level = 1, $pid = 0) {
if (!module_exists('menu')) {
return NULL;
}
if (!$pid) {
$pid = variable_get('menu_primary_menu', 0);
}
if (!$pid) {
return NULL;
}
if ($start_level < 1) {
$start_level = 1;
}
if ($start_level > 1) {
$trail = _menu_get_active_trail_in_submenu($pid);
if (!$trail) {
return NULL;
}
else {
$pid = $trail[$start_level - 1];
}
}
$menu = menu_get_menu();
$links = array();
if ($pid && is_array($menu['visible'][$pid]) && isset($menu['visible'][$pid]['children'])) {
$count = 1;
foreach ($menu['visible'][$pid]['children'] as $cid) {
$index = "menu-$start_level-$count-$pid";
if (menu_in_active_trail_in_submenu($cid, $pid)) {
$index .= "-active active"; // **** HERE'S THE CHANGE
}
$links[$index] = menu_item_link($cid, FALSE);
$count++;
}
}
return $links;
}


After that,in page.tpl.php paste the following codes:

<?php
print theme('links', $primary_links);
?>


For more help: http://drupal.org/

Monday, January 11, 2010

Code for Building a .info File in drupal

As of Drupal 6, a .info file is required as part of a valid theme distribution. The
.info file contains a number of pieces of information intended to inform the system about the theme and to set configuration options. The syntax throughout this file is consistent, use key = value. Semicolons can be used to add comments or commentout options. In the event that optional values are not stated, the system will assume default values.
To get started, open up the .info file you created a short while ago and add
the following:First, a name key is required by the system. Note this is a human-readable value. Forour theme, this entry will appear as follows:
name = kajal
Next, let's add a description. This data will appear in Drupal's theme manager
alongside the theme name and screenshot. This key is optional but as it is very helpful, we're going to include some information here:
description = A simple theme for Drupal.
The core key is required to keep the system from disabling our theme due to
incompatibility.
core = 6.x
Add the engine key as follows (in the absence of this key, the system will assume this is a pure PHP theme):
engine = phptemplate
The regions key sets the regions available for block assignment. Note that this key is not necessary unless you wish to vary from the default set of regions. We've included the regions keys information in this example simply to show the variation in syntax that is required by this key. To set regions, use the following notation:
region[machine_readable_name] = human readable name, for example:
region[head] = Head
region[left] = Left Sidebar
region[right] = Right Sidebar
region[content] = Content
region[footer] = Footer

The .info file can be also used to enable the various theme configuration features, like the site mission, site name, logo, etc. To specify features use the syntax features[] = name of feature. In the absence of a contrary definition, the system will assume the presence of all the following:
features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
features[] = primary_links
features[] = secondary_links

Should you not want any of these features, simply delineate the ones you wish to see in the .info file and omit the ones you do not wish to see. As we want to enable all the default features, we need to add nothing to our .info file. In this fashion, the system will enable all the default features, above, giving our site administrator the widest number of configurations for Kajal.

With all the options above (and more), .info files can be quite lengthy. The
garland.info file (themes/garland/garland.info) for example, shows a relatively complex .info file. However, given our new theme's heavy reliance on default values, our .info file will be short and sweet:
name = Kajal
description = A simpletheme for Drupal.
core = 6.x
engine = phptemplate

Code for footer in Drupal.

Though the author only declared two regions, left and right, he includes the
footer region in the code. This provides us with a good example of the function chameleon_regions() in action. The function defines which regions will be available for the administrator to use for the assignment of blocks. In this case, only left and right are options for the administrator, despite the presence of the footer region in the code. Had the function chameleon_regions() been written so as to include 'footer' => t('footer'), then the region would be accessible to the administrator for block assignment. As it stands, however, the only output of the code below is the footer message, wrapped with a div.
if ($footer = variable_get('site_footer', '')) {
$output .= " <div id=\"footer\">$footer</div>\n";
}

Code for Title and Breadcrumb Trail in Drupal

The author places the title and breadcrumb together on the page and makes both subject to the appearance of the title; the title is also wrapped with the<h2> tag.
if ($title) {
$output .= theme("breadcrumb", drupal_get_breadcrumb());
$output .= "<h2>$title</h2>";
}

Code for side bar right in Drupal.

This snippet places the blocks designated for the right region into a table cell. Note the conditional statement; this allows the output to be hidden in the event that no blocks are assigned to the region. For styling, the table cell (td) is given an id name to reflect the placement (sidebar-right).

if ($show_blocks && !empty($blocks_right)) {
$output .= " <td id=\"sidebar-right\">$blocks_right</td>\n";
}

Code for side bar left in drupal

The following places the blocks designated for the left region into a table cell. Note the conditional statement; this allows the output to be hidden in the event that no blocks are assigned to the region. For styling, the table cell (td) is given an id name to reflect the placement (sidebar-left).

if ($show_blocks && !empty($blocks_left)) {
$output .= " <td id=\"sidebar-left\">$blocks_left</td>\n";
}

Code for primary and secondery links in Drupal

Chameleon combines the placement of the primary and secondary links, basically locking the secondary links into a subnavigation role. You don't have to group these two items together in this fashion, but it is one logical option. Note the snippet below. In both cases, the display of the links is conditional (depending on what is enabled by the administrator). If either one is enabled, then it will appear inside a div with the class navlinks. Additionally, to be able to style each set of links individually, both $primary_links and $secondary_links are provided with a unique class and id.


$primary_links = theme('links', menu_primary_links(), array('class' =>
'links', 'id' => 'navlist'));
$secondary_links = theme('links', menu_secondary_links(),
array('class' => 'links', 'id' => 'subnavlist'));
if (isset($primary_links) || isset($secondary_links)) {
$output .= ' <div>';
if (isset($primary_links)) {
$output .= $primary_links; }
if (isset($secondary_links)) {
$output .= $secondary_links; }
$output .= " </div>\n";
}

Code for siteslogan in Drupal

The following statement enables the site slogan to be toggled on or off, and wraps it with a div and a class for styling.

if (theme_get_setting('toggle_slogan')) {
$output .= " <div class=\"site-slogan\">". variable_get(
'site_slogan', '') ."</div>";
}

Code for sitename in Drupal

This snippet enables the site name to be toggled on or off, and wraps it with an H1 tag and a class.

if (theme_get_setting('toggle_name')) {
$output .= " <h1 class=\"site-name title\">". l(variable_
get('site_name', 'drupal'), ""). "</h1>";
}

Code for logo in Drupal

The following conditional statement enables the logo to be toggled on or off, wraps the image in an <a> tag and also sets the title and alt attributes.
if ($logo = theme_get_setting('logo')) {
$output .= " <a href=\"". url() ."\" title=\"". t('Home')
."\"><img src=\"$logo\" alt=\"". t('Home') ."\" /></a>";
}

Fav icon code in Drupal

The author deals with the setting of the favicon early in the document, prior to the output of the head of the document, and thereby makes the
tag available to the document head when it is output. All the other features, below, are placed in the body of the page where they will appear in the layout.


if (theme_get_setting('toggle_favicon')) { drupal_set_html_
head('<link rel="shortcut icon" href="'. check_url(theme_get_
setting('favicon')) .'" type="image/x-icon" />');}

Dynamically Styling Nodes

PHPTemplate provides a specific template for nodes—node.tpl.php. Using the
same principles of precedence we've seen throughout, you can provide alternative node templates to suit your needs. To provide a template for the blog node, for example, create node-blog.tpl.php; for the story node, node-story.tpl.php. In the absence of a more specific template, the system will apply the default node.tpl.php file. The table below shows the suggestions for the default system:

























Suggestion Affected node
node-blog.tpl.php blog entries
node-story.tpl.php story entries
node-page.tpl.php page entries
node-forum.tpl.php forum entries
node-book.tpl.php book entries

Dynamically Styling the Polls Module

The Polls module is the subject of a number of default templates. There are default suggestions available for all the key templates:



















Default templateSuggestion syntax
poll-results.tpl.phppoll-results-[block].tpl.php
poll-vote.tpl.phppoll-vote-[block].tpl.php
poll-bar.tpl.phppoll-bar-[block].tpl.php

Dynamically Styling the Forum Module

The base templates of the forum module is forums.tpl.php. There are several
options open for suggestions for both forum containers and topics:



























SuggestionWill apply to...
forums-topics.tpl.phpForum topics
forums-topics-[forumID].tpl.phpForum topics belonging to a forum of

a specific ID
forums-containers.tpl.phpForum containers
forums-[forumID].tpl.phpForum of a specific ID.
forums-containers-[forumID].tpl.phpForum containers belonging to a

forum of a specific ID

The Importance of Themes in Drupal

The theme of your Drupal site is responsible for the visitor's first impression of the
site. Given the key role in shaping the presentation, a theme is arguably the most
influential piece of your Drupal installation.
While the default Drupal distribution includes a set of themes that will prove
sufficient for many users, I assume you are reading this book out of a desire to do
more— whether it be only to install additional themes and then modify them to suit
your needs, or whether you plan to build your own themes from scratch.
ThisIn order to grasp better some of the challenges (and opportunities) associated with
Drupal themes, it is useful to look at three concepts that impact the way you use the
system and the way in which you must plan your theme deployment.

File upload using PHP

<html>
<head>
<title>A File Upload Script</title>
</head>
<body>
<div>
<?php
if ( isset( $_FILES['fupload']
) ) {


print "name: ".     $_FILES['fupload']['name'] ."<br />";
print "size: ".     $_FILES['fupload']['size'] ." bytes<br />";
print "temp name: ".$_FILES['fupload']['tmp_name'] ."<br />";
print "type: ".     $_FILES['fupload']['type'] ."<br />";
print "error: ".    $_FILES['fupload']['error'] ."<br />";

if ( $_FILES['fupload']['type'] == "image/gif" ) {

$source = $_FILES['fupload']['tmp_name'];
$target = "upload/".$_FILES['fupload']['name'];
move_uploaded_file( $source, $target );// or die ("Couldn't copy");
$size = getImageSize( $target );

$imgstr = "<p><img width=\"$size[0]\" height=\"$size[1]\" ";
$imgstr .= "src=\"$target\" alt=\"uploaded image\" /></p>";

print $imgstr;
}
}
?>
</div>
<form enctype="multipart/form-data"
action="<?php print $_SERVER['PHP_SELF']?>" method="post">
<p>
<input type="hidden" name="MAX_FILE_SIZE" value="102400" />
<input type="file" name="fupload" /><br/>
<input type="submit" value="upload!" />
</p>
</form>
</body>
</html>

Displaying current date in php

<html>

<head>
<title>Kajal's blog tutorial.</title>
</head>
<? print(Date("l F d, Y")); ?>

<body>
</body>
</html>

150 sample questions and answers for wbcs


1. A complete cycle of a traffic light takes 60 seconds. During each cycle the light is green for 25 seconds, yellow for 5 seconds, and red for 30 seconds. At a randomly chosen time, the probability that the light will not be green is:

(a) 1/3 (b) 1/4 (c) 5/12 (d) 7/12

2. The last opportunity to avoid the partition of India was lost with the rejection of
(a) Cripps Mission (b) Rajagopalachari Formula (c) Cabinet Mission (d) Wavell Plan

3. With reference to India, which one of the following statements is not correct?
(a) About one-third of the area of the country records more than 750 millimeters of annual rainfall (b) The dominant source of irrigation in the country is wells (c) Alluvial soil is the predominant type of soil in the northern plains of the country (d) The mountain areas account for about thirty percent of the surface area of the country

4. A solid cube just gets completely immersed in water when a 0.2 kg mass is placed on it. If the mass is removed, the cube is 2 cm above the water level. What is the length of each side of the cube? (a) 12 cm (b) 10 cm (c) 8 cm (d) 6 cm

5. The historian Barani refused to consider the state in India under Delhi Sultans as truly Islamic because (a) the majority of the population did not follow Islam (b) the Muslims theologists were often disregarded (c) the Sultan supplemented the Muslim law by framing his own regulations (d) religious freedom was accorded to non-Muslims

6. Who among the following won the men’s singles title at the World Badminton Championship in the year 2001? (a) Gopichand (b) Hendrawn (c) Ji Xin Peng (d) Peter Gade

7. With reference to the latest development in stem cell research, consider the following statements: 1. The only source of human stem cells are the embryos at blastocyst stage. 2. The stem cells can be derived without causing destruction to blastocysts. 3. The stem cells can regenerate themselves in vitro virtually forever. 4. Indian research centers also created a few cell lines which can be developed into many types of tissues. Which of these statements are correct?
(a) 1, 2, 3 and 4 (b) 1, 2 and 3 (c) 1, 2 and 4 (d) 3 and 4

8. In the year 2001, NASA launched a spacecraft to Mars named (a) Mars Climate Oribter (b) Mars Global Surveyer (c) Mars Odyssey (d) Mars Pollar Lander

9. Consider the following climatic and geographical phenomena: 1. Condensation 2. High temperature and humidity 3. Orography 4. Vertical wind Thunder Cloud development is due to which of these phenomena? (a) 1 and 2 b) 2, 3 and 4 (c) 1, 3 and 4 (d) 1, 2, 3 and 4

10. A trader fixed the price of an article in such a way that by giving a rebate of 10% on the price fixed he made a profit of 15%. If the cost of the article is Rs. 72, the price fixed on it is (a) Rs. 82.80 (b) Rs. 90.00 (c) Rs. 92.00 (d) Rs. 97.80

11. Among living organisms, which one of the following is the most responsible factor for bringing about the origin of a new species? (a) Isolation (b) Mutation (c) Natural Selection (d) Sexual Reproduction

12. For short-term climate predictions, which one of the following events, detected in the last decade, is associated with occasional weak monsoon rains in the Indian subcontinent? (a) La Nina (b) Movement of Jet Streams (c) El Nino and Southern Oscillations (d) Greenhouse effect on global level

13. In the map given below, four islands of Indian Ocean region i.e. (A) Seychelles, (B) Chagos, (C) Mauritius and (D) Socotra are marked as 1, 2, 3 and 4. Match them and select the correct answer from the codes given below. Codes: A B C D (a) 1 3 4 2 (b) 3 1 2 4 (c) 1 3 2 4 (d) 3 1 4 2

14. “World Development Report” is an annual publication of (a) United Nations Development Programme (b) International Bank of Reconstruction and Development (c) World Trade Organisation (d) International Monetary Fund

15 Match List I (Ancient site) with List II (Archaeological finding) and select the correct answer sing the codes given below the lists: List I List II (Ancient site) (Archaeological finding) A. Lothal 1. Ploughed field B. Kalibangan 2. Dockyard C. Dholavira 3. Terracotta Replica of a Plough D. Banawali 4. An inscription Comprising ten Large sized signs Of the Harappan Script Codes: A B C D (a) 1 2 3 4 (b) 2 1 4 3 (c) 1 2 4 3 (d) 2 1 3 4

16. Which one of the following statements is not correct? (a) The statue of Gomateshwara at Sravanabelagola represents the last Tirthankara of Jains (b) India’s largest Buddhist monastery is in Arunachal Prades (c) The Khajuraho temples were built under Chandela Kings (d) The Hoyasalesvara temple is dedicated to Siva

17. Open stunted forests with bushes and small trees having long roots and sharp thorns or spines are commonly found in (a) Eastern Orissa (b) North-Eastern Tamil Nadu (c) Siwaliks and Terai region (d) Western Andhra Pradesh

18. Match List I (Article of Indian Constitution) with List II (Provisions) and select the correct answer using the codes given below the lists: List I List II (Article of Indian Constitution) (Provisions) A. Article 16(2) 1. No person shall be deprived of His property Save by the Authority of law B. Article 29(2) 2. No person can be discriminated against in the matter of public appointment on the ground of race, religion or caste C. Article 30(1) 3. All minorities whether based on religion or language shall have the fundamental right to establish and administer educational institutions of their choice D. Article 31(1) 4. No citizen shall be denied admission into any educational institution maintained by the State, or receiving State aid, on grounds of religion, race, caste, language or any of them. Codes: A B C D (a) 2 4 3 1 (b) 3 1 2 4 (c) 2 1 3 4 (d) 3 4 2 1

10. In ancient Indian Buddhist monasteries, a ceremony called Pavarana used to be held. It was the (a) occasion to elect the Sanghaparinayaka and two speakers one on Dhamma and the other on Vinaya (b) confession by monks of their offences committed during their stay in the monasteries during the rainy season (c) ceremony of initiation of new person into the Buddhist Sangha in which the head is shaved and when yellow robes are offered (d) gathering of Buddhist monks on the next day to the full moon day of Ashdha when they take up affixed abode for the next four months or rainy season

20. Consider the volumes of the following: 1. A parallelepiped of length 5 cm and length 3 cm and height 4 cm 2. A cube of each side 4 cm 3. A cylinder of radius 3 cm and length 3 cm 4. A sphere of radius 3 cm The volumes of these in the decreasing order is (a) 1, 3, 2, 4 (b) 4, 2, 3, 1 (c) 1, 2, 3, 4 (d) 4, 3, 2, 1

21. Consider the following statements: The Draft Electricity Bill, 2001 seeks to replace 1. Indian Electricity Act, 1910 2. Electricity (Supply) Act, 1948 3. Electricity Regulatory Commission Act, 1998 4. State Electricity Boards Which of these statements are correct? (a) 1, 2 and 3 (b) 2, 3 and 4 (c) 1, 2 and 4 (d) 1, 3 and 4

22. Consider the following statements: 1. The world Intellectual Property Organisation (WIPO) is a specialized agency of United Nations System of Organisation. 2. WIPO has its headquarters at Rome. 3. The Trade Related Aspects of Intellectual property Rights (TRIPS) Agreement is binding on all WTO members? 4. Least developed country members of WTO are not required to apply the provisions of TRIPS Agreements for a period of 20 years from the general date of application of the Agreement. Which of these statements are correct? (a) 1, 2, 3 and 4 (b) 2, 3 and 4 (c) 1, 2 and 4 (d) 1 and 3

23. India has the maximum volume of foreign trade with (a) USA (b) Japan (c) Germany (d) UAE

24. Which one of the following is not a lagoon? (a) Ashtamudi lake (b) Chilka lake (c) Periyar lake (d) Pulicat lake

25. Ticks and mites are actually (a) Arachnids (b) Crustaceans c) Insects (d) Myriapods

26. With reference to the blood in a normal person, which one of the following statements is correct? (a) Compared to arteries, veins are less numerous and hold less of the body’s blood at any given time (b) Blood cells constitute about 70 percent of the total volume of the blood (c) White Blood Cells (WBC) are made by lymph nodes only (d) The blood has more platelets than WBC

27. Which one of the following statements if correct with reference to our solar system? (a) The Earth is the densest of all the planets in our solar system (b) The predominant element in the composition of Earth is silicon (c) The Sun contains 75 percent of the mass of the solar system (d) The diameter of the Sun is 190 times that of the Earth

28. Which one of the following statements if not correct? (a) The boiling point of an aqueous solution is higher than that of pure water (b) Addition of solutes to a solution causes an increase in its water potential (c) The vapour pressure of the water in a solution is lower than that of pure water (d) When a solution is separated from water by a semi-permeable membrane, water movement can be prevented by applying pressure to the solution

29. With reference to Indian agriculture, which one of the following statements is correct? (a) About 90 percent of the area under pulses in India is rainfed. (b) The share of pulses in the gross cropped area at the national level has doubled in the last two decades (c) India accounts for about 15 percent of the total area under rice in the world (d) Rice occupies about 34 percent of the gross cropped area of India

30. With reference to Sufism in Indian history consider the following statements: 1. Shaikh Ahmad Sarhandi was a contemporary of Ibrahim Lodi 2. Shaikh nasiruddin Chirg-Dehlavi was a disciple of Shaikh Nizamuddin Auliya 3. Aurangzeb was a contemporary of Shaikh Salim Chisti 4. The Qadiri order of Sufis was first introduced in India by Shaikh Niamtullah and Makhdum Muhammad Jilani

31. The salaries and allowances of the Judges of the High Court are charged to the (a) Consolidated Fund of India (b) Consolidated Fund of the State (c) Contingency Fund of India (d) Contingency Fund of the State

32. Consider the following plants: 1. Bougainvillea 2. Carnations 3. Cocoa 4. Grapes Which of these plants are propagated by stem cuttings? (a) 1 and 2 (b) 2, 3 and 4 (c) 1, 3 and 4 (d) 1, 2, 3 and 4

33. The members of the Constituent Assembly which drafted the Constitution of India were (a) nominated by the British parliament (b) nominated by the Governor General (c) elected by the Legislative Assemblies of various provinces (d) elected by the Indian national Congress and Muslim League

34. A train of length 150 meters, moving at a speed of 90 km/hr can cross a 200 metre bridge in (a) 8 seconds (b) 14 seconds (c) 6 seconds (d) 15 seconds

35. The ancient Indian play Mudrarakshasa of Vishkhadutt has its subject on (a) a conflict between Gods and Demons of ancient Hindu lore (b) a romantic story of an Aryan prince and a tribal woman (c) the story of the power struggle between two Aryan tribes (d) the court intrigues at the time of Chandragupta Maurya


36. India’s external debt increased from US $ 98,158 million as at the end of March 2000 to US $ 100,225 million as at the end of March 2001 due to increase in (a) multilateral and bilateral debt (b) rupee debt (c) commercial borrowings and NRI deposits (d) borrowings from International Monetary Fund

37. Which reference to the Indian economy consider the following activities 1. Agriculture, Forestry and Fishing 2. Manufacturing 3. Trade, Hotels, Transport and Communication 4. Financing, Insurance, Real Estate and Business services The decreasing order of the contribution of these sectors to the Gross Domestic Product (GDP) at factor cost at constant prices (2000-01) is (a) 3, 1, 2, 4 (b) 1, 3, 4, 2 (c) 3, 4, 1, 2 (d) 1, 3, 2, 4

38. Who among the following set a new national record in the women’s Pole-vault event in the 7th edition of Senior Federation Cup held in Karnataka in the year 2001? (a) G. G. Pramila (b) Jyothna Deka (c) Karamjeet Kaur (d) Manisha Dey


39. The main reason for unrest and violence in Zimbabwe in recent years is due to (a) conflict between different native ethnic groups (b) prolonged crisis over land reforms (c) economic crisis due to continuous drought and famine (d) power struggle between political groups of white European settlers and native black community


40. Match List I (Artist) with List II (Art) and select the correct answer using the codes given below the lists: List I List II (Artist) (Art) A. Hiren Bhattacharya 1. Bharatanatyam dance B. Malini Rajurkar 2. Hindustani Vocal music C. Pratibha Prahlad 3. Kuchipudi Dance D. Vempati Chinna 4. Puppetry Satyam Codes: A B C D (a) 4 2 1 3 (b) 3 1 2 4 (c) 4 1 2 3 (d) 3 2 1 4

41. Consider the following natural phenomena: 1. Terrestrial heating 2. Reflection of light 3. Refraction of light 4. Diffraction of light Due to which of these phenomena is mirage formed? (a) 1 and 2 (b) 2, 3 and 4 (c) 1 and 3 (d) 4 only

42. HINDALCO, an aluminium factory located at Renukut owes its site basically to (a) proximity of raw materials (b) abundant supply of power (c) efficient transport network (d) proximity to the market

43. In the context of organic evolution, the loss of limbs of snakes is explained by the phenomenon of (a) use and disuse of organs (b) adaptation to living in burrows (c) natural selection (d) inheritance of acquired characters

44. The purpose of the inclusion of Directive Principles of State Policy in the Indian Constitution is to establish (a) political democracy (b) social democracy (c) Gandhian democracy (d) Social and economic democracy


45. Consider the following statements: The objectives of the National Renewal Fund set up in February 1992 were 1. to give training and counseling for workers affected by retrechment or VRS. 2. redeployment of workers. Which of these statements is/are correct? (a) Neither 1 nor 2 (b) Both 1 and 2 (c) 1 only (d) 2 only

46. Which one of the following committees recommended the abolition of reservation of items for the small scale sector in industry (a) Abid Hussain Committee (b) Narasimham Committee (c) Nayak Committee (d) Rakesh Mohan Committee

47. India’s population growth during the 29th century can be classified into four distinct phases. Match List I (Period) with List II (Phase) and select the correct answer using the codes given below the lists: List I List II (Period) (Phase) A. 1901-1921 1. Steady growth B. 1921-1951 2. Rapid high growth C. 1951-1981 3. Stagnant growth D. 1981-2001 4. High growth with definite signs of slowdown Codes: A B C D (a) 3 1 4 2 (b) 1 3 2 4 (c) 3 1 2 4 (d) 1 3 2 4

48. Who was the first Indian actress to receive the Padma Shri Award? (a) Smita Patil (b) Nargis Dutt (c) Meena Kumari (d) Madhubala

49. With reference to medieval Indian rulers, which one of the following statements is correct? (a) Alauddin Khalji first set up a separate ariz’s department (b) Balban introduced the branding system of horses of his military (c) Muhammad bin Tughlaq was succeeded by his uncle to the Delhi throne (d) Firuz Tughlaq set up a separate department of slaves


50. Match List I (Indian Wildlife Species) with List II (Scientific names) and select the correct answer using the codes given below the lists. List I List II (Indian Wildlife Species) (Scientific names) A. Asiatic Wild Ass 1. Boselaphus Tragocamelus B. Barasingha 2. Cervus Duvauceli C. Chinkara 3. Equus hemionus D. Nilgai 4. Gazella gazella Codes: A B C D (a) 2 3 1 4 (b) 3 2 4 1 (c) 2 3 4 1 (d) 3 2 1 4

51. The motive behind Shah Jahan’s Balkh campaign was to (a) secure a friendly ruler in Balkh and Badakshan which bordered Kabul (b) conquer Samarquand and Farghana, the Mughal homelands (c) fix the Mughal frontier on the ‘scientific line’ the Amu Daria (d) expand the Mughal Emprie beyond the sub-continent

52. Consider the following high yielding varieties of crops in India: 1. Arjun 2. Jaya 3. Padma 4. Sonalika Which of these are wheat? (a) 1 and 2 (b) 2 and 3 (c) 1 and 4 (d) 3 and 4

53. Which one of the following submitted in 1875 a petition to the House of Commons demanding India’s direct representation in the British Parliament? (a) The Deccan Asociation (b) The Indian Association (c) The Madras Mahajan Sabha (d) The Poona Sarvajanik Sabha

54. The real intention of the British to include the princely states in the Federal Union proposed by the India Act of 1935 was to (a) exercise more and direct political and administrative control over the princely states (b) involve the princes actively in the administration of the colony (c) finally effect the complete political and administrative take-over of all the princely states by the British (d) use the princes to counter-balance the anti-imperialist doctrines of the nationalist leaders

55. When one gene controls two or more different characters simultaneously, the phenomenon is called (a) Apomixis (b) Pleiotropy (c) Polyploidy (d) Polyteny

56. Sun’s halo is produced by the refraction of light in (a) Water vapour in Stratus clouds (b) Ice crystals in Cirro-Cumulus clouds (c) Ice crystals in Cirrus clouds (d) Dust particles in Stratus clouds

57. Which one of the following Articles of the Directive Principles of State Policy deals with the promotion of international peace and security? (a) 51 (b) 48A (c) 43A (d) 41

58. Which one of the following rights was described by Dr. B. R. Ambedkar as the heart and soul of the Constitution? (a) Right to freedom of religion (b) Right to property (c) Right to equality (d) Right to Constitutional remedies

59. Which reference to the Wholesale Price Index (WPI), consider the following statements: 1. The new WPI series with base 1993-94=100 became effective from April 1998 2. In the new WPI series, became effective from 1 April 2000. Statement 2 and 3 and correct. 3. The weight for electricity has increased in the new WPI series. Which of these statements are correct? (a) 1, 2 and 3 (b) 2 and 3 (c) 1 and 3 (d) 1 and 2

60. Match List I (Acts of Colonial Government of India) with List II (Provisions) and select the correct answer using the codes given below the lists: List I List II (Acts of Colonial Government of India) (Provisions) A. Charter Act, 1813 1. Set up a Board Of Control in Britain to fully regulate the East I India Company’s Affairs in India B. Regulating Act 2. Company’s Trade monopoly in India was ended C. Act of 1858 3. The power to govern was transferred from the East India Company to the British Crown D. Pitt’s India Act 4. The Company’s directors were asked to present to the British government all correspondence and documents pertaining to the administration of the company Codes: A B C D (a) 2 4 3 1 (b) 1 3 4 2 (c) 2 3 4 1 (d) 1 4 3 2

61. Match List I (Mangrove) with List II (State) and select the correct answer using the codes given below the lists: List I List II (Mangrove) (State) A. Achra Ratnagiri 1. Karnataka B. Coondapur 2. Kerala C. Pichavaram 3. Andhra Pradesh D. Vembanad 4. Maharashtra 5.Tamil Nadu Codes: A B C D (a) 2 1 5 4 (b) 4 5 3 2 (c) 2 5 3 4 (d) 4 1 5 2

62. Which one of the following Acts of British India strengthened the Viceroy’s authority over his executive council by substituting “portfolio” or departmental system for corporate functioning? (a) Indian Council Act, 1861 (b) Government of India Act, 1858 (c) Indian Council Act, 1892 (d) Indian Council Act, 1909

63. The age of a man is three times the sum of the ages of his two sons. Five years hence, his age will be doubled of the sum of the ages of his sons. The father’s present age is (a) 40 years (b) 45 years (c) 50 years (d) 55 years

64. The length of the longest pole that can be placed in a room 12m long and 9m wide and 8m high is (a) 12 m (b) 14 m (c) 17 m (d) 21 m

65. With reference to the human body, consider the following statements: 1. The production of somatotropin goes up when a person exercises. 2. Men’s testes produce progesterone. 3. Women’s adrenal glands secrete testosterone. 4. Stress causes the adrenals to release very less amount of cortisol than usual.

66. In the year 2001, the Prime Minister announced a five-year excise duty holiday for industries in (a) cyclone prone coastal Andhra Pradesh (b) border states of North-East (c) earthquake ravaged Kutch district (d) recently formed states of Chhattisgarh and Jharkhand


67. Consider the following statements with reference to India: 1. The Chief Election Commissioner and other Election Commissioners enjoy equal powers but receive unequal salaries. 2. The Chief Election Commissioner is entitled to the same salary as is provided to a judge of the Supreme Court. 3. The Chief Election Commissioner shall not be removed from his office except in like manner and on like grounds as a judge of the Supreme Court. 4. The term of office of the Election Commissioner is five years from the date he assumes his office or till the day he attains the age of 62 years, whichever is earlier. Which of these statements are correct? (a) 1 and 2 (b) 2 and 3 (c) 1 and 4 (d) 2 and 4


68. In a company 60% of the employees are men. Of these 40% are drawing more than Rs. 50,000 per year. If 36% of the total employees of the company draw more than Rs. 50,000 per year, what is the percentage among women who are drawing less than Rs. 50,000 per year? (a) 70 (b) 60 (c) 40 (d) 30


69. Consider the following statements: 1. Light of longer wavelength is scattered much more than the light of shorter wavelength. 2. The speed of visible light in water is 0.95 times and speed in vacuum. 3. Radio waves are produced by rapidly oscillating electrical currents. 4. To detect the overspeeding vehicles, police use the Doppler effect of reflected short radio waves. Which of these statements are correct? (a) 1 and 2 (b) 1 and 3 (c) 2 and 4 (d) 3 and 4


70. Global capital-flows to developing countries increased significantly during the nineties. In view of the East Asian financial crisis and Latin American experience, which type of inflow is good for the host country? (a) Commercial loans (b) Foreign Direct Investment (c) Foreign Portfolio Investment (d) External Commercial Borrowings


71. In terms of value, which one of the following commodities accounted for the largest agricultural exports by India during the three year period from 1997-98 to 1999-2000? (a) Cereals (b) Marine products (c) Spices (d) Tea


72. In the year 2001, in which one of the following events of Women’s Singles did Venus Williams defeat Serena Williams to win the title? (a) Australian Open 2001 (b) French Open 2001 (c) Wimbledon 2001 (d) US Open 2001


73. The Consultative Committee of Members of Parliament for Railway Zones is constituted by the (a) President of India (b) Ministry of Railways (c) Ministry of Parliamentary Affairs (d) Ministry of Transport

74. Which one of the following is monogamous? (a) Wolf (b) Walrus (c) Seal (d) Deer

75. Five Year Plan in India is finally approved by (a) Union Cabinet (b) President on the advice of Prime Minister (c) Planning Commission (d) National Development Council


76. Consider the following countries of South Asia: (a) Bangladesh (b) India (c) Pakistan (d) Sri Lanka The descending order of literacy status of these countries is (a) 4, 2, 1, 3 (b) 2, 4, 3, 1 (c) 4, 2, 3, 1 (d) 2, 4, 1, 3


77. Among the following major stock exchanges of India, the exchange which recorded highest turnover during the year 2001-01 is (a) Bombay Stock Exchange (b) Calcutta Stock Exchange (c) Delhi Stock Exchange (d) National Stock Exchange


78. A bus is moving with a speed of 30 km/hr ahead of a car with a speed of 50 km/hr. How many kilometers apart are they if it takes 15 minutes for the car to catch up with the bus? (a) 5 km (b) 7.5 km (c) 12.5 km (d) 15 km

79. The President of India National Congress at the time of partition of India was (a) C. Rajagopalachari (b) J. B. Kripalani (c) Jawaharlal Nehru (d) Maulana Abul Kalam Azad


80. Which one of the following authorities recommends the principles governing the grants-in-aid of the revenues to the states out of the Consolidated Fund of India? (a) Finance Commission (b) Inter-State Council (c) Union Ministry of Finance (d) Public Accounts Committee


81. With reference to colonial period of Indian history, match List I (Person) with List II (Event) and select the correct answer using the codes given below the lists: List I List II (Person) (Event) A. Macdonald 1. Doctrine of Lapse B. Linlithgo 2. Communal Award C. Dalhousie 3. August Offer D. Chelmsford 4. Dyarchy Codes: A B C D (a) 3 2 1 4 (b) 3 2 4 1 (c) 2 3 1 4 (d) 2 3 4 1


82. Consider the following statements: 1. Ocean currents are the slow-surface movement of water in the ocean. 2. Ocean currents assist in maintaining the Earth’s heat balance. 3. Ocean currents are set in motion primarily by prevailing winds. 4. Ocean currents are affected by the configuration of the ocean. Which of these statements are correct? (a) 1 and 2 (b) 2, 3 and 4 (c) 1, 3 and 4 (d) 1, 2, 3 and 4


83. Which country among the following has been involved in two ties in Test cricket? (a) Australia (b) India (c) West Indies (d) England


84. Match List I (Organisation) with List II (Headquarters) and select the correct answer using the codes given below the lists: List I List II (Organisation) (Headquarters) A. International 1. Brussels Atomic Energy Agency B. International Telecommuni- Cation Union 2. Geneva C. Council of the European Union 3. Paris D. Organisation For Economic Cooperation and Development 4. Vienna Codes: A B C D (a) 1 2 4 3 (b) 4 3 1 2 (c) 1 3 4 2 (d) 4 2 1 3


85. With reference to the Public Sector Undertaking in India, consider the following statements: 1. Minerals and Metals Trading Corporation of India Limited is the largest non-oil importer of the country. 2. Project and Equipment Corporation of India Limited is under the Ministry of Industry. 3. One of the objectives of Export Credit Guarantee Corporation of India Limited is to enforce quality control and compulsory pre-shipment inspection of various exportable commodities. Which of these statements is/are correct? (a) 1 only (b) 1 and 2 (c) 2 and 3 (d) 3 only

86. Match List I (Book) with List II (Author) and select the correct answer using the codes given below the lists: List I List II (Book) (Author) Autobiography of an Unknown Indian 1. Mulk Raj Anand B. India: A Wounded Civilization 2. Nirad C. Chaudhuri C. Confessions of a Lover 3. R. K. Narayan D. The English Teacher 4. V. S. Naipaul Codes: A B C D (a) 1 3 2 4 (b) 2 4 1 3 (c) 1 4 2 3 (d) 2 3 1 4

87. With reference to the Indian Public Finance, consider the following statements: 1. External liabilities reported in the Union Budget are based on historical exchange rates. 2. The continued high barrowing has kept the real interest rates high in the economy. 3. The upward trend in the ratio of Fiscal Deficit to GDP in recent years has an adverse effect to private investments. 4. Interest payments is the single largest component of the non-plan revenue expenditure of the Union Government. Which of these statements are correct? (a) 1, 2 and 3 (b) 1 and 4 (c) 2, 3 and 4 (d) 1, 2, 3 and 4

88. With reference to Indian Polity, which one of the following statements is correct? (a) Planning Commission is accountable to Parliament (b) President can make ordinance only when either of the two Houses of Parliament is not in session (c) The minimum age prescribed for appointment as a Judge of the Supreme Court is 40 years (d) National Development Council is constituted of Union Finance Minister and the Chief Ministers of all the States

89. The correct sequence of the eastward flowing rivers of the peninsular India from north to south is (a) Subarnarekha, Mahanadi, Godavari, Krishna, Pennar, Cauvery and Vagai (b) Subarnarekha, Mahanadi, Krishna, Godavari, Cauvery, Vagai and Pennar (c) Mahanadi, Subarnarekha, Godavari, Krishna, Cauvery, Pennar and Vagai (d) Mahanadi, Subarnarekha, Krishna, Godavari, Cauvery, Vagai and Pennar

90. The world’s highest ground based telescopic observatory is located in (a) Colombia (b) India (c) Nepal (d) Switzerland

91. Two ladies simultaneously leave cities. A and B connected by a straight road and travel towards each other. The first lady travels 2km/hr faster than the second lady and reaches B one hour before the second lady reaches A. The two cities A and B are 24 km apart. How many kilometers does each lady travel in one hour? (a) 5 km, 3 km (b) 7 km, 5 km (c) 8 km, 6 km (d) 16 km, 14 km


92. Consider the following names: 1. Arehibiship Desmond Tutu 2. Lech Walesa 3. Shimon Peres 4. Yasser Arafat Who among these won the Nobel Peace Prize? (a) 1 and 2 (b) 1, 3 and 4 (c) 2, 3 and 4 (d) 1, 2, 3 and 4


93. With which one of the following mountain tribes did the British first come into contact with after the grant of Diwani in the year 1765? (a) Garos (b) Khasis (c) Kukis (d) Tipperahs


94. With reference to Indian transport systems, consider the following statements: 1. Indian railways system is the largest in the world. 2. National Highways cater to 45 percent of the total road transport demand 3. Among the states, Kerala has the highest density of surface road. 4. National Highway No. 7 is the longest in the country. Which of these statements are correct? (a) 1 and 2 (b) 1 and 3 (c) 2 and 3 (d) 2 and 4


95. Match List I (Name of the Lady) with List II (Achievement) and select the correct answer using the codes given below the lists: List I List II (Name of the Lady) (Achievement) A. Chinna Pillai 1. Winner of Neerja Bhanot Award B. Kaveri Thakur 2. Recipient of Stree Shakti Puraskar C. Mira Nair 3. Became the fastest swimmer in Asia at the age of 16 years D. Yasoda Ekambaram 4. Recipient of the Golden Lion at Venice Film Festival Codes: A B C D (a) 3 2 1 4 (b) 2 3 4 1 (c) 3 2 4 1 (d) 2 3 1 4


96. Which reference to the government’s welfare schemes, consider the following statements: 1. Under the Antyodaya Anna Yojana, the food grains are available to the poorest of the poor families at Rs. 2 per kg for wheat and Rs. 3 per kg for rice. 2. Under the National Old Age Pension Scheme, the old and destitute are provided Rs. 75 per month as Central pension, in addition to the amount provided by most State Governments. 3. Government of India has allocated 25 kg food grains per Below Poverty Line family per month, at less than half the economic cost. Which of these statements are correct? (a) 1 and 2 (b) 1 and 3 (c) 2 and 3 (d) 1, 2 and 3


97. Consider the following countries: 1. Brazil 2. Indonesia 3. Japan 4. Russia What is the descending order of the size of the following countries population-wise? (a) 1, 2, 4, 3 (b) 2, 3, 1, 4 (c) 2, 1, 4, 3 (d) 1, 2, 3, 4


98. Consider the following countries: 1. Angola 2. Colombia 3. Congo 4. Sudan Which of these countries has/have been suffering from civil war? (a) 1 only (b) 2 and 3 (c) 4 only (d) 1, 2, 3 and 4


99. Who among the following was the first Bhakti saint to use Hindi for the propagation of his message? (a) Dadu (b) Kabir (c) Ramananda (d) Tulsidas

100. In a bisexual flower, if androecium and gynaecium mature at different times, the phenomenon is known as (a) Dichogamy (b) Herkogamy (c) Heterogamy (d) Monogamy


101. The average annual temperature of a meteorological station is 260C, its average annual rainfall is 63 cm and the annual range of temperature is 90C. The station in question is (a) Allahabad (b) Chennai (c) Cherrapunji (d) Kolkata


102. With reference to the period of extremist nationalist movement in India with its spirit of Swadeshi, which one of the following statements is not correct? (a) Laikat Hossain led the Muslim peasants of Barisal in their agitations (b) In 1989, the scheme of national education was formulated by Satish Chandra Mukherjee (c) The Bengal National College was founded in 1906 with Aurobindo as the Principal (d) Tagore preached the cult of Atmasakti, the main plank of which was social and economic regeneration of the villages


103. In the Indian Constitution, the Right to Equality is granted by Five Articles, They are (a) Article 16 to Article 20 (b) Article 15 to Article 19 (c) Article 14 to Article 18 (d) Article 13 to Article 17


104. Amit started a business by investing Rs. 30,000. Rahul joined the business after some time and invested Rs. 20,000. At the end of the year, profit was divided in the ratio of 2:1. After how many months did Rahul join the business? (a) 2 (b) 3 (c) 4 (d) 5


105. When the time in the wall-clock is 3.25 p.m. the acute angle between the hours-hand and the minutes-hand is (a) 60° (b) 52° ½ (c) 47° ½ (d) 42° 106. Which one of the following amendments to the Indian Constitution empowers the President to send back any matter for reconsideration by the Council of Ministers? (a) 39th (b) 40th (c) 42nd (d) 44th

107. Recently, several hundred South African soldiers were sent to Burundi (a) to side with the Tutsi tribe in the country’s civil war (b) to side with the Hutu tribe in the ongoing ethnic conflict (c) as a part of United Nations special force to keep control on the ethnic groups revolting against the government (d) as South Africa’s protection force to help mediate and agreement between warring groups of civil war

108. Chapehar Kut is a festival celebrated in the state of (a) Arunachal Pradesh (b) Assam (c) Mizoram (d) Sikkim

109. Consider the following statements: 1. NTPC is the largest power utility in India. 2. ONGC accounts for half of the LPG production India. 3. Indian Oil Corporation operates all the oil refineries in India. 4. The Indian Ordinance Factory is the largest departmentally run industrial undertaking in the country. Which of these statements is/are correct? (a) 1 only (b) 2 and 3 (c) 2, 3 and 4 (d) 1 and 4

110. Match List 1 (Oxidation number) with List II (The element) and select the correct answer using the codes given below this lists: List I List II (Oxidation number) (The element) A. 2 1. Oxidation number of Mn in MnO2 B. 3 2. Oxidation number of S in H2S2O7 C. 4 3. Oxidation number of Ca in CaO2 D. 6 4. Oxidation number of Al in NaAIh4 Codes: A B C D (a) 3 4 1 2 (b) 4 3 1 2 (c) 3 4 2 1 (d) 4 3 2 1

111. With reference to the Indian freedom struggle, which one of the following statements if not correct? (a) Hakim Ajmal Khan was one of the leaders to start a nationalist and militant Ahrar movement (b) When the Indian National Congress was formed, Sayyid Ahmad Khan opposed it (c) The all-India Muslim League which was formed in 1906 vehemently opposed the partition of Bengal and separate electorates (d) Maulana Barkataullah and Maulana Obeidullah Sindhi were among those who formed a Provisional Government of India in Kabul


112. The Asia-Pacific Economic Co-operation Forum was held in the year 2001 in (a) Bangkok (b) Hongkong (c) Jakarta (d) Shanghai 113. Match List I (Ethnic Community) with List II (Country) and select the correct answer using the codes given below the lists: List I List II (Ethnic Community) (Country) A. Apatani 1. China B. Dayak 2. India C. Dinka 3. Indonesia D. Uighur 4. Sudan Codes: A B C D (a) 2 3 4 1 (b) 3 2 4 1 (c) 3 2 4 1 (d) 3 2 1 4

114. The term of the Lok Sabha (a) cannot be extended under any circumstances (b) can be extended by six months at a time (c) can be extended by one year at a time during the proclamation of emergency (d) can be extended for two years at a time during proclamation of emergency


115. In the year 2001, Germany approved a $ 32 million credit to India (a) to promote primary education in selected states (b) for Tehri dam project (c) to assist in the development of nuclear power generation projects (d) for oceanographic research

116. Consider the following 1. Currency with the public 2. Demand deposits with banks 3. Time deposits with banks Which of these are included in Broad Money (M3) in India? (a) 1 and 2 (b) 1 and 3 (c) 2 and 3 (d) 1, 2 and 3

117. Who among the following won six gold medals in the 9th FINA World Swimming Championship held in Fukuoka, Japan in the year 2001? (a) Grant Hackett (b) Ian Thorpe (c) Michael Phelps (d) Roman Sloudnov

118. Foot-and-mouth disease in animals, a current epidemic in some parts of the world is caused by (a) Bacterium (b) Fungus (c) Protozoan (d) Virus

119. In the year 2001, India offered a grant of five million dollars to Tajikistan to (a) tackle the drought situation (b) set up a Software Technology Park (c) promote mineral exploration (d) procure defence equipment 120. Consider the following countries: 1. Albania 2. Bosnia Herzegovina 3. Croatia 4. Macedonia Which of these countries has/have Adriatic Sea as a boundary? (a) 1 and 2 (b) 1, 2 and 3 (c) 4 only (d) 3 and 4

121. A hollow sphere of radius R, a hollow cube of side R and a thin circular plate of radius R, made up of the same material, are all heated to 200C above room temperature. When left to cool in the room, which of them will reach the room temperature first? (a) Circular plate (b) Cube (c) Sphere (d) All of them will reach the room temperature at the same time

122. Consider the following financial institution of India: 1. Industrial Finance Corporation of India (IFCI). 2. Industrial Credit and Investment Corporation of India (ICICI). 3. Industrial Development Bank of India (IDBI). 4. National Bank for Agriculture and Rural Development (NABARD). The correct chronological sequence of the establishment of these institutions is (a) 1, 2, 3, 4 (b) 2, 3, 4, 1 (c) 3, 4, 1, 2 (d) 4, 1, 2, 3

123. During the Indian freedom struggle, the Khudai Khidmatgars, also known as Red Shirts, called for (a) he Union of Pashtun tribal areas in north-west with the Afghanistan (b) the adoption of terrorist tactics and methods for terrorizing and finally ousting the colonial rulers (c) the adoption of communist revolutionary Ideology for political and social reform (d) the Pathan regional nationalist unity and a struggle against colonialism


124. Match List I (Commission) with List II (Matter of enquiry) and select the correct answer using the codes given below the lists: List I List II (Commission) (Matter of Enquiry) A. Wadhwa Commission 1. The assistance of Rajiv Gandhi B. Liberhan Commission 2. Killing of Graham Staines C. Sri Krishna Commission 3. Demolition of a religious structure At Ayodhya D. Jain Commission 4. Riots in Mumbai in 1993 Codes: A B C D (a) 3 2 4 1 (b) 2 3 4 1 (c) 3 2 1 4 (d) 2 3 1 4

125. Consider the following statements: 1. In equatorial regions, the year is divided into four main seasons. 2. In Mediterranean region, summer receives more rain. 3. In China type climate, rainfall occurs throughout the year. 4. Tropical highlands exhibit vertical zonation of different climates. Which of these statements are correct? (a) 1, 2, 3 and 4 (b) 1, 2 and 3 (c) 1, 2 and 4 (d) 3 and 4

126. A World Summit with representation from all the countries will be held in Johannesburg in September 2002 on the subject of (a) AIDS control (b) Global terrorism (c) Human Rights (d) Sustainable development

127. Which one of the following statements is not correct? (a) All echinoderms are viviparous (b) Roundworm has no circulatory system (c) In bony fishes, swim bladder is usually present (d) In cartilaginous fishes, fertilization is internal

128. Assume that the moon takes exactly 30 days to complete the cycle and also assume that it rises in the East exactly at 6.48 p.m. on the first day. ON the fourth day, at what time will it rise? (a) 8.24 p.m. (b) 9.12 p.m. (c) 10.00 p.m. (d) 11.48 p.m.

129. Match List I (Scientists) with List II (Achievement) and select the correct answer using the codes given below the lists: List I List II (Scientists) (Achievement) A. Arber and Smith 1. Developed Transgenic Plants with Agrobacterium T-DNA B. Feldman 2. Discovered endonucleases C. Mullis 3. Discovered reverse transcriptase D. Temin and Baltimore 4. Discovered polymerase Chain reaction Codes: A B C D (a) 2 1 4 3 (b) 1 2 4 3 (c) 2 1 3 4 (d) 1 2 3 4

130. Berber speaking community, frequently in the news, lives in (a) Afghanistan (b) Algeria (c) Argentina (d) Australia

131. In the case of election to the Lok Sabha, the amount of Security deposited for general category candidates and SC/ST category candidates respectively is (a) Rs. 5,000 and Rs. 2,500 (b) Rs. 10,000 and Rs. 2,500 (c) Rs. 10,000 and Rs. 5,000 (d) Rs. 15,000 and Rs. 7,500

132. With reference to Power Sector in India, consider the following statements: 1. Rural electrification has been treated as a Basic Minimum Service under the Prime Minister’s Gramodaya Yojna. 2. 100 percent Foreign Direct Investment in power is allowed without upper limit. 3. The Union Ministry of Power has signed a Memoranda of Understanding with 14 States. Which of these statements is/are correct? (a) 1 only (b) 1 and 2 (c) 2 and 3 (d) 3 only

133. A country is said to be in debt trap if (a) it has to abide by the conditionalities imposed by the International Monetary Fund (b) it has to borrow to make interest payments on outstanding loans (c) it has been refused loans or aid by creditors abroad (d) the World Bank charges a very high rate of interest on outstanding as well as new loans

134. Which one of the following statements is correct? (a) Prions are the smallest tree-living cells (b) The cell wall of Mycoplasmas is made up of amino sugars (c) Viroids consist of a single-stranded RNA molecule (d) Rickettsias lack cell wall

135. Match List I (Country) with List II (President) and select the correct answer using the codes given below the lists: List I List II (Country) (President) A. Congo 1. Levy Mwanawasa B. Nigeria 2. Joseph Kabila C. Uganda 3. Olusegum Obasanjo D. Zambia 4. Yoweri Museveni Codes: A B C D (a) 2 3 4 1 (b) 3 2 1 4 (c) 2 3 1 4 (d) 3 2 4 1

136. Consider the following ecosystems: 1. Taiga 2. Tropical evergreen 3. Tropical deciduous 4. Tundra The correct sequence in decreasing order of the albedo values of these ecosystems is (a) 1, 4, 3, 2 (b) 4, 1, 2, 3 (c) 4, 1, 3, 2 (d) 1, 4, 2, 3

137. Consider the following statements Full convertibility of the rupee may mean 1. its free float with other international currencies. 2. its direct exchange with any other international currency at any prescribed place inside and outside the country. 3. it acts just like anyother international currency. Which of these statements are correct? (a) 1 and 2 (b) 1 and 3 (c) 2 and 3 (d) 1, 2 and 3

138. The sea coast of which one of the following states has become famous as a nesting place for the giant Olive Ridley turtles from South America? (a) Goa (b) Gujarat (c) Orissa (d) Tamil Nadu


139. With reference to Indian satellites and their launchers, consider the following statements 1. All the INSAT-series of satellites were launched abroad. 2. PSLVs were used to launch IRS-series of satellites. 3. India used the indigenously built cryogenic engines for the first time for powering the third stage of SLV. 4. GSAT, launched in the year 2001, has payloads to demonstrate digital broadcasts and internet services. Which of these statements are correct? a) 1, 2, 3 and 4 (b) 2, 3 and 4 (c) 1, 2 and 4 (d) 1 and 3


140. The 93rd Constitutional Amendment Bill deals with the (a) continuation of reservation for backward classes in government employment. (b) Free and compulsory education for all children between the age of 6 and 14 years (c) Reservation of 30 percent posts for women in government recruitments (d) Allocation of more number of parliamentary seats for recently created States Directions: The following 10 (ten) items consist of two statements, one labeled as the “Assertion A” and the other as “Reason R”. You are to examine these two statements carefully and decide if the “Assertion A” and the “Reason R” are individually true and if so, whether the “Reason R” is the correct explanation for the given “Assertion A”. Select your answers to these items using the codes given below and mark your Answer Sheet accordingly. Codes: (a) Both A and R are individually true and R is the correct explanation of A (b) Both A and R are individually true but R is not a correct explanation of A (c) A is true but R is false (d) A is false but R is true


141. Assertion (A): Drinking of whisky increases the frequency of urination. Reason (r): Alcohol intake speeds up the secretion of vasopressin in the body.



142. Assertion (A): Muhammad bin Tughlaq left Delhi, and, for two years lived in a camp called Swarga-dwari. Reason (r): At that time, Delhi was ravaged by a form of plague and many people died.


143. Assertion (A): With the increase of temperature, the viscosity of glycerine increases. Reason (r): Rise of temperature increases kinetic energy of molecules.

144. Assertion (A): The effect of labour participation in the Indian nationalist upsurge of the early 1930s was weak. Reason (r): The labour leaders considered the ideology of Indian National Congress as bourgeois and reactionary.

145. Assertion (A): Synthetic detergents can lather well in hard water. Reason (r): Synthetic detergents form soluble calcium and magnesium salts with hard water.

146. Assertion (A): 600-650 latitudes in both the hemispheres have a low pressure belt instead of high pressure. Reason (r): The low-pressure areas are permanent over oceans rather than on land.


147. Assertion (A): Artificial satellites are always launched from the earth in the eastward direction. Reason (r): The earth rotates from west to east and so the satellite attains the escape velocity.

148. Assertion (A): Human diet should compulsorily contain Glycrine, Serine and Tyrosin. Reason (r): Essential amino acids cannot be synthesized in the human body.

149. Assertion (A): The surface winds spiral inwards upon the center of the cyclone. Reason (r): Air descends in the center of the cyclone.


150. Assertion (A): An iron ball floats on mercury but gets immersed in water. Reason (r): The specific gravity of iron is more than that of mercury.


ANSWERS 1. (d) 2. (c) 3. (a) 4. (b) 5. (b) 6. (b) 7. (d) 8. (c) 9. (a) 10. (c) 11. (b) 12. (c) 13. (d) 14. (b) 15. (b) 16. (a) 17. (d) 18. (a) 19. (b) 20. (d) 21. (a) 22. (d) 23. (a) 24. (c) 25. (a) 26. (d) 27. (a) 28. (b) 29. (a) 30. (d) 31. (b) 32. (d) 33. (c) 34. (b) 35. (d) 36. (a) 37. (c) 38. (c) 39 (b) 40. (c) 41. (c) 42. (b) 43. (a) 44. (d) 45. (b) 46. (a) 47. (c) 48. (d) 49. (d) 50. (b) 51. (b) 52. (c) 53. (b) 54. (d) 55. (b) 56. (c) 57. (a) 58. (d) 59. (b) 60. (a) 61. (d) 62. (a) 63. (b) 64. (c) 65. (d) 66. (c) 67. (b) 68. (a) 69. (d) 70. (b) 71. (b) 72. (d) 73. (c) 74. (a) 75. (d) 76. (c) 77. (a) 78. (a) 79. (b) 80. (a) 81. (b) 82. (d) 83. (a) 84. (d) 85. (a) 86. (b) 87. (c) 88. (b) 89. (a) 90. (b) 91. (c) 92. (d) 93. (b) 94. (d) 95. (b) 96. (d) 97. (c) 98. (c) 99. (c) 100. (a) 101. (a) 102. (a) 103. (c) 104. (b) 105. (c) 106. (d) 107. (d) 108. (c) 109. (d) 110. (a) 111. (c) 112. (d) 113. (a) 114. (c) 115. (d) 116. (d) 117. (b) 118. (d) 119. (a) 120. (b) 121. (c) 122. (a) 123. (d) 124. (b) 125. (d) 126. (d) 127. (a) 128. (b) 129. (c) 130. (b) 131. (c) 132. (c) 133. (b) 134. (c) 135. (a) 136. (c) 137. (d) 138. (c) 139. (c) 140. (b) 141. (c) 142. (c) 143. (d) 144. (a) 145. (a) 146. (c) 147. (c) 148. (d) 149. (b) 150. (c)