Wednesday, 31 October 2012

TCS Pattern Questions-6


PATTERN 41
 1) On planet korba, a solar blast has melted the ice caps on its equator. 9 years after the ice melts, tiny planetoids called echina start growing on the rocks. Echina grows in the form of circle, and the relationship between the diameter of this circle and the age of echina is given by the formula d = 4*√ (t-9) for t ≥ 9 where d represents the diameter in mm and t the number of years since the solar blast.Jagan recorded the radius of some echina at a particular spot as 7mm. How many years back did the solar blast occur?
a) 17 b)21.25 c)12.25 d)14.05
 Solution: radius =7mm, then diameter 2*radius,substitute diameter d in above equation u will get answer

 PATTERN 42
 1)A man goes 50Km north , then turned left walked 40Km, then turned right ? In which direction he is? a)North b)South c)East d)West

 PATTERN 43 
1)In T.Nagar the building were numbered from 1 to 100.Then how many 4‟s will be present in the numbers?
 a)18 b)19 c)20 d)21.
Solution:you have to count and answer but be prepare with answer

2)In T.Nagar the building were numbered from 1 to 100.Then how many 6‟s will be present in the numbers? a)18 b)19 c)20 d)21

3)In T.Nagar the building were numbered from 1 to 100.Then how many 1‟s will be present in the numbers? a)18 b)19 c)20 d)21 4)In T.Nagar the building were numbered from 1 to 100.Then how many 0‟s will be present in the numbers?
 a)18 b)19 c)20 d)11

PATTERN 44
 1) A number when divided by D leaves a remainder of 8 and when divided by 3D leaves a remainder of 21. What is the remainder left, when twice the number is divided by 3D?
a)13 b) cannot be determined c) 3 d) 42

 PATTERN 45
 1.) Ferrari S.P.A is an Italian sports car manufacturer based in Maranello, Italy. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored drivers and manufactured race cars before moving into production of street-legal vehicles in 1947 as Ferrari S.P.A. Throughout its history, the company has been noted for its continued participation in racing, especially in Formula One where it has employed great success .Rohit once bought a Ferrari. It could go 4 times as fast as Mohan's old Mercedes. If the speed of Mohan's Mercedes is 35 km/hr and the distance traveled by the Ferrari is 490 km, find the total time taken for Rohit to drive that distance.
 a)20.72 b) 3.5 c) 238.25 d) 6.18
Solution:speed of Ferrari =4*35=140,time=distance/velocity

 2) Ferrari S.P.A is an Italian sports car manufacturer based in Marane llo, Italy. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored drivers and manufactured race cars before moving into production of street-legal vehicles in 1947 as Ferrari S.P.A. Throughout its history, the company has been noted for its continued participation in racing, especially in Formula One where it has employed great success .Rohit once bought a Ferrari. It could go 4 times as fast as Mohan's old Mercedes. If the speed of Mohan's Mercedes is 46 km/hr and the distance traveled by the Ferrari is 953 km, find the total time taken for Rohit to drive that distance.
 a)20.72 b) 5.18 c) 238.25 d) 6.18

PATTERN 46
 1) A sheet of paper has statements numbered from 1 to 70. For all values of n from 1 to 70. Statement n says ' At least n of the statements on this sheet are false. „Which statements are true and which are false?
 a) The even numbered statements are true and the odd numbered are false.
b) The odd numbered statements are true and the even numbered are false.
c) The first 35 statements are true and the last 35 are false.
 d) The first 35 statements are false and the last 35 are false.

PATTERN 47
 1) A man goes north 37km.turns left goes 2km.turns right goes 17km.turns right goes 2km. find distance b/w starting ending point.
a) 54 b) 27 c) 81 d) 67

PATTERN 48
 1) If there are 30 cans out of them one is poisoned if a person tastes very little he will die within 14 hours so if there are mice to test and 24 hours to test, how many mices are required to find the poisoned can?
a) 3 b) 2 c) 6 d) 1

 PATTERN 49
 1) If a and b are mixed in 3:5 ration and b and c are mixed in 8:5 ration if the final mixture is 35 liters, find the amount of b?
a) 13.34 b) 15.73 c) 16.73 d) 9.45
Solution:solve for a:b:c,then b ratio is b/(a+b+c)*35

PATTERN 50 
1) If we subtract a number with y, we get 4 increase of number, once it got divided by y itself... Find that number??
 a) 13 b) 12 c) 14 d) 11

TCS Pattern Question-5


Pattern-31
 1. Entry ticket to an exhibition ranges from 1p to 31p. You need to provide exact change at the counter. You have 31p coin. In how many parts will u divide 31p so that u will provide the exact change required and carry as less coins as possible?
a)4 b)5 c)6 d)7
Solution: in btech we studied 8 4 2 1 code for binary system in digital logic proceed in that way for answer it is 16 8 4 2 1 if u add all we will get 31 so 5 coins required

Pattern 32 
1. Peter and Paul are two friends. The sum of their ages is 35 years. Peter is twice as old as Paul was when Peter was as old as Paul is now. What is the present age of Peter?
a)8 b)20 c)16 d)15

 Pattern 33
 1. 20 men handshake with each other without repetition. What is the total number of handshakes made? a)190 b)210 c)150 d)250

2.10 people are there, they are shaking hands together, how many hand shakes possible, if they are in no pair of cyclic sequence.
a)45 b)9 c)12 d)10

Pattern 34
1. If there are 2 wheelers and 4 wheelers parked in a school located at the heart of the city, find the number of 4 wheelers parked there if there were 20 two wheelers parked there
a)48 b)50 c)52 d)64
 Solution: proceed with answer is best in question they will give total no of wheels

2. If there are 2 wheelers and 4 wheelers parked in a school located at the heart of the city, find the number of 4 wheelers parked there if there were 58 wheels are parked there
 a)10 b)33 c)22 d)none

Pattern 35 
1. A man whose age is 45 yrs has 3 sons named John, Jill, jack. He went to a park weekly twice. He loves his sons very much. On a certain day he found the shop keepers selling different things. An apple cost 1penny, 2chocalate costs 1penny & 3 bananas cost 1 penny. He has bought equal number of apple, chocolate & banana for each son. If the total amount he invest is 7 penny then how many he has bought from each piece for his son?
a)1app,1cho,1 banana b)1 app,2cho,3 banana c)1app,2cho,1banana

2. One person had three children. He had 7 pennies. Find the distribution of the fruits among the three children. A melon costs 1 penny, 2 oranges cost 1 penny and 3 grapes cost 1 penny
a)2 melons, 1 orange, 1 grape b) 2 melons, 2 orange, 1 grape c) 1 melons, 2 orange, 1 grape.

PATTERN 36
 1) The age of the two friends were in the ration of 6:5.If the sum of their ages is 55.Then after how many years their ratio will become 8:7?
 a)11 b)7 c)10 d)12
Solution: 6x+5x=55, so x=5,put first ratio after substitution is (6*5)/(5*5) and second ratio is 40/35 So difference in numerators 40-30=10 years

2)The age of the two friends were in the ration of 6:5.If the sum of their ages is 66.Then after how many years their ratio will become 7:6?
 a)11 b)6 c)10 d)12

3) The age of the two friends were in the ration of 2:3.If the sum of their ages is 55.Then after how many years their ratio will become 4:5?
a)11 b)33 c)22 d)44

PATTERN 37
 1)A volume of 10936 l water is in a container of sphere.How many semisphere of volume 4l each will be required to tranfer all the water into the small semispheres?
 a)2812 b)8231 c)2734 d)4222

 PATTERN 38 
1)A person ismanufacturing a house.He bought 20 ropes of wire which has a density of 300 Kg/m3.The height of the building to be constructed is 40 m.If the capacity of the current passed in the wire is 20 A and the voltage capacity is 80 Volts.Then what will be the opposing force to the current if the wire is used ?
a)2 b)4 c)8 d)1600
Solution: ohms law V=IR,Opposing force of current is resistance,R=v/i

PATTERN 39
 1)A horse chases a pony 2 hours after the pony runs.Horse takes 3 hours to reach the pony.If the average speed of the horse is 81Kmph.Then what is the average speed of the pony?
 a)46.4 b)51 c)53.4 d)48.6
 Solution:Horse takes 3 hours to cover the distance Pony takes 3+2 =5 hours to cover the same distance,Velocity=distance/time,distance travelled by them is equal it is 81*3=243km,speed of pony=243/5=48.6

 2) A horse chases a pony 3 hours after the pony runs. Horse takes 4 hours to reach the pony. If the average speed of the horse is 35 kmph, what s the average speed of the pony?

3) A horse chases a pony 3 hours after the pony runs. Horse takes 4 hours to reach the pony. If the average speed of the horse is 35 kmph, what s the average speed of the pony

 PATTERN 40 
1)The difference between two no is 9 and the product of the two is 14.What is the square of their sum?
 a)120 b)130 c)137 d)145
Solution:a-b=9,ab=14,(a-b)2=a2+b2-2*a*b

2) The sum of two no is 5 and the product of the two is 14.What is the sum of their squares?

3) The sum of the squares of two no is 12 and their sum is 15.Find the product of the two no?

Tuesday, 30 October 2012

TCS Pattern Questions-4


Pattern 21: 
1. A Person buys a horse for 15 ponds, after one year he sells it for 20 pounds. After one year, again he buys the same horse at 30 pounds and sells it for 40 pounds. What is the profit for that person?
Solution: here we cannot consider depreciation or decay of item accto answer so go acc to answer Totally 5+10=15$profit

Pattern 22: 
1. John buys a cycle for 31 dollars and given a cheque of amount 35 dollars. Shop Keeper exchanged the cheque with his neighbor and gave change to John. After 2 days, it is known that cheque is bounced. Shop keeper paid the amount to his neighbor. The cost price of cycle is 19 dollars. What is the profit/loss for shop keeper?
 a)loss 23 b)gain 23 c)gain 54 d)Loss 54
Solution: loss =change of money given to john(4$)+actual cycle cost 19$=23$ loss

Pattern 23:
 1. A lady has fine gloves and hats in her closet- 18 blue, 32 red, and 25 yellow. The lights are out and it is totally dark. In spite of the darkness, she can make out the difference between a hat and a glove. She takes out an item out of the closet only if she is sure that if it is a glove. How many gloves must she take out to make sure she has a pair of each color?
a)50 b)8 c)60 d)42
Solution: i am not able to answer this if i go in procedure way so search in net by searching question .better see below website

http://www.m4maths.com/placement-puzzles.php?
http://www.allinterview.com/company/Tcs.html my answered questions may be answered there.


2. A lady has fine gloves and hats in her closet- 14 blue, 20 red, and 18 yellow. The lights are out and it is totally dark. In spite of the darkness, she can make out the difference between a hat and a glove. She takes out an item out of the closet only if she is sure that if it is a glove. How many gloves must she take out to make sure she has a pair of each color?

3. A lady has fine gloves and hats in her closet- 13 blue, 27 red, and 40 yellow. The lights are out and it is totally dark. In spite of the darkness, she can make out the difference between a hat and a glove. She takes out an item out of the closet only if she is sure that if it is a glove. How many gloves must she take out to make sure she has a pair of each color?

4. A lady has fine gloves and hats in her closet- 25blue, 7 red, and 9 yellow. The lights are out and it is totally dark. In spite of the darkness, she can make out the difference between a hat and a glove. She takes out an item out of the closet only if she is sure that if it is a glove. How many gloves must she take out to make sure she has a pair of each color?

 5. A lady has fine gloves and hats in her closet- 26 blue, 30 red, and 56 yellow. The lights are out and it is totally dark. In spite of the darkness, she can make out the difference between a hat and a glove. She takes out an item out of the closet only if she is sure that if it is a glove. How many gloves must she take out to make sure she has a pair of each color?

 Pattern 24: 
1. Sangakara and Ponting selects batting by using a dice, but dice is biased. So to resolve, Ponting takes out a coin. What is the probability that coin shows correct option?
 a)1/2 b)1/6 c)1/12 d)6/10
Solution is  ½.

 2. There is a die with 10 faces. It is not known that fair or not. 2 captains want to toss die for batting selection. What is the possible solution among the following?
a) If no. is odd it is head, if no. is even it is tail      
b) If no. is odd it is tail, if no. is even it is head
c) Toss a die until all the 10 digits appear on top face. And if first no. in the sequence is odd then consider it as tail. If it is even consider it as head.

Pattern 25: 
1. In a family there are some boys and girls. All boys told that they are having equal no of brothers and sisters and girls told that they are having twice the no. of brothers than sisters. How many boys and girls present in a family?
a)4 boys and 3 girls b)3 boys and 4 girls c)2 boys and 5 girls d)5 boys and 2 girls

Pattern 26
1. 10men and 10 women are there, they dance with each other, is there possibility that 2 men are dancing with same women and vice versa?
 a)22 b)20 c)10 d)none

2. There are 100 men and 100 women on the dance floor. They want to dance with each other. Then which of the following statements is always true:
 a) There are 2 men who danced with equal no. of women‟s
 b) There are 2 women who danced with equal no. of men
    a) both a and b
    b)only a
    c)only b
    d)none

Pattern 27: 
1. Middle- earth is a fictional land inhabited by hobbits, elves, dwarves and men. The hobbits and elves are peaceful creatures that prefer slow, silent lives and appreciate nature and art. The dwarves and the men engage in physical games. The game is as follows. A tournament is one where out of the two teams that play a match, the one that loses get eliminated. The matches are played in different rounds, where in every round; half of the teams get eliminated from the tournament. If there are 8 rounds played in knock out tournament, how many matches were played?
a)257 b)256 c)72 d)255
Solution:do not know perfect logic 28

2. A game is played between 2 players and one player is declared as winner. All the winners from first round are played in second round. All the winners from second round are played in third round and so on. If 8 rounds are played to declare only one player as winner, how many players are played in first round?
a)256 b)512 c)64 d)128

Pattern 28:
 1. Metal strip of width „x‟ cm. 2 metal strips are placed one over the other, then the combine length of 2 strips is „y‟. If „z‟ strips are placed in that manner. What is the final width of that arrangement?

2. A, B, C, D, E are there among A, B, C are boys and D, E are girls D is to the left of A and no girl sits at the middle and at the extemes. Then what is the order of their sittings.

Pattern 29: 
1. There is 7 friends (A1, A2, A3....A7).If A1 have to have shake with all without repeat. How many handshakes possible?
 a)6 b)21 c)28 d)7
Solution:For handshakes type question i am confirming u that if the there are n members are there Handshakes are given in linear manner =n-1(last person cannot give hand shake to first person) Handshakes are given in cyclic manner =n(last person can give hand shake to first person) But i do not know perfectly for repetition it is nc2

2. 49 members attended the party. In that 22 are males, 17 are females. The shake hands between males, females, male and female. Total 12 people given shake hands. How many such kinds of such shake hands are possible?
a)122 b)66 c)48 d)128

 Pattern 30: 
1. B is taller than j and 3 pillars. P is shorter than B and 2 pillars is j shorter/taller than P? a)yes b)no c)may be d)can‟t find 2. There are 1000 pillars for a temple. 3 friends Linda, Chelsey, Juli visited that temple. (Some unrelated stuff) Linda is taller than Chelsea and taller than 2 of 1000 pillars. Julia is shorter than Linda. Find the correct sentence?
 a) Linda is shorter among them b) Chelsea is taller than Julia
 c) Chelsea is shorter than Julia d) Cannot determine who is taller among Chelsea and Julia

Sunday, 28 October 2012

Routing Techniques

What Is Routing?
Routing is the act of moving information across an internetwork from a source to a destination. Along the way, at least one intermediate node typically is encountered. Routing is often contrasted with bridging, which might seem to accomplish precisely the same thing to the casual observer. The primary difference between the two is that bridging occurs at Layer 2 (the link layer) of the OSI reference model, whereas routing occurs at Layer 3 (the network layer). This distinction provides routing and bridging with different information to use in the process of moving information from source to destination, so the two functions accomplish their tasks in different ways.

The topic of routing has been covered in computer science literature for more than two decades, but routing achieved commercial popularity as late as the mid-1980s. The primary reason for this time lag is that networks in the 1970s were simple, homogeneous environments. Only relatively recently has large-scale internetworking become popular.


Routing Components
Routing involves two basic activities: determining optimal routing paths and transporting information groups (typically called packets) through an internetwork. In the context of the routing process, the latter of these is referred to as packet switching. Although packet switching is relatively straightforward, path determination can be very complex.

Path Determination
Routing protocols use metrics to evaluate what path will be the best for a packet to travel. A metric is a standard of measurement, such as path bandwidth, that is used by routing algorithms to determine the optimal path to a destination. To aid the process of path determination, routing algorithms initialize and maintain routing tables, which contain route information. Route information varies depending on the routing algorithm used.
Routing algorithms fill routing tables with a variety of information. Destination/next hop associations tell a router that a particular destination can be reached optimally by sending the packet to a particular router representing the “next hop” on the way to the final destination. When a router receives an incoming packet, it checks the destination address and attempts to associate this address with a next hop.

Routing tables also can contain other information, such as data about the desirability of a path. Routers compare metrics to determine optimal routes, and these metrics differ depending on the design of the routing algorithm used.

Routers communicate with one another and maintain their routing tables through the transmission of a variety of messages. The routing update message is one such message that generally consists of all or a portion of a routing table. By analyzing routing updates from all other routers, a router can build a detailed picture of network topology. A link-state advertisement, another example of a message sent between routers, informs other routers of the state of the sender’s links. Link information also can be used to build a complete picture of network topology to enable routers to determine optimal routes to network destinations.


Switching
Switching algorithms is relatively simple; it is the same for most routing protocols. In most cases, a host determines that it must send a packet to another host. Having acquired a router’s address by some means, the source host sends a packet addressed specifically to a router’s physical (Media Access Control [MAC]-layer) address, this time with the protocol (network layer) address of the destination host.

As it examines the packet’s destination protocol address, the router determines that it either knows or does not know how to forward the packet to the next hop. If the router does not know how to forward the packet, it typically drops the packet. If the router knows how to forward the packet, however, it changes the destination physical address to that of the next hop and transmits the packet.

The next hop may be the ultimate destination host. If not, the next hop is usually another router, which executes the same switching decision process. As the packet moves through the internetwork, its physical address changes, but its protocol address remains constant

The preceding discussion describes switching between a source and a destination end system. The International Organization for Standardization (ISO) has developed a hierarchical terminology that is useful in describing this process. Using this terminology, network devices without the capability to forward packets between subnetworks are called end systems (ESs), whereas network devices with these capabilities are called intermediate systems (ISs). ISs are further divided into those that can communicate within routing domains (intradomain ISs) and those that communicate both within and between routing domains (interdomain ISs). A routing domain generally is considered a portion of an internetwork under common administrative authority that is regulated by a particular set of administrative guidelines. Routing domains are also called autonomous systems.With certain protocols, routing domains can be divided into routing areas, but intradomain routing protocols are still used for switching both within and between areas.

Static vs. Dynamic Routing


There are two basic methods of building a routing table:
• Static Routing
• Dynamic Routing

A static routing table is created, maintained, and updated by a network administrator, manually. A   static route to every network must be configured on every router for full connectivity. This provides a granular level of control over routing, but quickly becomes impractical on large networks.

Routers will not share static routes with each other, thus reducing CPU/RAM overhead and saving bandwidth. However, static routing is not fault-tolerant, as any change to the routing infrastructure (such as a link going down, or a new network added) requires manual intervention. Routers operating in a purely static environment cannot seamlessly choose a better route if a link becomes unavailable.

Static routes have an Administrative Distance (AD) of 1, and thus are always preferred over dynamic routes, unless the default AD is changed. A static route with an adjusted AD is called a floating static route, and is covered in greater detail in another guide.

A dynamic routing table is created, maintained, and updated by a routing protocol running on the router. Examples of routing protocols include RIP (Routing Information Protocol), EIGRP (Enhanced Interior Gateway Routing Protocol), and OSPF (Open Shortest Path First). Specific dynamic routing protocols are covered in great detail in other guides.

Routers do share dynamic routing information with each other, which increases CPU, RAM, and bandwidth usage. However, routing protocols are capable of dynamically choosing a different (or better) path when there is a change to the routing infrastructure.

Do not confuse routing protocols with routed protocols:
• A routed protocol is a Layer 3 protocol that applies logical addresses to devices and routes data between networks (such as IP)
• A routing protocol dynamically builds the network, topology, and next hop information in routing tables (such as RIP, EIGRP, etc)


The following briefly outlines the advantages and disadvantages of static routing:

Advantages of Static Routing:

• Minimal CPU/Memory overhead
• No bandwidth overhead (updates are not shared between routers)
• Granular control on how traffic is routed

Disadvantages of Static Routing

• Infrastructure changes must be manually adjusted
• No “dynamic” fault tolerance if a link goes down
• Impractical on large network


The following briefly outlines the advantages and disadvantages of dynamic routing:

Advantages of Dynamic Routing
• Simpler to configure on larger networks
• Will dynamically choose a different (or better) route if a link goes down
• Ability to load balance between multiple links

Disadvantages of Dynamic Routing

• Updates are shared between routers, thus consuming bandwidth
• Routing protocols put additional load on router CPU/RAM
• The choice of the “best route” is in the hands of the routing protocol, and not the network administrator


Tuesday, 23 October 2012

Javascript Interview Questions

1) Explain in brief about Java script?
Java Script, originally supported by netscape navigator, is the most popular web scripting language. Java Script lets you embed programs right in your web pages and run these programs using the web browser. With the introduction of dynamic html necessity of Java Script is becoming more of a necessity.

2) Explain about the structured programming features of Java Script?
Java script supports most of the structured programming syntax present in programming language. It doesn't support scoping which is present in C programming in block style. It also supports various forms and methods of testing the type of an object which also includes the famous duck type testing.

3) Explain about inner functions and closures present in Function level programming?

Each time the outer function is invoked an inner function is created. Variables for the outer function still continue to exist as long as the inner function exists. This process continues until invocation exists. This is the how closures work within the JavaScript with all its functionalities.

4) Explain functions as object constructors?
If you prefix a new with a function call creates a new object and you can call that functions with a local keyword which is attached to that object. Object prototype property determines the functions prototype property. These functions act as object constructors along with their normal properties.

5) Explain functions as methods?

There is no big distinction between function definition and method definition. The only difference occurs when you actually call that function as a method which inturn is attached to an object. When the function is called in this manner its local keyword is bound to that object.

6) Explain about run time environment of Javascript?
Java script does not have a sophisticated run time of its own but it relies on the web browser of the client. It relies on this run time environment for its functions and methods to perform their duties by which scripts can interact with the user.

7) Explain about Variadic functions?
When you use variadic function in Javascript, an indefinite number of parameters can be passed onto the function. Inturn the function can access the parameters through formal parameters and local arguments. Variadic functions are much successful when you need to assign different number of parameters to functions.

8) State some simple usages with Javascript?

Some of the simple usages with Javascript are
1) A new pop up window can be made and changed according to the requirements such as no menus, scroll bars, etc.
2) Validation of input values submitted by the user through a web form.
3) Mouse over effects, scroll effects etc which can be changed by the scroll of the mouse pointer over a certain image, etc.

9) What is a JavaScript engine?
Java Script engine was first created by Netscape navigator. This engine interrupts the java script code and executes accordingly. The most common Java Script user interface is the web browser. Java script engine was created by Brendan.

10) Explain about the security functions presents in JavaScript?
As JavaScript uses Web as an interface it gives an ample scope for users to transfer malicious scripts. Most of the JavaScript related breaches and wrong doings are due to sandbox or same origin policy.

11) What are the precautions taken by the web browsers to contain malicious activity with Java Script?
Java script activities are restricted by web browsers in two ways they are.
1) First scripts run in sandbox which performs the most basic functions such as executing or running the code or script. This doesn't allow programming activities.
2) Scripts present in one site cannot have access to other sites; this is done with the help of same origin policy.

12) What are the rare cases when Java Script will not function?
These are the following cases when Java Script will not function.
1) An old browser which doesn't support DOM.
2) PDA or Mobile Phone will not execute Java Script.
3) Security reasons will not allow optimal performance of Jscript.
4) Speech browsers will not allow the functioning of Jscript.

13) Explain about Cross site scripting?

Cross site scripting raises security threats during execution and secured data transfer through web sites. It uses same origin policy. When a malicious script is made to run it discloses private information to the wrong person. This occurs because some one clicks on the request sent by the wrong doer.

14) Explain about arrays in Java Script?
Array maps everything from an integer to Values. Objects map everything from values to integers, Javascript specialize in certain special functions through which they can include integer indicies in their behavior. Large indicies can be removed if the length of the array specified is very small.

15) Explain about defining numbers in Java Script?

Java Script represents numbers in the form of IEEE-754 doubles. This form of representation provides accuracy upto 14-15 significant digits. They represent fractions but not the decimal numbers to an extent. To perform explicit numeric conversion you can use Number constructor.

16) Explain about strings in JavaScript?
Strings are represented as a sequence of characters in Javascript. Strings can be created when you place characters between double quotations or single quotations. Individual characters can be accessed by arrays.

17) Explain about the Boolean functions present in Javascript?

Three Boolean operators are present in Javascript they are
1) &&
2) II
3) /
All the operators are regarded as true unless the Javascript regards them as false. You can define these operators to make as statement false number 0 , null, undefined, or a string of length 0, etc. Boolean function performs these conversions explicitly. 

General Knowledge Quiz

Dear Viewers.........Answer the following questions.


1. Which Dutch painter cut off part of his ear?
2. In which country is the Great Barrier Reef?
3. What color is chlorophyll?
4. What is the capital of Thailand?
5. How many points are scored for a touchdown in American football?
6. Which soft green egg-shaped fruit comes from New Zealand?
7. Who was the youngest Beatle?
8. What language do the people of Brazil speak?
9. Who lives at number four, Privet Drive?
10. In which city is the cathedral of Notre Dame?
11. What color is the middle stripe of the French flag?
12. Who wrote a famous diary while hiding from the Nazis in Amsterdam?
13. Who directed, Jaws, Raiders of the Lost Ark, and ET?
14. Who was the leading actress in Sleepless in Seattle and You’ve Got Mail?
15. What is the family name of JFK?
16. How many players are there in a baseball team?
17. What is the national sport of Japan?
18. In which country was Buddha born?
19. What nationality was Picasso?
20. Whose nose grew longer every time he told a lie?
21. On what date did Osama Bin Laden's Al Queda organization attack America?
22. In which galaxy do we live?
23. In which year did the Titanic sink?
24. Who painted The Scream?
25. Who directed The Seven Samurai?
26. What is the smallest breed of dog?
27. Which French wine is released every year on the third Thursday of November?
28. What does Alice follow down a hole into Wonderland?
29. On what date do the people of England eat Christmas dinner?
30. Who sang Yellow Submarine?