Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability

Kerala State Board New Syllabus Plus Two Maths Chapter Wise Previous Questions and Answers Chapter 13 Probability.

Kerala Plus Two Maths Chapter Wise Previous Questions and Answers Chapter 13 Probability

Plus Two Maths Probability 3 Marks Important Questions

Question 1.
Suppose 10 cards numbered I to lo are placed in a box and shuffled and one card ¡s drawn at random.
(i) If A is the event that the number on the card is even, then write A.
(ii) If B is the event that the number on the card is more than 3, Find P(A/B). (May – 2010)
Answer:
A = {2,4,6,8,10}
B = {4, 5, 6, 7, 8, 9, 10}
A ∩ B = {4,6,8,10}
\(P(A / B)=\frac{P(A \cap B)}{P(B)}=\frac{\frac{4}{10}}{\frac{7}{10}}=\frac{4}{7}\)

Question 2.
\(P(A)=\frac{5}{12}, P(B)=\frac{7}{12}, P(A \cap B)=\frac{1}{4}\)
Find P(A/B) (March – 2010)
(ii) And B try independently to solve a problem.
The probability that A solves it 1/3 & that B is 3/5. Find the probability that the problem is solved.
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 1

Question 3.
(i) If X is a random variable whose possible values x1, x2, …………….., xn are occur with probabilities p1, p2, ……… pn respectively, then E(X) =……..
(ii) A husband and wife appears for an Interview for 2 posts. The probability of husband selection is 1/7 and that of wife is 1/5. What is the probability that one is selected? (May – 2011)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 2

Question 4.
Two balls are drawn at random with replacement from a box containing 10 black aid 8 red balls. Find the probability that
(a) Both the balls are red.
(b)One of them is black and the other is red. (May – 2014)
Answer:
(a) P (both all red) \(=\frac{8}{18} \times \frac{8}{18}=\frac{16}{81}\)
(b) P (one of them is black and other red) = P(First ball black, second red) or P (First red, second black) \(=\frac{10}{18} \times \frac{8}{18}+\frac{8}{18} \times \frac{10}{18}=\frac{20}{81}+\frac{20}{81}=\frac{40}{81}\)

Question 5.
(a) For two independent events A and B, which of the following pair of events need not be independent?
(i) A’, B’
(ii) A,B’
(iii) A’,B
(iv) A-B, B-A

(b) it P(A) = 0.6; P(B) = 0.7 and P(A U B) = 0.9 , then find P(A/B) and P(B/A) (March – 2015)
Answer:
(a) A – B, B – A
(b) P(A∩B) = P(A) + P(B) -P(A∪B)
= 0.6 + 0.7 – 0.9 = 0.4
\(P(A / B)=\frac{P(A \cap B)}{P(B)}=\frac{0.4}{0.7}=\frac{4}{7}\)

Plus Two Maths Probability 4 Marks Important Questions

Question 1.
The probability distribution of a random variable X is given below
(i) Find the value of k.
(ii) Find the mean and variance of the variable. (May – 2010)
Answer:
(i) We have sum of the probabilities ¡s 1.
k + 2k + 3k + 4k + 5k + 5k = 1 ⇒ k = 1/20
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 4

Question 2.
(i) An urn contains 8 white and 6 black balls. Two are drawn from the urn one after the other without replacement. What is the probability that both drawn balls arewhite?
(ii) Prove that Variance = E(X2) – [E(x)]2 (March – 2010)
Answer:
Describe the events as follows.
W1 : First ball is white.
W2 : Second ball is white.
\(P\left(W_{1}\right)=\frac{8}{14}\)
Since the event is executed without replacement. The white ball number will be 7 and total will be 13.
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 5

Question 3.
(i) For any two events A and B, write the expression for P(A/B).
(ii) In a bulb factory, machine A, B and C manufacture60%, 30% and 10% bulbs respectively. 1%, 2% and 3%-of the bulbs produced byA, B and C respectively are defective. A bulb is drawn at randomfror the totaL “ production and found to b defective. Find the probability that-this has been produced from machine A. (May – 2011)
Answer:
(i) \(P(A / B)=\frac{P(A \cap B)}{P(B)}\)
(ii) Describe the events as follows.
D: Getting a defective bulb.
A: Machine A. B: Machine B. C: Machine C.
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 6

Question 4.
(i) Two balls are drawn with replacement from a box containing lo black and 8 red balls. Find the probability that one of them is black and other is red.
(ii) Find the probability of getting 5 exactly twice in 7 throw of a die. (March – 2012)
Answer:
Describe the events as follows.
B1, B: first, second black.
R1, R2 : first, second red.
P(one black and other red) = P(B1 R2) + P(R1 B2)
= P(B1) P(R2/B1) + P(R1 ) P(B2/R1)
\(=\frac{10}{18} \times \frac{8}{18}+\frac{8}{18} \times \frac{10}{18}=\frac{40}{81}\)

(ii) Let X denotes the random variable of number of 5 in a throw of a die.
Clear X has a Binomial Distribution with n = 7
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 7

Question 5.
(i) Write the probability function of Binomial Distribution.
(ii) Five Defective bulbs are accidentally mixed with 20 good ones. It is not possible to just look at a bulb and tell whether or not it is defective. Find the probability distribution of the number of defective bulbs if 3 bulbs are drawn at random. (May – 2011)
Answer:
(i) P(X = x) = nCxqn-xpx
(ii) Let X denotes the random vanable of number of defective bulbs. Then X can take values 0, 1, 2, 3 D: Getting a defective bulb.
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 8
The required Probability Distribution is

X0123
P (X)64/12548/12512/1251/125

Question 6.
(i) Two balls are drawn with replacement from a box containing 10 black and 8 red balls. Find the probability that one of them is black and other ¡s red.
(ii) Find the probability of getting 5 exactly twice ¡n 7 throw of a die. (March – 2012)
Answer:
Describe the events as follows.
B1, B2: first,second black.
R1, R2: first, second red.
P(one black and other red) = P(B1R,)÷P(R1B2)
P(B1) P(R2/B1) + P(R1) P(B2/R1)
\(=\frac{10}{18} \times \frac{8}{18}+\frac{8}{18} \times \frac{10}{18}=\frac{40}{81}\)

(ii) Let X denotes the random variable of number of 5 in athrowofa die.
Clearly X has a Binomial Distribution with n = 7
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 9

Question 7.
(i) A die is tossed thrice. Find the probability of getting an odd number at least once.
(ii)Bag I contains 3 red and 4 black balls while another Bag Il contains 5 red and 6 black balls. One ball is drawn at random from one of the Bag it is found to be red. Find the probability that it was drawn from Bag II. (March – 2012)
Answer:
(i) P(getting an odd number)
= 1 – P(an even number I all three tosses)
\(=1-\frac{1}{2} \times \frac{1}{2} \times \frac{1}{2}=\frac{7}{8}\)

(ii) Describe the events as follows.
A: getting a red ball
E1: Bagl. E2:Bagll.
P(E1) = P(E) = 1/2
P(A/E1) P (a red ball from Bag I) = 3/7
P(A/E2) P (a red ball from Bag II) = 5/11
P (a ball from Bag li, being given that it is red)
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 10

Question 8.
(i) If A and B are independent events, prove that \(\bar{A}\) and \(\bar{B}\) are independent
(ii) A box contains 30 defective bulbs and 30 non-defective bulbs. Two bulbs are drawn at random. The event A and B are defined as follows. A: first bulb is defective.’ B: ‘the second bulb is non-defective.’
Find probability of A and B. Prove that A and B are independent events. (May – 2012)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 11
Hence \(\bar{A}\) and \(\bar{B}\) are independent.

(ii) Given, A:’first bulb is defective.’
B: the second bulb is non-defective.’
Let D: Defective bulb, \(\bar{D}\): Non-defective bulb. Since the experiment is drawing 2btbs. The sample space will be \(S=\{D D, D \bar{D}, \bar{D} D, \overline{D D}\}\)
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 12
Hence independent events.

Question 9.
In a factory which manufactures bulbs, machine X,Y and Z manufactures respectively 25%, 35% and 40% of the bulbs. Of the outputs 1%, 2% and 3% are respectively defective bulbs. A bulb is drawn at random and found to be defective. What ¡s the probability that it is manufactured by machine Y? (May – 2012)
Answer:
Describe the events as follows.
D: Getting a defective bulb.
X: Machine X. Y: Machine Y. Z: Machine Z.
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 13

Question 10.
A and B try to solve a problem independently. Find probability that A solves the problem is and that of B solves the problem is. Find the probability that
(i) Both of them solve the problem.
(ii) The problem is solved. (March – 2013)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 14

Question 11.
If A and B are two independent events, then
(i) Prove that A and B’ are independent events.
(ii) Show that the probability of occurrence of at least one of A and B is I – P(A’)P (B’) (March – 2013)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 15
Hence A and B’ are independent events.

Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 16

Question 12.
There are two identical boxes. Box I contains 5 red and 4 black balls, while Box II contains 3 red and 3 black balls. A person choose a box at random and takes out a ball.
(a) Find the probability that the ball drawn is red.
(b) If the ball drawn is black, what is the probability that it ¡s drawn from Box II. (May – 2014)
Answer:
(a) Let E1 be the event selecting box I and E2 be the event selecting box II.
\(P=\left(E_{1}\right)=1 / 2, P=\left(E_{2}\right)=1 / 2\)
Let A be the event selecting of a red ball then
\(P\left(A / E_{1}\right)=\frac{1}{2} \times \frac{5}{9}=\frac{5}{18}\)
\(P\left(A / E_{2}\right)=\frac{1}{2} \times \frac{3}{6}=\frac{3}{12}\)
P (taking a red ball) = \(\frac{5}{18}+\frac{3}{12}=\frac{19}{36}\)

b) Let B be the event selecting a black ball
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 17

Question 13.
(a) If P(A) = O.8,P(B) = O.5,P(B/A) = 0.4 then find P(AUB)
(b) If a fair coin is tossed 10 times, then find the probability of getting exactly 6 heads. (May – 2015)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 18
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 19

Question 14.
(a) If P(A) = 0.3, P(B) =0.4, then the value of where A and B are independent events
(i) 0.48
(ii) 0.51
(iii) 0.52
(iv) 0.58

(b) A card from a pack 0152 cards is lost. From the remaining cards of the packet, two cards are drawn and found to be diamonds. Find the probability of the lost card being a diamond. (March – 2016)
Answer:
(a) (iv) 0.58
(b) E1: lost card is a diamond.
E2: lost card is not a diamond.
A: Select 2 diamonds from the remaining cards.
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 20

Question 15.
(a) A pair of dice is thrown 4 times. If getting a doublet is considered as a success.
(b) Find the probability of getting a doublet.
(c) Hence find the probability of getting two success. (March – 2016)
Answer:
(a) Probability of getting a doublet = 1/6
(b) Let X denotes the random variable of number of doublet in 4 throws of a die.
Clearly X has a Binomial Distribution with n = 4
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 21

Plus Two Maths Probability 6 Marks Important Questions

Question 1.
(i) State and prove the theorem of total probability.
(ii) If a fair coin is tossed 10 times, what is the probability that the outcome is exactly 6 heads? (May – 2010)
Answer:
Theorem:
Let {E1,E2,….,En}be a partition of the sample space S, and suppose that each of the events E1, E2,….,En as nonzero probability of occurrence. Let A be any event associated with S, then
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 22

By multiplication rule of probability we have;
\(P(A)=P\left(E_{1}\right) P\left(A / E_{1}\right)+P\left(E_{2}\right) P\left(A / E_{2}\right)+\ldots . .+P\left(E_{n}\right) P\left(A / E_{n}\right)\)

(ii) Let X denotes the random variable of number of heads in an experiment of 10 trials. Clearly X has a Binomial Distribution with n = 10
Here n = 10, p = 1/2, q = 1 – p = 1/2
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 23

Question 2.
(i) 3 Coin are tossed and X be the number of heads turning up. Write probability distribution of X.
(ii) There are 5% defective items in a large bulk of items. What is the probability that a sample of 10 items will include not more than one defective item? (March – 2010)
Answer:
(1) S = { HHH , HHT ,HTH, THH, HTT , THT , HTH , TTT)
Let X denotes the random variable of getting a Head. Then X can take values 0,1 ,2,3.
P(X = 0) = P(no Heads)
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 24
The required Probability Distribution is

X0123
P(X)1/83/83/81/8

(ii) Let X denotes the random variable of number of defective items.
Clearly X has a Binomial Distribution with n = 10
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 25

Question 3.
A class 15 students whose ages are 14, 17, 15, 14, 21, 17, 19, 20, 16, 18, 20, 17, 16, 19 and20 years. One student uis selected sucthat each has the same chance of being selected; the age X of the selected student is recorded.
(i) Write the probability Distribution of X.
(ii) Find E(X).
(iii) Find Var(X). (March – 2011)
Answer:
(i) Let X denotes the random vanable age of students.
Then X can take values 14, 15, 16, 17, 18, 19, 20, 21.

X1415161718192021
P(X)2/151/152/153/151/152/153/151/15

Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 26
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 27.

Question 4.
(i) An unbiased die is thrown twice. Let A be event ‘odd number on the first throw’ and B be the event ‘odd number on the second throw’. Check the independence of A and B.
(ii) If P(A) = O.8,P(B) = O.5,P(B/A) = 0.4,
Find
(a) P(A∩B)
(b) P(A/B)
(c) P(A∪B) (March – 2011)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 28

Question 5.
(i) A and B are two events such that P(A) = 0.8,P(B) = 0.5 and P(B/A) = 0.4, then find P(A/B)
(ii) Find the mean and variance of the number obtained on a throw of an unbiased die. (March – 2014)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 29

Question 6.
(i) Two events E and F are such that
P(E) = 0.6, P(F) = 0.2 and P(E∪F) O.68. Are E and F independent?
(ii) A die is thrown 6 times. If getting an odd number is a success, what is the probability of getting
(a) 5 successes?
(b) At least 5 successes?
(c) At most 5 successes? (March – 2014; May – 2016)
Answer:
(i) P(E∪F) = P(E) + P(F) – P(E∩F)
= 0.68 = 0.6 + 0.2 – P(E∩F)
= P(E∩F)=O.12
P(E) x P(F)= 0.2 x 0.6 = 0.12 = P(E∩F)
Hence E and F are independent events.

(ii) (a) Let X denotes the random variable of number of odd number in the throw of a die 6 times. Clearly X has a Binomial Distribution with n = 6 and \(p=\frac{3}{6}=\frac{1}{2}\)
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 31

Question 7.
The probability distribution of a random variable X is as given below.

X12345
P(X)1/21/41/81/16P

(a) Find the value of p.
(b) Find the mean of X.
(c) Find the variance of X. (March – 2015)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 13 Probability 32

Question 8.
(a) A die is thrown thrice. Find the probability of getting an odd number at least once.
(b) Two cards are drawn successively with replacement from a pack of 52 cards. Find the probability distribution of the number of aces. (May – 2015)
Answer:
Let X denote the number of odds, X = 0, 1, 2, 3
The experiment follows Binomial distribution
\(n=3, p=\frac{1}{2}, q=\frac{1}{2}\)
The required probability = 1 – P(X = O)
\(=1-{ }^{3} C_{0}\left(\frac{1}{2}\right)^{3}\left(\frac{1}{2}\right)^{0}=1-\frac{1}{8}=\frac{7}{8}\)

(b) P(Two cards are aces with replacement) = \(\frac{4 \times 4}{52 \times 52}=\frac{1}{169}\)
We know there are 4 aces in a deck of 52 cards.
Let X denote the number of aces. Then X can take values 0,1,2.
P(X0) = P(no ace and no ace)
= P(no ace) x P(no ace)
\(=\frac{48}{52} \times \frac{48}{52}=\frac{144}{169}\)
P(X=1)= P(ace and no ace or no ace and ace)
= P(ace and no ace ) + P(no ace and ace)
\(=\frac{4}{52} \times \frac{48}{52}+\frac{48}{52} \times \frac{4}{52}=\frac{24}{169}\)
P(X =2) = P(ace & ace) = P(ace) x P(ace)
\(=\frac{4}{52} \times \frac{4}{52}=\frac{1}{169}\)
Therefore the distribution is as follows.

X012
P(X)144/16924/1691/169

Plus Two Computer Application Chapter Wise Previous Questions Chapter 11 Trends and Issues in ICT

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 11 Trends and Issues in ICT.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 11 Trends and Issues in ICT

Plus Two Computer Application Trends and Issues in ICT 1 Mark Important Questions

Question 1.
_____ is a Linux based mobile operating system from Google. (MARCH-2016)
a) ios
b) Blackberry
c) Android
d) windows Phone
Answer:
Android

Question 2.
_________ is a packet-oriented mobile data service on GSM. (MARCH-2016)
Answer:
GPRS

Question 3.
In ______ system, several transmitters can send information simultaneously over a single communication channel. (MAY-2016)
Answer:
Decision Support System

Question 4.
SIM stands for ______ (MAY-2016)
a) Subscriber Information Module
b) Subscriber Identify Module
c) Subscriber Identify Machine
d) Subscriber Information Memory
Answer:
b) Subscriber Identify Module

Question 5.
A 4G mobile network uses ______ (MARCH-2017)
a) CDMA
b) WCDMA
c) OFDMA
d) None of these
Answer:
c) OFDMA

Question 6.
_______ is the popular mobile OS developed by Google based on Linux Kernel. (MAY-2017)
a) Android
b) iOS
c) Blackberry
d) go
Answer:
a) Android

Question 7.
Pick the odd one out: (MAY-2017)
a) Kitkat
b) Jelly Bean
c) Icecream Sandwich
d) iOS
Answer:
d) iOS

Plus Two Computer Application Trends and Issues in ICT 2 Marks Important Questions

Question 1.
Raju sends a short text message to his friend. Explain how the text message is exchanged. (MARCH-2016)
Answer:
SMS is used for sending short messages SMSC provides a store and forward mechanism. If the recipient is not available SMSC waits and retrieves. It uses the SS7 protocol.

Question 2.
GPS is very useful for tracking vehicles by transport companies. How is it possible? (MAY-2016)
Answer:
Global Positioning System(GPS): It is a space-based satellite navigation system that provides location and time information in all weather conditions, anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites. The system provides critical capabilities to military, civil, and commercial users around the world. It is maintained by the United States government and is freely accessible to anyone with a GPS receiver. GPS was created and realized by the U.S. Department of Defense (DoD) and was originally run with 24 satellites. It is used for vehicle navigation, aircraft navigation, ship navigation, oil exploration, Fishing, etc. GPS receivers are now integrated with mobile phones.

Question 3.
Write a short note on the Android operating system. (MARCH-2017)
Answer:
IP Android OS: It is a Linux-based OS for Touch screen devices such as smartphones and tablets. lt was developed by Android Inc. founded in Palo Alto, California in 2003 by Andy Rubin and his friends. In 2005, Google acquired this. A team led by Rubin developed a mobile device platform powered by the Linux Kernel. The interface of Android OS is based on touch inputs like swiping,-tapping, pinching in, and out to manipulate on-screen objects. From 2007 onwards this OS is used in many mobile phones and tablets

Plus Two Computer Application Trends and Issues in ICT 3 Marks Important Questions

Question 1.
What is Industrial Property Right? Write a short note on any two Industrial property Rights. (MARCH-2016)
Answer:
Intellectual Property Right: Some people spend lots of money, time body, and mental power to create some products such as a classical movie, album, artistic work, discoveries, invention, software, etc. These types of Intellectual properties must be protected from unauthorized access by law. This is called Intellectual Property right(IPR). Paris convention held in 1883 protects Industrial Property Berne Convention held in 1886 protects Literary and Artistic work.

World Intellectual Property Organisation(WIPO) in 1960, Guided by the United Nations(UN) ensures/protects the rights of creators or owners and rewarded for their creation.
A person or an organization can register their Intellectual property such as creations, trademarks, designs, etc.

Intellectual property is divided into two categories

  1. Industrial Property
  2. Copyright

1. Industrial property: It ensures the protection of industrial inventions, designs, Agricultural products etc from unauthorized copying or creation or use. In India, this is done by the Controller of Patents Designs and Trademarks.

  • Patents: A person or organization that invented a product or creation can be protected from unauthorized copying or creation without the permission of the creator by law. This right is called Patent. In India, the validity of the right is up to 20 years. After this, anybody can use it freely.
  • Trademark: This is a unique, simple, and memorable sign to promote a brand and hence increase the business and goodwill of a company. It must be registered. The period of registration is for 10 years and can be renewed. The registered trademark under Controller General of Patents Design and Trademarks cannot use or copy by anybody else.
  • Industrial designs: A product or article is designed so beautifully to attract customers. This type of design is called industrial design. This is a prototype and used as a model for large scale production.
  • Geographical indications: Some products are well known by the place of their origin. Kozhikode Halwa, Marayoor Sharkkara (Jaggery), Thirupathi Ladoo, etc are examples.

2. Copyright: The trademark is ©, copyright is the property right that arises automatically when a person creates new work on his own, and by Law, it prevents the others from the unauthorized or intentional copying of this without the permission of the creator for 60 years after the death of the author.

AttributesPatentTrademarkCopyright
ItemsProduct, processName, logo, signsCreativity, artistic
Registration requiredYesYesNo (automatic)
Duration20 years10 yearsUpto 60 years after the death of the author
RenewableNoYesNA

Question 2.
What is Cyber Crime? Write a short note on any two cyber crimes against individuals. (MAY-2016)
Answer:
Just like normal crimes(theft, trespassing private area, destroy, etc,) Cybercrimes(Virus, Trojan Horse, Phishing, Denial of Service, Pornography, etc) also increased significantly. Due to cybercrime, the victims lose money, reputation, etc and some of them commit suicide.

Cybercrimes against individuals

i) Identity theft: The various information such as personal details(name, Date of Birth, Address, Phone number, etc.), Credit / Debit Card details(Card number, PIN, Expiry Date, CW, etc), Bank details, etc. are the identity of a person. Stealing this information by acting as the authorized person without the permission of a person is called Identity theft. The misuse of this information is a punishable offense.

ii) Harassment: Commenting badly about a particular person’s gender, color, race, religion, nationality, in Social Media is considered harassment. This is done with the help of the Internet is called Cyberstalking (Nuisance). This is a kind of torturing and it may lead to spoiling friendship, career, self-image, and confidence. Sometimes may lead to a big tragedy of a whole family or a group of persons.

iii) Impersonation and cheating: Fake accounts are created in Social media and act as the original one for the purpose of cheating or misleading others. Eg: Fake accounts in Social Medias (Facebook, Twitter, etc), fake SMS, fake emails, etc.

iv) Violation of privacy: Trespassing into another person’s life and try to spoil life. It is a punishable offense. A hidden camera is used to capture the video or picture and blackmailing them.

v) Dissemination of obscene material: With the help of hidden camera capture unwanted video or picture. Distribute or publish these obscene clips on the Internet without the consent of the victims may mislead people specifically the younger ones.

Question 3.
What is copyright? How does it differ from patent? (MARCH-2017)
Answer:
Copyright: The trademark is ©, copyright is the property right that arises automatically when a person creates a new work by his own, and by Law, it prevents the others from the unauthorized or intentional copying of this without the permission of the creator for 60 years after the death of the author. Patents: A person or organization that invented a product or a creation can be protected from unauthorized copying or creation without the permission of the creator by law. This right is called Patent. In India, the validity of the right is up to 20 years. After this, anybody can use it freely.

Question 4.
Differentiate GPS and EDGE. (MAY-2017)
Answer:
Global Positioning System(GPS): It is a space-based satellite navigation system that provides lo¬cation and time information in all weather conditions, anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites. It is used for vehicle navigation, aircraft navigation, ship navigation, oil exploration, Fishing, etc. GPS receivers are now integrated with mobile phones.
EDGE(Enhanced Data rates for GSM Evolution): It is three times faster than GPRS. It is used for voice communication as well as an internet connection.

Question 5.
Write a short note on IPR infringement (MAY-2017)
Answer:
Infringement (Violation): Unauthorized copying or use of Intellectual property rights such as Patents, Copyrights, and Trademarks are called intellectual property Infringement(violation). It is a punishable offense.

  • Patent Infringement: It prevents others from the unauthorized or intentional copying or use of Patent without the permission of the creator.
  • Piracy: It is the unauthorized copying, distribution, and use of a creation without the permission of the creator. It is against the copyright act and hence the person committed deserves the punishment.
  • Trademark Infringement: It prevents others from the unauthorized or intentional copying or use of Trademark without the permission of the creator.
  • Copy right Infringement: It prevents others from the unauthorized or intentional copying or use of Copy right without the permission of the creator.

Plus Two Computer Application Chapter Wise Previous Questions Chapter 10 Enterprise Resource Planning

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 10 Enterprise Resource Planning.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 10 Enterprise Resource Planning

Plus Two Computer Application Enterprise Resource Planning 1 Mark Important Questions

Question 1.
_______ is an open-source ERP software. (MARCH-2016)
a) SAP
b) Tally ERP
c) Oracle
d) Odoo
Answer:
d) Odoo

Question 2.
DSS stands for (MAY-2016)
a) Digital Signal System
b) Design Support System
c) Decision Support System
d) Database Support System
Answer:
c) Decision Support System

Question 3.
SAP stands for (MAY-2017)
Answer:
System Applications and products for data processing.

Plus Two Computer Application Enterprise Resource Planning 3 Marks Important Questions

Question 1.
Briefly explain any two ERP related technology. (MARCH-2016)
Answer:
Product Life Cycle Management (PLM): It manages the entire life cycle of a product. PLM consists of programs to increase the quality and reduce the price by the efficient use of resources.
2) Customer Relationship Management (CRM): As we know the customer is the king of the market. The existence of a company mainly the customers. CRM consists of programs to enhance the customer’s relationship with the company.

Question 2.
Explain the benefits of the ERP system. (MAY-2016)
Answer:
1) Improved resource utilization: Resources such as Men, Money, Material and Machine are utilized maximum hence increase productivity and profit.
2) Better customer satisfaction: Without spending more money and time all the customer’s needs are considered well. Because the customer is the king of the market. Nowadays a customer can track the status of an order by using the docket number through the Internet.
3) Provides accurate information: Right information at the right time will help the company to plan and manage the future cunningly. A company can increase or reduce production based upon the right information hence increase productivity and profit.
4) Decision-making capability: Right information at the right time will help the company to make a good decision.
5) Increased flexibility: A good ERP will help the company to adopt good things as well as avoid bad things rapidly. It denotes flexibility.
6) Information integrity: A good ERP integrates various departments into a single unit. Hence
reduce redundancy, inconsistency, etc.

Question 3.
List the benefits of ERP implementation in an Enterprise. (MAY-2017)
Answer:
Benefits of ERP system
1. Improved resource utilization: Resources such as Men, Money, Material, and Machine are utilized maximum hence increase productivity and profit.
2. Better customer satisfaction: Without spending more money and time all the customer’s needs are considered well. Because the customer is the king of the market. Nowadays a customer can track the status of an order by using the docket number through the Internet.
3. Provides accurate information: Right information at the right time will help the company to plan and manage future cunningly. A company can increase or reduce production based upon the right information hence increase productivity and Profit.
4. Decision-making capability: Right information at the right time will help the company to take a good decision.
5. Increased flexibility: A good ERP will help the company to adopt good things as well as avoid bad things rapidly. It denotes flexibility.
6. Information integrity: A good ERP integrates various departments into a single unit. Hence reduce the redundancy, inconsistency, etc.

Plus Two Computer Application Enterprise Resource Planning 5 Marks Important Questions

Question 1.
Explain the importance of BPR in ERP implementation. (MARCH-2017)
Answer:
ERP and BPR will not make much change if they are stand-alone. To improve the efficiency of an enterprise integrate both ERP and BPR because they are the two sides of a coin. For better results conducting BPR before implementing ERP, will help an enterprise to avoid unnecessary modules from the software.
The different phases of ERP implementation are given below

  • Pre-evaluation screening: Many ERP packages are available in the markets. At most care should be taken before implementing an ERP. Select a few from the available ERP packages.
  • Package selection: Selection of the right ERP to our enterprise is a laborious task and it needs a huge investment. Various factors should be kept in mind before you purchase an ERP that should meet our complete needs.
  • Project planning: Good planning is essential to implement an ERP. From the beginning to the end activities are depicted in this phase.
  • Gap analysis: A cent percent(100%) problem-solving ERP is not available in the market. Most of them solve a maximum of 70% to 80% problems. The rest (30% to 20%) of the problems and their solutions are mentioned here.
  • Business Process Re-engineering: In general BPR is the series of activities such as rethinking and redesign of the business process to enhance the enterprise’s performance such as reducing the cost (expenses), improve the quality, prompt, and speed(time-bound) service.
    BPR enhances the productivity and profit of an enterprise
  • Installation and configuration: In this phase, the new system is installing, before implementing the whole system a miniature of the actual system is going to be implemented as a test dose. Then check the reactions if it is good it is the time to install the whole system completely.
  • Implementation team training: In this phase, the company trains its employees to implement and run the system.
  • Testing: This phase is very important. It determines whether the system produces proper results. Errors in design and logic are identified.
  • Going live: Here a change over is taken place to the new system from the old system. It is not an easy process without the support and service from the ERP vendors.
  • End-user training: This phase will start familiarising the users with the procedures to be used in the new system. It is very important.
  • Post-implementation: Once the system is implemented maintenance and review begin. In this phase repairing or correct previously ill-defined problems and upgrade or adjust the performance according to the company needs.

Question 2.
Selection of ERP package is very crucial in the implementation of ERP system. Give a short note on any four popular ERP packages. (MARCH-2017)
Answer:
Popular ERP packages are given below
A) Oracle: American based company famous in the database (Oracle 9i-SQL) packages situated in Redwood Shores, California.
ERP packages are a solution for finance and accounting problems. Their other products are
1) Customer Relationship Management (CRM)
2) Supply Chain Management (SCM)Software

B) SAP: SAP stands for Systems, Applications, and Products for data processing.
It is a German MNC in Walldorf and founded in 1972.
Earlier they developed ERP packages for large MNC. But nowadays they developed for small scale industries also.
The other software products they developed are

  • Customer Relationship Management (CRM)
  • Supply Chain Management (SCM)
  • Product Life cycle Management (PLM)

C) Odoo: Formerly known as Open ERP.
It is an open-source code ERP. Unlike other companies, their source code is available and can be modified as and when the need arises.

D) Microsoft Dynamics
American MNC in Redmond, Washington
ERP for midsized companies.
This ERP is more user friendly
Another s/w is Customer Relationship Management(CRM)

E) Tally ERP
Indian company situated in Bangalore.
This ERP provides a total solution for accounting, inventory, and Payroll.

Plus Two Computer Application Chapter Wise Previous Questions Chapter 9 Structured Query Language

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 9 Structured Query Language.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 9 Structured Query Language

Plus Two Computer Application Structured Query Language 1 Mark Important Questions

Question 1.
______ keyword is used in the SELECT query to eliminate duplicate values in a column. (MARCH-2016)
UNIQUE
b) DISTINCT
NOT NULL
d) PRIMARY
Answer:
DISTINCT

Question 2.
______ clause of SELECT query is used to apply conditions to form groups of records. (MAY-2016)
a) orderby
(b) groupby
(c) having
(d) where
Answer:
(b) groupby

Question 3.
_______ command in SQL is used to display the structure of a table.(MAY-2017)
a) LIST
b) STRUCT
c) DESCRIBE
d) SHOW
Answer:
c) DESCRIBE

Plus Two Computer Application Structured Query Language 2 Marks Important Questions

Question 1.
How will you add a new column to an existing table using SQL statement ? (MARCH-2016)
Answer:
Alter command with add keyword is used to add a new column to an existing table. Avertable <table name> add <column name> <datatype> [<size>] [<constraint>][FIRST/AFTER<column name>];
Eg : Avertable ACCOUNTS add Type varchar(10) AFTER Name;

Question 2.
What is a view? How can we create a view using SQL statement? (MAY-2016)
Answer:
A view is a virtual table. That does not really exists but is derived from one or more tables. It is used to view a small part of the entire database.
Create view command is used to create a view. Syntax eg:- create view <view name> as select * from <table name> [Where <condition>];
eg:- create view studentView as select from student;

Question 3.
Explain primary key constraint with an example. (MAY-2017)
Answer:
Primary Key: A primary key is one of the Candidate Keys. It is a set of one or more attributes that can uniquely identify tuples in a relation. Rollno, AdmNo, EmpCode etc are examples of primary key.

Plus Two Computer Application Structured Query Language 3 Marks Important Questions

Question 1.
Answer the following questions. (MARCH-2016)

Acc. No.NameBranchAmount
1001AnilTrivandrum30000
1002SanjayErnakulam130000
1003MeeraKottayam275000
1004SnehaKottayam50000
1005RajanThrissur75000

a) Write SQL statements to do the following :
i) Display all the details of accounts with an amount greater than 50000 in the Ernakulam branch.
ii) Display Acc. No., Branch and Amount in the descending order of amount.
iii) Display the number of accounts in each branch.
Answer:
i) Select * from ACCOUNTS where Amount>50000 and Branch = “Ernakulam”
ii) Select Acc.No, Branch, Amount from ACCOUNTS order by Amount desc;
iii) Select Branch, count (*) from ACCOUNTS group by branch.

b) write SQL statements to do the following
i) Add a new record to the table.
ii) Update the amount of Sanjay to 100000.
iii) Delete the details of Anil.
Answer:
i) Insert into ACCOUNTS values (1006, ‘Alvis’, ‘Thrissur’, 50000);
ii) Update ACCOUNTS set Amount = 100000 where Name = ‘Sanjay’;
iii) Delete from ACCOUNTS where Name = ‘Anil’;

Question 2.
a) Explain SQL statements used to insert and delete data from a table. (MAY-2016)
b) Explain any two DDL commands
Answer:
a) Insert command is used to insert new records into a table,. The keyword used with insert is into
Syntax: Insert into <table name>[column1, Column2,………, column N] values [value1,Value 2,……… value N];
eg:- Insert into student (Regno, name) Values(101,‘Jose’);

b) delete This command is used to delete one or all records from a table
Syntax: delete from <table name> [where con-dition];
eg:- delete from the student; -This command deletes all records.

b) DDL Commands

1) Create table: This command is used to create a table.
Syntax: create table <table name>
(column name> <data type>[<constraint>]
[, column name> <data type>,]……… );
eg:- create table student (Rno int primary key, name varchar(20));

2) Alter table: This command is used to change the structure or add a new column to an existing table.
Modify, Add are the keywords used.
Syntax: Alter table <table name> modify column name><data type>
[<size>] [constraint];
eg:- Alter table student modify name varchar (30);
Syntax: Alter table <table name>
Add <new column name> <data type>
[<size>] [constraint>] [first j After <column-name>];
eg:- Alter table student add grade varchar (2);

3) Drop table: This command is used to delete the structure of the table.
Syntax: Drop table <table name>;
eg:- Drop table student;

Question 3.
Write SQL for (MAY-2017)
a) Create a table student with the data [nafne_char(20), rollno number(3),marks number(3)].
b) List name and rollno of all students
c) List name and rollno of students having marks>600.
Answer:
a) create table student(name varchar(20) primary key.rollno int,marks int);
b) select name.rollno from student;
c) select name.rollno from student where marks>600;

Question 4.
An employee table contains name, empno, basicpay, desig. (MAY-2017)
Write SQL for
a) Display name, empno and basicpay of all managers,(desig=”manager”)
b) Display empno and salary of all employees
(salary=basicpay + da)
(da=basicpay  *  1.15)
c) Display name and empno of all the employees whose basicpay<10000.
Answer:
a) select name,empno,basicpay from employee where design=”manager”;
b) select empno,basicpay + basicpay * 1.15 from employee;
c) select name,empno from employee where basicpay< 10000;

Plus Two Computer Application Structured Query Language  5 Marks Important Questions

Question 1.
The structure of the table ‘EMPLOYEE’ is given below. (MARCH-2017)
Plus Two Computer Application Chapter Wise Previous Questions Chapter 9 Structured Query Language 1
Write a SQL statement for the following
a) Insert a record into the table.
b) Update DA with 60% basic pay
c) Display the details of employees whose basic pay is greater than 20000.
d) Rename the table EMPLOYEE to EMPDETAILS
Answer:
INSERT INTO EMPLOYEE VALUES
(101,’Alvis’,25000,NULL,NULL);
b) UPDATE EMPLOYEE SET DA= Basicpay * 6;
c) SELECT * FROM EMPLOYEE WHERE Basicpay > 20000;
d) ALTER TABLE EMPLOYEE RENAME TO EMPDETAILS;

Plus Two Computer Application Chapter Wise Previous Questions Chapter 8 Database Management System

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 8 Database Management System.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 8 Database Management System

Plus Two Computer Application Database Management System 1 Mark Important Questions

Question 1.
_____ level describes only a part of a database (MARCH-2016)
a) View
b) Physical
c) Logical
d) high
Answer:
a) View

Question 2.
The number of attributes in a relation is called _____ (MAY-2016)
a) tuple
b) degree
c) cardinality
d) domain
Answer:
b) degree

Question 3.
_______ is the symbol used for select operation in relational algebra. (MAY-2017)
a) σ
b) π
c) ∩
d) ∪
Answer:
a) σ

Plus Two Computer Application Database Management System 2 Marks Important Questions

Question 1.
Is it possible to combine SELECT and of relational algebra into a single statement? Explain with an example. (MARCH-2017)
Answer:
Yes. It is possible to combine SELECT and PROJECT operations of relational algebra into a single statement.
πnamedesignation = “Manager”(EMPLOYEE))
The above query means select the names of employee whose designation is Manager from the table EMPLOYEE.

Plus Two Computer Application Database Management System 3 Marks Important Questions

Question 1.
Explain different level of data abstraction in DBMS. (MARCH-2017)
Answer:
Sip Levels of Database Abstraction
1) Physical Level (Lowest Level-how) – It describes how the data is actually stored in the storage medium.
2) Logical Level (Next Higher Level-what) – It describes what data are stored in the database.
3) View Level (Highest level-way) – It is closest to the users. It is concerned with the way in which the individual users view the data.

Plus Two Computer Application Database Management System 5 Marks Important Questions

Question 1.
What is relational algebra? Explain any three relational algebra operations. (MARCH-2016)
Answer:
Relational Algebra: It consists of a set of operations that takes one or two relations as input and produces a new relation as a result.
A) SELECT operation
SELECT operation is used to select tuples in a relation that satisfy a selection condition. Greek letter σ (sigma) is used to denote the operation. Syntax,
σcondition (relation)
eg: – σsalary<10000 (EMPLOYEE)-selects tuple whose salary is less than 10000 from EMPLOYEE relation.

B) PROJECT operation
PROJECT operation selects certain columns from the table and discards the other columns. Greek letter π(pi) is used to denote PROJECT operation.
Syntax, πcondition (relation)
eg:- πname,salary (EMPLOYEE) displays only the name and salary of all employees

C) UNION operation
This operation returns a relation consisting of all tuples appearing in either or both of the two specified relations. It is denoted by U. duplicate tuples are eliminated. Union operation can take place between compatible relations only, i.e., the number and type of attributes in both the relations should be the same and also their order.
e.g:-SCIENCE U COMMERCE gives all the tuples in both COMMERCE and SCIENCE.

D) INTERSECTION operation
This operation returns a relation consisting of all the tuples appearing in both of the specified relations. It is denoted by n. It can takes place only on compatible relations,
e.g:- FOOTBALL ∩ CRICKET returns the players who are in both football and cricket teams.

Question 2.
Explain the components of DBMS. (MAY-2016)
Answer:
Components of DBMS are given below.
1) Hardware :- It includes computers such as pc, workstations, Server Computer and super computer, storage devices such as hard disk, network devices such as hubs, switches, routers and other supporting devices used for storage and retrieval.

2) Software:- Collection of programs (DBMS) used to define the structure of a table (DDL), used to add, retrieve, modify and delete records in database (DML), and used to maintain the security to the data (DCL).

3) Data:- It is the main Component for effective storage and retrieval of information data is categorised as fields, records and files.
Fields :- smallest unit of stored data, eg :- Regno, name, batch etc Record:-Collection of related fields eg :-101, Jose, Science
File:- collection of related records
eg :-101, Jose, Science
102, Raju, Commerce
103, Alvis, Humanities etc.

4) Users :- Those who uses the ata
eg :- Data Base Administrator (DBA), Application Programmes, Sophisticated users and end users.

5) Procedures:- These are the steps to follow while using a database.
1) Start and stop the DBMS
2) Log on the DBMS
3) Take backups in regular intervals.

Question 3.
Explain advantages of DBMS over conventional file system. (MAY-2017)
Answer:
Advantages of DBMS
1) Data Redundancy – It means duplication of data. DBMS eliminates redundancy. DBMS does not store more than one copy of the same data.
2) Inconsistency can be avoided – If redundancy occurs there is a chance to inconsistency. If redundancy is removed, then inconsistency cannot occur.
3) Data can be shared – The data stored in the database can be shared by the users or programs.
4) Standards can be enforced – The data in the database follows some standards.
Eg : a field ‘Name’ should have 40 characters long. Some standards are ANSI, ISO, etc.
5) Security restrictions can be applied – The data is of great value so it must be kept secure and private. Data security means the protection of data against accidental or intentional disclosure or unauthorized destruction or modification by unauthorized person.
6) Integrity can be maintained – It ensures that the data is to be entered in the database is correct.
7) Efficient data access – It stored a huge amount of data efficiently and can be retrieved whenever a need arise.
8) Crash recovery – Sometimes all or a portion of the data is lost when a system crashes. A good DBMS helps to recover data after the system crashed.

Plus Two Computer Application Chapter Wise Previous Questions Chapter 7 Web Hosting

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 7 Web Hosting.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 7 Web Hosting

Plus Two Computer Application Web Hosting 1 Mark Important Questions

Question 1.
Identify the odd : (MARCH-2016)
Answer:
a) Word Press
b) FileZilla
c) Joomal
d) Drupal

Question 2.
______ provides an easy way to design and manage attractive websites. (MAY-2016)
a) free hosting
b) CMS
c) WHOIS
d) FTP
Answer:
b)CMS

Plus Two Computer Application Web Hosting 2 Marks Important Questions

Question 1.
What type of homing package is suitable for a multinational online shopping site? Mention any two advantages of the package. (MARCH-2016)
Answer:
Dedicated hosting
a) Dedicated Hosting
b) A web server and its resources are exclusively for one website that has a large volume of traffic means a large volume of requests by visitors. Some Govt, departments or large organizations require uninterrupted services for that round the clock power supply is needed. It is too expensive but it is more reliable and provides good service to the public.
Eg : It is similar to living in an Our own house. All the resources in your house are only for you. No one else’s account resides on the computer and would not be capable of tapping into your resources.

Question 2.
What is SFTP? (MAY-2016)
Answer:
FTP (File Transfer Protocol) client software
When a client requests a website by entering the website address. Then FTP client software helps to establish a connection between the client computer and the remote server computer. Unauthorised access is denied by using user name and password hence secure our website files for that SSH(Secure Shell) FTP simply SFTP is used. Instead of http://, it uses ftp://.
By using FTP client s/w we’ can transfer(upload) the files from our computer to the web server by using the ‘drag and drop’ method. The popular FTP client software is FileZilla, CuteFTP, SmartFTP, etc.

Question 3.
Differentiate shared and dedicated web hosting. (MAY-2017)
Answer:

Shared Dedicated
The resources areThe resources are
sharednot shared
Suitable for smallSuitable for websites
websites with lesswith large volume of
traffictraffic
It is cheapIt is highly expensive
It is slowerIt is faster

Plus Two Computer Application Web Hosting 3 Marks Important Questions

Question 1.
What is the need of registering a domain name for a website? Explain the procedure of domain name registration. (MARCH-2016)
Answer:
Millions of websites are available over the Internet so that our website must be registered with a suitable name. Domain Name registration is used to identify a website over the Internet. A domain name must be unique(i.e. no two websites with the same name are available). So you have to check the availability of do¬main name before you register it, for this will help. If the domain name entered is available then we can register it by paying the Annual registration fees online. Consider a Post Office, it has two addresses one string address (Irinjalakuda) and one numeric(pin) code (680121). Just like this, the website has also two addresses a string address for example www.agker.cag.gov.in, and a numeric address (http:/ /210.212.239.70/). We are following a string address, hence this domain name has to be connected to the corresponding IP address of the webserver. This is done by using ‘A record’(Address record) of the domain. ‘A record’ is used to store the IP address and the corresponding domain name.

Question 2.
Compare shared hosting and VPS. (MAY-2016)
Answer:
Types of web hosting: Various types of web hosting services are available. We can choose the web hosting services according to our needs depends upon the storage space needed for hosting, the number of visitors expected to visit, etc.

1) Shared Hosting: This type of hosting shares resources, like memory, disk space, and CPU hence the name shared. Several websites share the same server. This is suitable for small websites that have less traffic and it is not suitable for large websites that have large bandwidth, large storage space, and have a large volume of traffic.
Eg: Shared hosting is very similar to living in an Apartment(Villas) complex. All residents are in the same location and must share the available resources(Car parking area, Swimming pool, Gymnasium, playground, etc) with everyone.

2) Dedicated Hosting: A web server and its resources are exclusively for one website that has a large volume of traffic means a large volume of requests by the visitors. Some Govt, departments, or large organizations require uninterrupted services for that round the clock power supply is needed. It is too expensive but it is more reliable and provides good service to the public.
Eg: It is similar to living in an Our own house. All the resources in your house is only for you. No one else’s account resides on the computer and would not be capable of tapping into your resources.

3) Virtual Private Server (VPS): A VPS is a virtual machine sold as a service by an Internet hosting Service. A VPS runs its own copy of an OS (Operating System) and customers have super level access to that OS instance, so they can install almost any s/w that runs on that OS. This type is suitable for websites that require more features than shared hosting but less features than dedicated hosting.
Eg: It is similar to owning a Condo

Question 3.
Amita wanted to get the name ‘www. smartproducts.com’ for her newly designed website. How it is possible? (MARCH-2017)
Answer:
Millions of websites are available over the Internet so that our website must be registered with a suitable name. Domain Name registration is used to identify a website over the Internet. A domain name must be unique (i.e. no two websites with the same name is available). So you have to check the availability of the domain name before you register it, for this www.whois.net website will help. If the domain name entered is available then we can register it by paying the Annual registration fees online.

Question 4.
Ajith created a website using the software ‘Joomla’. What is the peculiarity of this software and write any four advantages of using this software? (MARCH-2017)
Answer:
Joomla is an example of a Content Management System.CMS is a collection of programs that are used to create, modify, update, and publish website content. CMS can be downloaded freely and is useful to design and manage attractive and interactive websites with the help of templates that are avail¬able in CMS. WordPress, Joomla, etc are examples of CMS.

Question 5.
Explain responsive web design. (MAY-2017)
Answer:
The home page is displayed differently according to the screen size of the browser window(different screen sized devices -mobile phone, palmtop, tablet, laptop, and desktop) we used. The website is designed dynamically(flexibly) that suit the screen size of a different device introduced by Ethan Marcotte. Before this, companies have to design different websites for different screen sized devices. By responsive web design, companies have to design only one website that suitably displayed according to the screen size of the devices.
It is implemented by using a flexible grid layout, images, and media queries.

Plus Two Computer Application Chapter Wise Previous Questions Chapter 6 Client-Side Scripting Using Java Script

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 6 Client-Side Scripting Using Java Script.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 6 Client-Side Scripting Using Java Script

Plus Two Computer Application Client-Side Scripting Using Java Script Using HTML 3 Marks Important Questions

Question 1.
Develop a webpage to display the following login screen. (MARCH-2016)
Plus Two Computer Application Chapter Wise Previous Questions Chapter 6 Client-Side Scripting Using Java Script 1
Write JavaScript do the following validation:
a) The application number should be int he ranges 10000 to 99999
b) The password should contain atleast 8 characters.
Answer:
<html>
<head>
<title>
Javascript – login
</title>
<script language =”Javascript”>
function showValid ( )
{
var appno,pas;
appno=document. frmlogin.txtappno. value;
pas=document.frmlogin.txtpass. value;
if (appno<10000|| appno>99999)
{
alert (“The number should be in the range 10000 to 99999. Try again”);
return;
}
if (pas.length <8)
{
alert (” The password must contain atleast 8 characters. Try again”);
return;
}
</SCRIPT>
</HEAD>
<Body bgcolor = “Cyan”>
<Form Name = “frmlogin”>
<Center>
Application No.
<inputtype= “text” name = “txtappno”>
<br> <br> password
<input type = “password” Name = “txtpass”> <br> <br>
<input type= “button” value = “show” onClick = “showValid()”>
</center>
</Form>
</body>
</html>

Question 2.
Design the following web page enter the mark of a student: (MAY-2016)
Plus Two Computer Application Chapter Wise Previous Questions Chapter 6 Client-Side Scripting Using Java Script 2
a) Write HTML code forthe website.
b) Provide validations for the text box using JavaScript. The mark should be in the range of 0 to 100 and should up a number. The text box should not be empty.
Answer:
<html>
<head>
<title>
student details
</title>
<SCRIPT Language=”JavaScript”>
function showValid()
{
varmark;
mark=document.frmcheck.txtmark.value;
if(mark<0 || mark >100)
{
alert(“The mark should be in the range 0 to 100”);
return;
}
if (isNaN(mark))
{
alert (“The mark should be a number”);
return;
}
if(mark == ” “)
{
alert (“please enter a valid mark”); return;
}
}
</SCRIPT>
<BODY BGLOLOR= “Red”>
<Form Name = “frmcheck”>
<Center>
Mark
<input type= “text” name = “txtmark”>
<br><br>
<input type= “button” Value= “Check” onClick=”showValid ( )”>
</center>
</FORM>
</body>
</htm>

Question 3.
Develop a webpage to display the following screen: (MARCH-2017)
Plus Two Macroeconomics Chapter Wise Previous Questions Chapter 6 Open Economy Macroeconomics 11
The user can enter a name in the textbox. On checking the ‘show’ button the name entered in the textbox should be changed into uppercase. Include JavaScript code in the HTML for doing this.
Answer:
<HTML>
<head>
<title>
check
</title>
<SCRIPT Language=”JavaScript”>
function convert( )
{
var str1
str1=document.frmconvert.txtname.value;
document.fimconvert.txtname.value=str1.toUpperCase( );
}
</SCRIPT>
<BODY>
<form name=”frmconvert”>
Enter Name
<input type=”text” name=”txtname”>
<br>
<br>
<inputtype=”button” value=”show” onClick-’convert( )”> </form>
</BODY>
</HTML>

Question 4.
Write a JavaScript which inputs the name, rollno, and date of birth of a student. Date of birth contains month, day and year. The month should be selected from a drop-down list. (MAY-2017)
Answer:
<html>
<head>
<Script Language=”JavaScript”>
function get( )
{
}
</Script>
</head>
</body bgcolor=”cyan”>
<form name=”frm”>
Enter your name
<input type=”text” name=”txtname”>
<br>
Enter your rollno
<input type=”text”name=”txtroll”>
<br>
Entr your Date of Birth
<br>
Day
<input type=”text” name=”txtroll”>
month
<select size=”1″ name=”cbomth”>
<option>January</option>
<option>Februry</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
Year
<input type=”text” name=”txtyr”>
<br>
<input type=”button” value=”submit”
onClick=”get( )”>
</form>
</body>
</html>

Plus Two Computer Application Chapter Wise Previous Questions Chapter 5 Web Designing Using HTML

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 5 Web Designing Using HTML.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 5 Web Designing Using HTML

Plus Two Computer Application Web Designing Using HTML 1 Mark Important Questions

Question 1.
Write HTML tag to set the colour of hyperlink to red. (MARCH-2016)
a) < A colour=”red”?
b) <A colour=”#FF0000″>
c) <BODY LINK = “Red”>
d) <BODYALINK-‘Red”>
Answer:
c) <BODY LINK= “Red”>

Question 2.
Consider the following list created using HTML. (MARCH-2016)
D. Laptop
E. Desktop
F. Printer
a) START= “D” TYPE = “A”
b) START =”4″ TYPE = “A”
c) START = “4” TYPE = “I”
d) START = “D” TYPE =”l”
Answer:
d) START = “D” TYPE =”l”

Question 3.
Nila wanted to set the picture “sky.jpg” as the background of his web page. Choose the correct tag for doing this. (MAY-2016)
IMG SRC = “sky.jpg”>
b) <BODY SRC= “sky.jpg”>
c) <IMG BACKGROUND= “sky.jpg”>
d) <BODY BACKGROUD = “sky.jpg”>
Answer:
d) <BODY BACKGROUD = “sky.jpg”>

Question 4.
_______ attribute of <frame>tag is used to prevent users from resizing the border of a specific frame by dragging it. (MAY-2016)
a) scrolling
b) No resize
c) margin width
d) margin height
Answer:
b) No resize

Question 5.
Write the complete HTML tag that links the text “PSC” to the website www.keralapsc.org (MARCH-2017)
Answer:
<A HREF=”www.keralapsc.org”>PSC</A>

Question 6.
_______ tag in HTML is used to create a drop-down list. (MAY-2017)
a) SELECT
b) OPTION
c) INPUT
d) LIST
Answer:
a) SELECT

Plus Two Computer Application Web Designing Using HTML 2 Marks Important Questions

Question 1.
Write the HTML code to create the following table: (MARCH-2017)
Plus Two Computer Application Chapter Wise Previous Questions Chapter 5 Web Designing Using HTML 1
Answer:
Sp <html>
<head>
<title>
table creation </title>
</head>
<body bgcolor=”cyan”>
<table border=”1″>
<tralign=”center>
<th colspan=”2″>No. of Students</th>
</tr>
<tralign=”left”>
<th>Science</th>
<td>55</td>
</tr>
<tralign=”left”>
<th>Commerce</th>
<td>60</td>
</tr>
<tr align=”left”>
<th>Humanities</th>
<td>58</td>
</tr>
</table>
</body>
</html>

Plus Two Computer Application Web Designing Using HTML 3 Marks Important Questions

Question 1.
Explain the HTML tag <table> and its attributes. (MARCH-2016)
Answer:

  1. Border: It specifies the thickness of the borderlines around the table
  2. Border color: It specifies the colour for borderlines
  3. Align: It specifies the table alignment, the values can be left, right or center
  4. Bgcolor: It specifies the background colour for the table.
  5. Cellspacing: It specifies the space between two table cells
  6. Cellpadding: It specifies the space between cell border and content
  7. Cols: It specifies the number of columns
  8. Width: It determines the table width
  9. Frame: It specifies the border lines around the table, values are void, border, box, above, below,…

Question 2.
Explain <OL> tag with suitable example (MAY-2016)
Answer:
Ordered list (<OI>)- This tag is used to display items with follwing type values
Type=1 for 1,2,3,
Type =i for i,ii,iii,
Type = I for I,II,III
Type = a for a,b,c,…,
Type = A for A,B,C,….
Eg:-<OLType=”1″>
<li>Apple
<li>Orange
<li>Grapes
</OL>

Question 3.
Explain nesting of framesets with an example. (MARCH-2017)
Answer:
Nesting of framesets
A <frameset> tag contains another <frameset> tag
Eg:
<frameset cols=”30%,*”>
<frame src=”page1.html”>
<frameset rows=”33%,33%,*”>
<frame src=”page2.html”>
<frame src=”page3.htmr>
<frame src=”page4.html”>
</frameset>
</frameset>

Question 4.
Write an HTML code to create the following table. (MAY-2017)

PAY-ROLL
EMPNONAMESALARY
101ABIN15,000
102SINI25,000
103ANU20,000

Answer:
<html>
<head>
<title>
table
</title>
</head>
<body bgcolor=”cyan”>
<table border=”1″>
<tralign=”center”>
<th colspan=”3″>PAY ROLL</th>
</tr>
<tralign=”center”>
<th>EMPNO</th>
<th>NAME</th>
<th>SALARY</th>
</tr>
<tralign=”center”>
<td>101 <br>102<br>103</td>
<td>ABIN<br>SINI<br>ANU</td>
<td>15,000<br>25,000<br>20,000</td>
</tr>
</table>
</body>
</html>

Plus Two Computer Application Chapter Wise Previous Questions Chapter 4 Web Technology

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 4 Web Technology.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 4 Web Technology

Plus Two Computer Application Web Technology 1 Mark Important Questions

Question 1.
The default port number of http is (MARCH-2016)
a) 20
b) 80
c) 110
d) 53
Answer:
b) 80

Question 2.
_______ tag is used to make the size of the text smaller than current text in HTML.  (MAY-2016)
a) <b>
b) <small>
c) <sub>
d) <sup>
Answer:
b) <small>

Question 3.
A designed website has to be uploaded into a to make it available to internet users all over the world. (MARCH-2017)
Answer:
Webserver

Question 4.
______ is a server that acts as a bridge between the merchant server and the bank server. (MARCH-2017)
Answer:
Payment gateway

Question 5.
The port no. for HTTP protocol is ______ (MAY-2017)
a) 20
b) 80
c) 110
d) 53
Answer:
b) 80

Question 6.
Pick the odd one out: (MAY-2017)
a) BODY
b) HTML
c) HEAD
d) ALIGN
Answer:
d) ALIGN

Question 7.
DNS stands for _____ (MAY-2017)
Answer:
Domain Name System

Plus Two Computer Application Web Technology 2 Marks Important Questions

Question 1.
A webpage is created to display the result of the engineering entrance examination. (MARCH-2016)
a) What type of webpage it is?
b) Mention any two features of it.
Answer:
a) Dynamic web page
b) 1) Content and layout is not fixed
2) It uses databases
3) It runs as the server-side application program
4) interactive

Question 2.
Compare client-side scripting and server-side scripting. (MAY-2016)
Answer:

Client-Side ScriptingServer Side Scripting
Script is copied to client browserto the webserver
Executed by the clientExecuted by the server and result gets back to the browser window
Used for Client level validationConnect to the database in the server
It is possible to block by the userCannot possible
Client side scripts depends the type and version of the browserIt does not depend the type and version of the browser

Question 3.
Every web browser has default colors to display text and hyperlink. How can we change this default colour? (MARCH-2017)
Answer:
Attribute of BODY tag is used for this.
1) TEXT-Specifies the color of the text content of the page
Eg. <BODY TEXT= “Red”>
2) LINK- Specifies colour of the hyperlinks that are not visited by the user
3) ALINK-Specifies the colour of hyperlinks
4) VLINK-Specifies the color of hyperlinks which are a I ready visited by the viewer.
Eg. < BODYALINK= “Cyan” LINK-’ Magenta” VLINK= “Orange”>

Question 4.
Differentiate static and dynamic web page. (MAY-2017)
Answer:

Static web pagesDynamic web pages
Content and layout is fixedContent and layout are changed frequently
Never use databaseDatabase is used
Run by browserIt runs on the server and the result get back to the client (browser)
Easy to developNot at all easy

Plus Two Computer Application Web Technology 3 Marks Important Questions

Question 1.
Compare static and dynamic web pages (MARCH-2017)
Answer:

Static web pagesDynamic web pages
Content and layout is fixedContent and layout is changed frequently
Never use databaseDatabase is used
Run by browserIt runs on the server and the result get back to the client(browser)
Easy to developNot at all easy

Question 2.
Compare Client-side scripting and Server-side scripting languages. (MARCH-2017)
Answer:

Client-Side ScriptingServer Side Scripting
Script is copied to client browserto the webserver
Executed by the clientExecuted by the server and result gets back to the browser window
Used for Client level validationConnect to the database in the server
It is possible to block by the userCannot possible
Client side scripts depends the type and version of the browserIt does not depend the type and version of the browser

Plus Two Computer Application Chapter Wise Previous Questions Chapter 3 Functions

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 3 Functions.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 3 Functions

Plus Two Computer Application Functions 1 Mark Important Questions

Question 1.
function is used to check whether a character is alphanumeric. (MAY-2016)
a) isdigit( )
b) inalnum( )
c) isupper( )
d) islower( )
Answer:
b) isalnum( );

Question 2.
char s1 [10]=”hello”,s2[10]; (MAY-2017)
strcpy (s2, s1);
cout<<s2;
What will be the output?
Answer:
a) hello

Plus Two Computer Application Functions 2 Marks Important Questions

Question 1.
Consider the followjjig code: (MARCH-2016)
char S1[ ] = “program”
char S2[ ] = “PROGRAM” int n;
n=strcmpi (S1, S2)
What is the value of n?
a) n=0
b) n=1
c) n>1
d) n<0
Answer:
a) n =0

Question 2.
Explain two stream functions for input operation for example. (MARCH-2017)
Answer:
Input functions: The input functions like get( )(to read a character from the keyboard) and getline( ) (to read a line of characters from the keyboard) is used with cin and dot(.) operator.

Question 3.
Explain how allocation of string takes place in memory. (MAY-2017)
Answer:
A string is automatically appended by a null character(‘\0’). The null character is treated as one character. charname[20];
Here we can store a name with character up to 19.

Question 4.
Explain gets( ) and puts ( ) functions (MAY-2017)
Answer:
gets( ) function is used to get a string from the key board including spaces.
puts( ) function is used to print a string on the screen. To use gets( ) and puts ( ) function the header file cstdio must be included.

Plus Two Computer Application Functions 3 Marks Important Questions

Question 1.
Explain any three stream function for I/O operation.(MARCH-2016)
Answer:
Stream functions for I/O operation are given below
1) get ( ):- To read a character from the key board
eg: cin.get(ch);

2) getline ( ):- To read a line of characters from the keyboard
eg: cin.getline(str, len);

3) put( ):- To print a characters on the screen
eg:cout.put(‘A’);

4) write ( ):- To print a line of characters on the screen
eg: cout.write (str, len);

Question 2.
Write a code to do the following: (MARCH-2016)
a) A function named largest accept two integer numbers and return the largest number.
b) Use this function to find the largest of two numbers.
Answer:
a) int largest (int a, int b)
{
if (a>b)
return a;
else
return b;
}

b) void main ( )
{
int x, y;
cout<<“Enter 2 numbers”; cin>>x>>y;
cout<< “The largest among these is”
<< largest (x,y);
}

Question 3.
Explain any three string function with example. (MAY-2016)
Answer:
Functions in C++
Some functions that are already available in C++ are called pre-defined or built in functions.
In C++, we can create our own functions for a specific job or task, such functions are called user defined functions.
A C++ program must contain a main( ) function. A C++ program may contain many lines of statements(including so many functions) but the execution of the program starts and ends with main( ) function.
Predefined functions
To invoke a function that requires some data for performing the task, such data is called parameter or argument. Some functions return some value back to the called function.
String functions
To manipulate string in C++ a header file called string.h must be included.
a) strlen( )- to find the number of characters in a string(i.e. string length).
Syntax: strlen(string);
Eg- cout<<strlen(“Computer”); It prints 8.

b) strcpy( )- It is used to copy second string into first string.
Syntax: strcpy(string1 ,string2);
Eg. strcpy(str,”BVM HSS”); cout<<str; It prints BVM HSS.

c) strcat( )- It is used to concatenate second string into first one.
Syntax: strcat(string1 ,string2)
Eg. strcpy(str1,’’Hello”); strcpy(str2,” World”); strcat(str1,str2);
cout<<str1; It displays the concatenated string “Hello World”

d) strcmp( )- it is used to compare two strings and returns an integer.
Syntax: strcmp (string1 ,string2)
if it is 0 both strings are equal.
if it is greater than 0(i.e. +ve) string1 is greater than string2
if it is less than 0(i.e. -ve) string2 is greater than string1
Eg.
include
#include using namespace std; int main()
{
char str1 [10],str2[10];
strcpy(str1 ,”Kiran”);
strcpy(str2,”Jobi”);
cout<<strcmp(str1 ,str2);
}
It returns a +ve integer.

e) strcmpi( )- It is same as strcmp( ) but it is not case sensitive. That means uppercase and lowercase are treated as same.
Eg. “ANDREA” and “Andrea” and “andrea” are the same.
# include
#include
using namespace std;
int main( )
{
char str1 [10],str2[10];
strcpy(str1,”Kiran”);
strcpy(str2,”KIRAN”);
cout<<strcmpi(str1 ,str2);
}
It returns 0. That is both are same.

Question 4.
Write a function that accept 3 numbers of type float as argument and return the average of three numbers. Write program which use this function to find the average of three numbers using C++. (MAY-2016)
Answer:
# include
using namespace std;
float avg(float n1, float n2, float n3)
{
return ((n1 +n2+n3)/3);
}
int main( )
{
float x, y, z;
cout <<“Enter 3 nos”; cin>> x>>y>>z;
cout <<“the average is”<<avg(x,y,z);
}

Question 5.
“Initialized formal arguments are called default arguments.” Using this concept write the function prototype and definition of a user-defined function Sum() which accepts two or three integer numbers and returns their sum. (MARCH-2017)
Answer:
#include
using namespace std;
int sum(int x=100,int y=50,int z=10)
{
retum(x+y+z);
}
int main( )
{
cout<<sum( )<<endl; cout<<sum(1)<<endl;
cout<<sum(1,2)<<endl;
cout<<sum(1,2,3)<<endl;
}

Question 6.
Write the output of the following code segment. (MARCH-2017)
char S1[25]=” Computer”;
char S2[15]=” Applications”;
strcat(S1 ,S2);
cout<<S1;
Answer:
The output is “ComputerApplicatios”. That is the second string is concatenated to the first string.

Question 7.
Explain three string functions in C++. (MAY-2017)
Answer:
a) strlen( )- to find the number of characters in a string(i.e. string length).
Syntax: strlen(string);
Eg. cout<<strlen(“Computer”);
It prints 8.

b) strcpy( )- It is used to copy second string into first string.
Syntax: strcpy(string1, string2);
Eg. strcpy(str,”BVM HSS”);
cout<<str;
It prints BVM HSS.

c) strcat( )- It is used to concatenate second string into first one.
Syntax: strcat(string1,string2)
Eg. strcpy(str1,’’Hello”);
strcpy(str2,” World”);
strcat(str1 ,str2);
cout<<str1;
It displays the concatenated string “Hello World”

Question 8.
Write a program using a function to interchange the value of two variables. (Use call by reference method for passing arguments.) (MAY-2017)
Answer:
#include
using namespace std;
void swap(int &x,int &y)
{
int temp; temp=x;
x=y;
y=temp;
}
intmain()
{
intx=100,y=200;
cout<<“values before swap”<<endl;
cout<<“x=”<<x<<“,y=”<<y<<“\n”;
swap(x,y);
cout<<“values after swap”<<endl;
cout<<“x=”<<x<<“,y-‘<<y<<“\n”;

Plus Two Computer Application Chapter Wise Previous Questions Chapter 2 Arrays

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 2 Arrays.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 2 Arrays

Plus Two Computer Application Arrays 1 Mark Important Questions

Question 1.
Write C++ initialization statement to initialize an integer array name ‘MARK’ with the values 70,80,85,90. (MARCH-2017)
Answer:
MARK[4] = {70,80,85,90};
MARK[ ] = {70,80,85,90};
MARK[0] = 70;
MARK[1] = 80;
MARK[2] = 85;
MARK[3] = 90;

Plus Two Computer Application Arrays 2 Mark Important Questions

Question 1.
How memory is allocated for a float array? (MARCH-2016)
Answer:
Memory allocated for the float data type is 4.
Total byte = size of array *4
eg. float n[10];
Here total byte = 10*4
That means 40 bytes.

Question 2.
How can we initialize an integer array? Give an example. (MARCH-2016)
Answer:
Array elements can be initialised at the time of declaration and values are included in braces,
eg: ing n[5]={10,20, 30,40, 50};

Question 3.
Answer any of the following questions 4(a) or 4(b). (MARCH-2016)
a) Define an array. Give an example of an integer array declaration.
b) Consider the following C++ code char text [20]; cin>>text;
If the input string is “Computer Programming”, what will be the output? Justify your answer.
Answer:
a) An array is a collection of elements with the same data type.
eg:- int n[100]; This is an array namely n. We can store 100 elements. The index of the first element is 0 and the last is 99.
b) The output is “Computer”. This is because of c in reads the characters up to space. That means space is the delimiter, The character after space is truncated.

Plus Two Computer Application Arrays 3 Mark Important Questions

Question 1.
Write a C++ program to input 10 numbers into an integer array and find the sum of numbers which are an exact multiple of 5. (MARCH-2017)
Answer:
#include <iostream>
using namespace std;
int main()
{
int n[10],i,sum=0;
for(i=0;i<10;i++)
{
cout<<“Enter value for number”<<i+1
cin>>n[i];
if(n[i]%5==0)
sum+=n[i];
}
cout<<“The sum of numbers which are exact multiple of 5 is“<<sum;
V;
}

Plus Two Computer Application Arrays 5 Mark Important Questions

Question 1.
Write a C++ program to accept a string and count the number of words and vowels in that string. (MARCH-2016)
Answer:
(a) #include(iostream>
# include <cstdio>
# include<cctype>
using namespace std;
void main ()
{
int i, vowel =0, words=1; ,
charstr[80];
cout<< “Enter a string \n”;
gets (str);
for (i=0, str[i]! = ‘\0’; i++)
{
if (str [i] ==32) words ++;
’ switch (to lower(str[i]))
{
case ‘a’: case ‘e’: case ‘i’: case ‘O’: case ‘u’: vowel ++;
}
count<<“The number of words is” <<words; count<<“\n the number of vowels is”<<vowel;
}

Question 2.
Write a C++ program to accept N integer numbers and find the sum and average of even numbers. (MARCH-2016)
Answer:
# include <iostream>
using namespace std;
void main ()
{
float avg, sum = 0.0;
int N, i, no;
cout <<“Enter how many numbers”;
cin>>N;
for(i=0; i<N; i++)
{
cout<< “Enter number”<<i+1; cin >> no; if (no % 2 == 0) sum+=no;
}
avg=sum/N;
cout<< “The sum of even numbers is”<<sum; cout<<“\n the average of even numbers is” <<avg;
}

Question 3.
Answer any of the following questions 8(a) or 8(b). (MAY-2016)
a) Write a C++ program to accept a string and find the length of the string without using built in function. Use a character array to store the string.
b) Write a program to input ‘N’ numbers into an integer array and find the largest number in the array.
Answer:
a) # include <iostream>
# include <cstdio>
using namespace std;
int main ()
{
charstr [80]; int i;
cout <<“Enter a string:”;
gets(str);
for(i=o;str[i]!= ‘\0’;i++)
cout <<“The length of the string is “<<i;
}
OR

b) # include <iostream>
using namespace std;
int main ()
{
int N, no[50], i, largest = 0;
cout<< “Enter how many numbers”;
cin>>N;
for (i=0; i<N; i++)
{
cout <<“Enter number”<<i+1;
cin>>no[i];
if (no[i]> largest)
largest = no[i];
}
cout <<“The largest number is” <<largest;
}

Question 4.
Write a C++ program to enter 10 numbers into an array and find the second largest element. (MAY-2016)
Answer:
#include<iostream>
using namespace std;
int main()
{
int i,j,n[10],temp;
for(i=0;i<10;i++)
{
cout<<“Enter a value for number”<<i+1 cin>>n[i];
}
for(i=0;i<9;i++)
{
for(j=i+1;j<10;j++)
if(n[i]<n[j])
{
temp=n[i];
n[i]=n[j];
n[j]=temp;
}
}
cout<<“The second largest number is “<<n[1];
}

Question 5.
Write a C++ program to convert all lowercase alphabets stored in a string to uppercase. (MAY-2016)
Answer:
#include<cstdio>
using namespace std;
int main()
{
charline[80];
int i;
puts(“Enter the string to convert”);
gets(line);
for(i=0;line[i]!=’\0′;i++)
if (line[i]>=97 && line[i]<=122)
line[i]=line[i] – 32;
puts(line);
}

Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming

Kerala State Board New Syllabus Plus Two Computer Application Chapter Wise Previous Questions and Answers Chapter 1 Review of C++ Programming.

Kerala Plus Two Computer Application Chapter Wise Previous Questions Chapter 1 Review of C++ Programming

Plus Two Computer Application Review of C++ Programming 1 Mark Important Questions

Question 1.
_______ is an exit control loop. (MAY-2016)
a) for loop
b) while loop
c) do-while loop
d) break
Answer:
do-while loop

Question 2.
Which among the following is an Insertion Operator? (MARCH-2016)
a) <<
b) >>
c) <
d) >
Answer:
a) <<

Question 3.
Which among the following is equivalent to the statement series b=a, a = a +1? (MARCH-2017)
a) b + = a
b) b = a++
c) b = ++a
d) b + = a + b
Answer:
b) b = a++

Question 4.
A ______ statement in a loop force the termination of that loop. (MARCH-2017)
Answer:
break

Question 5.
_______ operator is the arithmetic assignment operator. (MAY-2017)
a) >>
b) ==
c) +=
d) =
Answer:
c) +=

Plus Two Computer Application Review of C++ Programming 2 Marks Important Questions

Question 1.
How does a ‘goto’ statement work? (MAY-2016)
Answer:
The execution of a program is sequential but we can change this sequential manner by using jump statements. The jump statements are
1) goto statement By using goto we can transfer the control anywhere in the program without any condition. The syntax is goto label;
Eg.
# include<iostream>
using namespace std;
int main()
{
float a,b;
cout<<“Enter 2 numbers”;
cin>>a>>b;
if(b==0)
goto end;
cout<<“The quotient is “<< a/b;
return 0;
end:
cout<<“Division by zero error”;
}

Question 2.
What are the main components of a looping statement? (MARCH-2016)
Answer:
The main components are initialization expression, test expression, update expression, and looping body
eg: for (i=1; i<=10; i++)
cout << i;

Question 3.
Identify the following C++ tokens. (MAY-2017)
a) “welcome”
b) int
c) >=
d) ++
Answer:
a) “welcome” String Literal
b) int-Keyword
c) >= Operator
d) ++-: Operator

Plus Two Computer Application Review of C++ Programming 3 Marks Important Questions

Question 1.
Explain switch statement with an example (MAY-2016)
Answer:
cin >> pcode;
switch (pcode)
{
case ‘C’:
cout <<“Computer”;
break;
case ‘M’:
cout << “Mobile Phone”;
break;
case ’L’:
cout << “Laptop”;
break;
default:
cout << “lnvalid code”;

Question 2.
Rewrite the following C++ code using ‘switch’ statement (MARCH-2017)
cin >> pcode;
if (pcode == ‘C’)
cout << “Computer”;
else if (pcode == ‘M’)
cout<<“Mobile Phone”;
else if(pcode == ‘L’)
cout<<“Laptop
else
cout<<“lnvalid code”;
Answer:
cin >> pcode;
switch(pcode)
{
case ‘C’:
cout << “Computer”;
break;
case ‘M’:
cout << “Mobile Phone”;
break;
case ’L’:
cout << “Laptop”;
break;
default:
cout << “lnvalid code”;

Question 3.
How do continue and break statements differ in a loop? Explain with an example. (MARCH-2016)
Answer:
Break is used to terminate a loop. But continue is used for skipping (bypassing) a part of the code, eg: for (i=1, i<10; i++)
{
if (i%2==0) continue; cout<<i << “, “;
}
Here the output is 1,3, 5, 7, 9
eg: for (i=1; i<10; i++)
{
if (i% 2==0) break;
cout<<i<<“,”;
}
Here the output is 1, that is the loop is quit when i=2.

Question 4.
Explain break and continue statements with examples. (MAY-2017)
Answer:
break statement:- It is used to skip over a part of the code i.e. we can premature exit from a loop such as while, do-while, for or switch, continue statement:- It bypasses one iteration of the loop.
break statement:- It is used to skip over a part of the code i.e. we can premature exit from a loop such as while, do-while, for, or switch.
Syntax:
while (expression)
if (condition) break;
}
Eg.
#include<iostream>
using namespace std;
int main()
{
int i=1;
while(i<10)
{
cout<<i<<endl;
if(i==5)
break;
i++;
}
}
The output is
1
2
3
4
5
continue statement: It bypasses one iteration of the loop.
Syntax:
while (expression)
{
if (condition) break;
}
Eg.
#include<iostream>
using namespace std;
int main()
{
int i=0;
while(i<10)
{
i++;
if(i==5) continue;
cout<<i<<endl;
}
}
The output is
1
2
3
4
5
6
7
8
9
10

Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming

Kerala State Board New Syllabus Plus Two Maths Chapter Wise Previous Questions and Answers Chapter 12 Linear Programming.

Kerala Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming

Plus Two Maths Linear Programming 4 Marks Important Questions

Question 1.
Consider the linear programming problem;
Maximise; Z = x +y , 2x + y – 3< 0, x – 2y + 1 < 0, y < 3, x < 0, y < 0
(i) Draw its feasible region.
(ii) Find the corner points of the feasible region.
(iii) Find the corner at which Z attains its maximum. (March – 2012)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 1
(ii) In the figure the shaded region ABC is the feasible region. Here the region is bounded. The corner points are A(1, 1), B(5, 3), C(O, 3).
(iii) Given; Z = x + y

Corner pointsValue of Z
AZ = (l)+(1) = 2
BZ = (5)+(3) = 8
CZ = (0)+(3) = 3

Since maximum value of Z occurs at B, the soluion is Z = (5) + (3) = 8.

Question 2.
Consider the LPP Minimise; Z = 200 k + 500y, x + 2y > 10, 3x + 4y < 24, x > 0, y > 0
(i) Draw the feasible region.
(ii) Find the co-ordinates of the comer points of the feasible region.
(iii) Solve the LPP. (May – 2012)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 2
(ii) In the figure the shaded region ABC is the feasible region. Here the region is bounded. The corner points are 4(4, 3), 5(0, 6), C(0, 5)
(iii) Given; Z = 200x + 500y

Corner pointsValue of Z
AZ = 200(4)+500(3) = 2300
BZ = 200(0)+500(6) = 3000
CZ = 200(0)+500(5) = 2500

Since minimum value of Z occurs at A, the soluion is Z = 200(4) + 500(3) = 2300.

Question 3.
Consider the LPP
Maximise; Z = 5x + 3y
Subject to; 3x + 5y < 15, 5x + 2y < 10x, y > 0
(i) Draw the feasible region.
(ii) Find the corner points of the feasible region.
(iii) Find the corner at which Z attains its maximum. (March – 2013)
Answer:
In the figure, the shaded region OABC is the feasible region. Here the region is bounded.
The corner points are
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 3
Given; Z = 5x + 3y

Corner pointsValue of Z
OZ = 0
AZ = 5(2)+3(0) = 10
B\(Z=5\left(\frac{20}{19}\right)+3\left(\frac{45}{19}\right)=\frac{235}{19}\)
CZ = 5(0)+3(3) = 9

Since maximum value of Z occurs at B, the soluion is Z =

Question 4.
Consider the linear programming problem: Minimize Z = 3x + 9y Subject to the constraints: x + 3y < 60 x + y > 10, x < y, x > 0, y > 0
(i) Draw its feasible region.
(ii) Find the vertices of the feasible region
(iii) Find the minimum value of Z subject to the given constraints. (March-2014, SAY-2016)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 4
(ii) The feasible region is ABCD.
Solving x + y = 10, x = y we get B(5, 5)
Solving x + 3y = 60, x = y we get C(15, 15)
Hence the comer points are A(0, 10) , B(5, 5), C(15, 15), D(0, 20)
(iii) Given; Z = 3x + 9y

Corner pointsValue of Z
AZ = 3(0)+9(10) = 90
BZ = 3(5)+9(5) = 60
CZ = 3(15)+ 9(15) = 190
DZ = 3(0)+9(20) = 180

Form the table, minumum value of Z is 6 O at B(5, 5).

Question 5.
Consider the linear inequalities 2x + 3y < 6; 2x + y < 4; x, y < 0
(a) Mark the feasible region.
(b) Maximise the function z = 4x + 5y subject to the given constraints. (March – 2014)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 5
(b) 15.2x + 3y = 6

X02
Y40

2x + y = 4

X03
Y20
Corner pointsz = 4x + 5y
0(0, 0)z = 0
A(2, 0)8 + 0 = 8
B(1.5, 1)6 + 5 = 11
C(0, 2)0 + 10 = 10

Maximum at x = 1.5, y = 1
Maximum value is Z = 11

Question 6.
Consider the linear programming problem: Minimise Z = 4x + 4y Subject to x + 2y < 8; 3x + 2y < 12x, y < 0
(a) Mark its feasible region.
(b) Find the comer points of the feasible region.
(c) Find the corner at which Z attains its minimum. (May – 2014)
Answer:
(a) x + 2y = 8,

X08
y40

3x + 12y = 12

X04
y60

Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 6

The comer points are 0(0, 0), A(4, 0), B(2, 3), C(0, 4)

(c)

Corner pointZ = -3x + 4y
0 (0, 0)Z = 0 + 0 = 0
A (4, 0)Z = -12 + 0 = -12
B (2, 3)Z = -6 + 12 = 6
C (0, 4)Z = 0 + 16 = 16

Z attains minimum at (4, 0).

Question 7.
Consider the linear programming problem: Maximum z = 4x + y
Subject to constraints: x + y < 50, 3x + y < 9x, y < 0
(a) Draw the feasible region
(b) Find the corner points of the feasible region
(c) Find the corner at which ‘z’ attains its maximum value. (May – 2015)
Answer:
(a) x + y = 50,

X050
y500

3x + y = 90

X030
y900

Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 7
(b) Solving the equations we get the points as
O(0, 0) A(30, 0); B(20, 30); C(0, 50)

(c)

VerticesZ
0(0,0)0
A(30,0)120 maximum
B(20,30)110
C(0,50)50

Z attains maximum at A(30, 0)

Question 8.
Consider the LPP
Maximise z = 3x + 2y
Subject to the constraints: x + 2y < 10, 3x + y < 15; x, y < 0
(a) Draw its feasible region
(b) Find the corner points of the feasible region
(c) Find the maximum value of Z. (March – 2016)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 8
(b) The corner points 0(0,0), A(5,0), B(4,3), C(0, 5)
Z is maximum at B(4, 3), z = 18.

(c)

o(0,0)Z = 3(0)+ 2(0) = 0
A(5,0),Z= 3(5)+ 2(0) = 15
B(4,3),Z= 3(4)+ 2(3) = 18
C(0,5)Z= 3(0) + 2(5) = 10

Question 9.
Consider the linear programming problem: Maximum z = 50x + 40y
Subject to constraints:
x + 2y < 10; 3x + 4y < 24; x, y < 0
(i) Draw the feasible region
(ii) Find the comer points of the feasible region
(iii) Find the maximum value of z. (March – 2017)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 9
(ii) In the figure the shaded region ABC is the feasible region. Here the region is bounded. The corner points are A(4, 3), B(0, 6), C(0, 5)
(iii) Given; Z = 50x + 40y

Corner pointsValue of Z
AZ = 50(4)+ 40(3) = 320
BZ= 50(0)+ 40(6) = 240.
CZ= 50(0)+ 40(5) = 200

Since minimum value of Z occurs at A, the soluion is Z = 50(4) + 4(3) = 320.

Plus Two Maths Linear Programming 6 Marks Important Questions

Question 1.
A furniture dealer sells only tables and chairs. He has Rs. 12,000 to invest and a space to store 90 pieces. A table costs him Rs. 400 and a chair Rs. 100. He can sell a table at a profit of Rs. 75 and a chair at a profit of Rs. 25. Assume that he can sell all the items. The dealer wants to get maximum profit.
(i) By defining suitable variables, write the objective function.
(ii) Write the constraints.
(iii) Maximise the objective function graphically. (March – 2010)
Answer:
(i) Let x be the number of Tables and y be the number of Chairs. Then; Maximise; z = 75x + 25y
(ii) Furniture constraints x + y < 90
Investment constraint 400x + 100y < 12000
Therefore;Maximise; Z = 75x + 25y, x + y < 90, 4x + y < 120, x<0, y<0
(iii) In the figure the shaded region OABC is the feasible region. Here the region is bounded. The corner points are O(0, 0), A(30, 0) B(10, 80), C(0, 90).
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 10
Given; Z = 75x + 25y

Corner pointsValue of Z
OZ =75(0) +25(0) = 0
AZ= 75(30)+ 25(0) = 2250
BZ= 75(10)+ 25(80) = 2750
CZ= 75(0)+ 25(90) = 2250

Since minimum value of Z occurs at B, the soluion is Z = 2750.

Question 2.
A company produces two types of cricket balls A and B. The production time of one ball of type B is double type A (time in units). The company has the time to produce a maximum of 2000 balls per day. The supply of raw materials is sufficient for the production of 1500 balls (both A and B) per day. The company wants to make maximum profit by making a profit of Rs. 3 from a ball of type A and Rs. 5 from type B.

Then,
(i) By defining suitable variables write the objective function.
(ii) Write the constraints.
(iii) How many balls should be produced in each type per day in order to get maximum profit? (May – 2010)
Answer:
(i) Let x be the number of balls of type A and y be the number of balls of type B. Then Maximise profit is Z = 3x + 5y
(ii) Balls constraints 2x + y < 2000 investment constraint x + y < 1500
Therefore; Maximise; Z = 3x + 5y, 2x + y < 2000, x + y < 1500, x < 0, y < 0
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 11
(iii) In the figure the shaded region OABC is the fesible region. Here the region ¡s bounded. The corner points are O(0, 0), A(1000, 0) B(500, 1000), C(0, 1500). Given; Z = 3x + 5y

Comer pointsValue of Z
OZ = 3(0)+ 5(0) = 0
AZ = 3(1000) + 5(0) = 3000
BZ= 3(500) + 5(1000) = 6500
CZ= 3(0) + 5(1500) = 7500

Since maximum value of Z occurs at C, the soluion is Z = 3(0) + 5(1500) = 7500.

Question 3.
The graph of a linear programming problem is given below. The shaded region is the feasible region. The objective function is Maximise; Z = px + qy
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 12
(i) What are the co-ordinates of the corners of the feasible region?
(ii) Write the constraints.
(iii) If the Max. Z occurs at A and B, what ¡s the relation between p and q?
(iv) If q = 1, write the objective function.
(v) Find Max. Z. (March – 2011)
Answer:
(i) From the figure the feasible region is OABC.
Then the comer points are;
A is (5, 0), B is (3, 4), C is (0, 5) and O (0, 0)
(ii) The constraints are 2x + y < 10, x + 3y < 15, x < 0, y < 0
(iii) Given; Z = px + qy

Corner pointsValue of Z
OZ=p(0)+q(0) = 0
AZ = p(5) + q(Q) = 5p
BZ = p( 3)+g(4) = 3p+4q
CZ = p(0)+q(5) = 5q

Since maximum at A and B we have;
⇒ 3p + 4q = 5p ⇒ 2p = 4q ⇒ p = 2q
(iv) When q = 1, then p ⇒ 2q ⇒ p = 2
Objective function is; Z = 2x + y
(v) We have; Z px + qy at B Z has maximum ⇒ Z = 2(3) + 4 = 10

Question 4.
A manufacturer produces nuts and bolts. It takes 1 hour of work on machine A and 3 hours on machine B to produce a package of nuts. It takes 3 hours on machine A and I hour on machine B to produce a package of bolts. He earns a profit of Rs. 17.50 per package on nuts and Rs. 7.00 per package on bolts. How many packages of each should be produced each day so as to maximise his profit, if he produced each day so as to maximise the profit if he operates his machines for at the most 12 hours a day?
(i) By suitable defining the variables write the objective function of the problem.
(ii) Formulate the problem as a linear programming problem(LPP)
(iii) Solve the LPP graphically and find the number of packages of nuts and bolts to be manufactured. (May -2011)
Answer:
(i) Let x be the number of packages of nuts produced and y be the number of packages of bolts produced. Then;
Maximise profit is; Z = 17. 5x + 7y
(ii) Time constraint for Machine A; x + 3y < 12
Time constraint for Machine B; 3x + y < 12
Therefore; Maximise; Z = 17.5x + 7y, x + 3y < 12, 3x + y < 12, x < 0, y < 0
(iii) In the figure the shaded region OABC is the visible region. Here the region is bounded. The corner points are 0(0,0), A (4, 0) B(3, 3), C(0, 4).
Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 13
Given; Z = 17.5x + 7y

Comer pointsValue of Z
OZ =17.5(0) +7(0) = 0
AZ =17.5(4)+ 7(0) = 70
BZ= 17.5(3)+ 7(3) = 73.5
CZ= 17.5(0)+7(4) = 28

Since maximum value of Z occurs at B, the soluion is Z = 17.5(3) + 7(3) = 73.5.

Question 5.
A bakery owner makes two types of cakes A and B. Three machines are needed for this purpose. The time (in minutes) required for making each type of cakes in each machine is given below;

MachineTypes of cakes
1126
II180
III69

Each machine is available for almost 6 hours per day. Assume that all cakes will be sold out every day. The bakery owner wants to make a maximum profit per day by making Rs. 7.5 from type A and Rs. 5 from type B.
(i) Write the objective function by defining suitable variables.
(ii) Write the constraints.
(iii) Find the maximum profit graphically. (May- 2013, EDUMATE – 2017)
Answer:
(i) Number of cake of type A: x
Number of cake of type B: y
Then profit function is Maximise: Z = 75x + 5y

(ii) 12x + 6y < 360; 18x + 0y < 360
6x + 9y < 360; x > 0, y > 0
Simplifying we get;
2x – i – y < 60………..(1)
x < 20………..(2)
2x + 3y < 120………..(3)
x > 0, y > 0

Plus Two Maths Chapter Wise Previous Questions Chapter 12 Linear Programming 14

The feasible region is OABCDO
Solving (1) and (2) we get the point B- (2020)
Solving (1) and (3) we get the point C- (15,30)
A-(20,0), O-(0,0), D-(0,40)
Given; Z = x + y

Corner pointsValue of Z
OZ = 7.5(0) +5(0) = 0
AZ =150
BZ = 250
CZ =112.5
DZ = 200

Since maximum value of Z occurs at B, the soluion is Z = 250 (20, 20).

Question 6.
In a factory, there are two machines A and B producing toys. They respectively produce 60 and 80 units in one hour. A can run a maximum of 10 hours and B a maximum of 7 hours a day. The cost of their running per hour respectively amounts to 2,000 and 2,500 rupees. The total duration of working these machines cannot exceed 12 hours a day. If the total cost cannot exceed Rs. 25,000 per day and the total daily production is at least 800 units, then formulate the problem mathematically. (March – 2014)
Answer:
Let x be the running time for machine A and y be the running time for machine B.
Since machines cannot work more than 12 hours x + y < 12
Since maximum production of two machines is 800 units.
60x + 80y < 800
Maximum cost of production is 25000, 2000x + 2500y < 25000
0 < x < 10, 0 < y < 7

Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry

Kerala State Board New Syllabus Plus Two Maths Chapter Wise Previous Questions and Answers Chapter 11 Three Dimensional Geometry.

Kerala Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry

Plus Two Maths Three Dimensional Geometry 3 Marks Important Questions

Question 1.
(i)Find the equation of the Plane with intercepts 2, 3, 4 on X, Y, Z axes respectively.)
(ii) Find the distance of the point (- 1, – 2,3) from the Plane \(\bar{r}\)(2i – 3 j + 4k) = 4 (March – 2011)
Answer:
(i) The equation of the plane is \(\frac{x}{2}+\frac{y}{3}+\frac{z}{4}=1\)
(ii) The equation of the plane is 2x – 3y + 4z = 4
Hence the distance \(=\frac{2(-1)-3(-2)+4(3)-4}{\sqrt{4+9+16}}\)
\(=\frac{-2+6+12-4}{\sqrt{4+9+16}}=\frac{12}{\sqrt{29}}\)

Question 2.
Consider the points A(2,2, – 1), B(3,4,2), C(7,0,6)
(i) FindAB.
(ii) Find the Cartesian and vector equation the plane passing through these points. (March – 2011)
Answer:
(i) \(A B=\sqrt{1+4+9}=\sqrt{14}\)
(ii) Cartesian Equation of the plane is
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 1
Vector equation is \(\bar{r}\)(5i + 2j – 3k) = 17

Question 3.
Consider the points A(3, – 4, – 5) and 5(2, – 3,1)
(i) Find the vector and Cartesian equation of the Line passing through the points A and B.
(ii) Find the point where the line crosses the XY Plane. (March – 2012)
Answer:
Let \(\bar{a}\) = 3i – 4j – 5k, b = 2i – 3j + k
(i) Vector Equation is \(\bar{r}\) = \(\bar{a}\) + λ(\(\bar{b}\) – \(\bar{a}\)) \(\bar{r}\) = 3i – 4j – 5k + λ( – i + j + 6k)
Cartesian Equation is \(\frac{x-3}{-1}=\frac{y+4}{1}=\frac{z+5}{6}\)

(ii) Let the point be (x, y, 0)
\(\begin{array}{l}
\Rightarrow \frac{x-3}{-1}=\frac{y+4}{1}=\frac{5}{6} \\
\Rightarrow x=\frac{13}{6}, y=\frac{-19}{6}
\end{array}\)
Then the point on the XY Plane is \(\left(\frac{13}{6}, \frac{-19}{6}, 0\right)\)

Question 4.
(i) Find the Cartesian equation of the plane passing through the point (1, 2, -3) perpendicular to the vector 2i – j + 2k.
(ii) Find the angle between the above \(\frac{x-1}{2}=\frac{y-3}{3}=\frac{z}{6}\) (March – 2012)
Answer:
(i) The equation of the Plane is
2(x – 1) – 1(y, -2) + 2(z+3) = 0
⇒ 2x – 2 – y + 2 + 2z + 6 = 0
⇒ 2x – y + 2z + 6 – 0

(ii) Angle between the line and the Plane is
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 2

Question 5.
(i) Find the angle between the lines having direction ratios 1, 1, 2 and \(\sqrt{3}-1,-\sqrt{3}-1,4\)
(ii) If the lines \(\frac{x-1}{3}=\frac{y-1}{2 \lambda}=\frac{z-3}{2}\) and \(\frac{x-1}{3 \lambda}=\frac{y-1}{1}=\frac{z-6}{-5}\) are perpendicular, find the value of λ. (May – 2012)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 3
(ii) Since they are perpendicular
a1a2 + b1b2 + c1c2 = 0
⇒ 3 x 3λ + 2λ x 1 + 2x – 5 = 0
⇒ 9λ + 2λ – 10 = 0
⇒ 11λ + 10 ⇒ 2 = \(\frac{-10}{11}\)

Question 6.
(i) Find the equation of the Plane passing through the points (3, -1, 2), (5, 2, 4), ( -1, -1, 6)
(ii) Find the perpendicular distance from the point (6, 5, 9) to this plane. (March – 2013)
Answer:
(i) Cartesian Equation of the plane is
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 4
(ii) Perpendicular distance
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 5

Question 7.
Consider the vector equation of the planes r.(2i + j+k) – 3 and r.(i – j – k) = 4
(i) Find the vector equation of any of the plane at the intersection of the above two planes.
(ii) Find the vector equation of the planes through the intersection of the above two planes and the point (1, 2, -1). (May – 2013)
Answer:
(i) 2x + y + z – 3 + λ(x – y – z – 4) = 0
⇒ (2 + λ)x + (1 – λ)y + (1 – λ)z – 3 – 4λ = 0
Vector equation is
\(\bar{r}\).(2 + λ)i + (1 – λ)y + (1 – λ)k – (3 + 4)λ = 0

(ii) Since passing through (1,2, – 1) we have;
⇒ (2 + λ)1 + (1 – λ)2 + (1 – λ)( -1) – 3 – 4λ = 0
⇒ 2 + λ + 2 – 2λ – 1 + 1 – 3 – 4λ = 0
⇒ 0 – 4λ – 0
⇒ λ = 0

\(\bar{r}\).(2i + j + k) = 3 is required plane. Since the point (1, 2, -1) is a point on the first plane.

Question 8.
Consider the planes2x + y – 2z = 5 and 3x – 6y – 2z = 7
(a) Find their normal vectors.
(b) Find the angle between these two planes. (May – 2014)
Answer:
(a) Normal vectors are 2i + i – 2k; 3i – 6j – 2k
(b) Angle =
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 6

Question 9.
(a) If a1, b1, c1 and a2, b2, c2 are the direction ratios of two lines, then write the condition of its perpendicularity.
(b) Find the angle between the lines \(\frac{x+3}{3}=\frac{y-1}{5}=\frac{z+3}{4}\) and \(\frac{x+1}{1}=\frac{y-4}{1}=\frac{z-5}{2}\)
Answer:
(a) a1a2 + b1b2 + c1c2 = 0
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 7

Question 10.
Find the shortest distance between the lines \(\bar{r}\) = i + j + λ(2i – j + k) and \(\bar{r}\) = 2i + j – k + µ(3i – 5 j + 2k) (March – 2016)
Answer:
From the given lines we have;
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 8

Question 11.
(i) The equation of the line which passes through the point(1,2,3) and parallels to the vector 3i + 2j – 2k is
(a) \(\bar{r}\) = 3i + 2j – 2k + λ(/ + 2j + 3k)
(b) \(\bar{r}\) = 2i – 5k + λ(3/ + 2j – 2k)
(c) \(\bar{r}\) = i + 2j + 3k + λ(-2i + 4j – 2k)
(d) \(\bar{r}\) = i + 2j + 3k + λ(3i + 2j – 2k)
(ii) Find the angle between the pair lines
\(\bar{r}\) = 2i – 5j + k + λ(3i + 2j + 6k) and \(\bar{r}\) = li – 6k + µ(i + 2j + 2k) (May – 2016)
Answer:
(i) (d) \(\bar{r}\) = i + 2j + 3k + λ(3i + 2j – 2k)
(ii) \(\bar{a}\) = 3i + 2j + 6k; \(\bar{b}\) = i + 2j + 2k
\(\cos \theta=\frac{\bar{a} \cdot \bar{b}}{|\bar{a} \| \bar{b}|}=\frac{19}{7 \times 3}=\frac{19}{21}\)

Plus Two Maths Three Dimensional Geometry 4 Marks Important Questions

Question 1.
Consider the lines \(\frac{x-3}{2}=\frac{y-1}{5}=\frac{z+3}{4}\) and \(\frac{x+5}{1}=\frac{y+2}{1}=\frac{z-3}{2}\)
(i) Find the angle between them.
(ii) Find the shortest distance between them. (March – 2011)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 9

Question 2.
(i) Find the vector equation of the Plane Passing through the intersection of the Planes \(\bar{r}\).(i + j + k) = 6 and \(\bar{r}\)(2i + 3j + 4k) = – 5 and through the point (1, 1, 1).
(ii) Express the vector equation \(\bar{r}\).(5i + 3j + 4k) = 0 of a Plane in Cartesian form and hence find its perpendicular distance from the origin. (May – 2011)
Answer:
(i) The Cartesian equation of the given planes are x + y + z – 6 = 0 and 2x + 3 – y + 4z + 5 = 0
The family of such planes is x + y + z – 6 + λ(2x + 3y+ 4z + 5) = 0  …..(1)
Since it passes through (1, 1, 1)
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 10
Vector Equation is \(\bar{r}\).(20i + 23j + 26k) = 69

(ii) Cartesian Equation is ⇒ 5x + 3y + 4z = 0 Perpendicular distance from origin is
\(=\left|\frac{5 \times 0+3 \times 0+4 \times 0}{\sqrt{25+9+16}}\right|=0\)

Question 3.
Given the Plane 5x – 2y + 4z – 9 = 0
(i) Find the foot of the perpendicular drawn from the origin to the Plane.
(ii) Write the vector and Cartesian equation of this perpendicular. (May – 2011)
Answer:
(i) The equation of the perpendicular line to the given plane 5x – 2y + 4z – 9 = 0 and passing through the origin is
\(\begin{array}{l}
\frac{x-0}{5}=\frac{y-0}{-2}=\frac{z-0}{4}=\lambda \\
\Rightarrow \frac{x}{5}=\frac{y}{-2}=\frac{z}{4}=\lambda
\end{array}\)
Hence any point on this line is (5λ, – 2λ, 4λ). Let this point be on the given plane then
⇒ 5(5λ) – 2( – 2λ) + 4(4λ) – 9 = 0
⇒ λ = 1/5
Then the foot of the perpendicular is
\(\left(5 \times \frac{1}{5},-2 \times \frac{1}{5}, 4 \times \frac{1}{5}\right) \Rightarrow\left(1,-\frac{2}{5}, \frac{4}{5}\right)\)
Since the line is perpendicular to the Plane and passes through the point \(\left(1,-\frac{2}{5}, \frac{4}{5}\right)\)
The Cartesian equation is \(\frac{x}{5}=\frac{y}{-2}=\frac{z}{4}\)
The Vector equation is \(\bar{r}\) = \(\bar{0}\) + λ(5i – 2j + 4k)

Question 4.
(i) The foot of the perpendicular from the origin to a Plane is P(4, – 2,5). Write \(\overline{O P}\)
(ii) Find the equation of the Plane in vector and Cartesian form. (May – 2012)
Answer:
(i) \(\overline{O P}\) = 4i – 2j + 5k
(ii) Then is perpendicular unit vector to the required plane is \(\frac{\overline{O P}}{\overline{O P} \mid}=\frac{4 i-2 j+5 k}{\sqrt{16+4+25}}=\frac{4 i-2 j+5 k}{\sqrt{45}}\)

The perpendicular distance from the origin is \(\sqrt{16+4+25}=\sqrt{45}\)
Vector equation of the Plane can be written as
\(\begin{array}{l}
\vec{r} \cdot \bar{m}=d \Rightarrow \bar{r} \cdot \frac{4 i-2 j+5 k}{\sqrt{45}}=\sqrt{45} \\
\Rightarrow \bar{r} .4 i-2 j+5 k=45
\end{array}\)
Cartesian from is 4x – 2y + 5z = 45

Question 5.
Consider the lines \(\frac{x-3}{3}=\frac{y-8}{-1}=\frac{z-3}{1}\) and \(\frac{x+3}{3}=\frac{y+7}{2}=\frac{z-6}{4}\)
(i) Express the equation to the lines into vector form.
(ii) Find the shortest distance between the lines. (March – 2013)
Answer:
(i) The vector equation;
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 11

Question 6.
Consider the Cartesian equation of a line
\(\frac{x-3}{2}=\frac{y+1}{3}=\frac{z-5}{-2}\)
(i) Find its vector equation.
(ii) Find the intersecting point with the plane 5x + 2y – 6z – 7 = 0 (May – 2013)
Answer:
(i) Vector equation of the line is
\(\bar{r}\) = (3i – 1j + 5k) + λ(2i + 3j – 2k)

(ii) Any point on the line is of the form
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 12

Question 7.
The foot of the perpendicular drawn from origin to a Plane is (4, -2, 5).
(i) How far is the plane from the origin?
(ii) Find a unit vector perpendicular to that Plane.
(iii) Obtain the equation of the Plane in a general form. (March – 2014)
Answer:
(i) \(\overline{O P}\) = 4i – 2j + 5k
(ii) Then is perpendicular unit vector to the required plane is \(\frac{\overline{O P}}{\overline{O P} \mid}=\frac{4 i-2 j+5 k}{\sqrt{16+4+25}}=\frac{4 i-2 j+5 k}{\sqrt{45}}\)

The perpendicular distance from the origin is \(\sqrt{16+4+25}=\sqrt{45}\)
Vector equation of the Plane can be written as
\(\begin{array}{l}
\vec{r} \cdot \bar{m}=d \Rightarrow \bar{r} \cdot \frac{4 i-2 j+5 k}{\sqrt{45}}=\sqrt{45} \\
\Rightarrow \bar{r} .4 i-2 j+5 k=45
\end{array}\)
Cartesian from is 4x – 2y + 5z = 45

Question 8.
(a) Equation of the plane with intercepts 2, 3, 4 on the x, y, z-axis respectively is
(i) 2x + 3y + 4z = 1
(ii) 2x + 3y + 4z = 12
(iii) 6x + 4y + 3z = 1
(iv) 6x + 4y + 3z = 12

(b) Find the Cartesian equation of the plane passing through the points A(2, 5, -3), B(-2, -3, 5), and C(5, 3, -3). (March – 2016)
Answer:
(a) (iv) 6x + 4y + 3z = 12
(b) Equation of the plane is
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 13

Question 9.
(i) The distance of the plane from the point(1, 1, 1)is
(a) 4 units
(b) \(\frac{1}{\sqrt{3}}\) units
(c) \(\frac{4}{\sqrt{3}}\) units
(d) \(\frac{1}{4 \sqrt{3}}\) units

(ii) Find the equation of the plane passing through (1, 0. -2) and perpendicular to each of the planes 2x + y – z = 2 and x – y – z = 3 (May – 2016)
Answer:
(i) (c) \(\frac{4}{\sqrt{3}}\) units
(ii) Equation of the plane passing through (1, 0, -2) is a(x – 1) + b(y – 0) + c(z + 2) = 0……………..(1)
Plane (1) is perpendicular to the given planes
2a + b – c = 0 ……………..(2)
a – b – c = 0 ……………..(3)
Solving (2) and (3) we get;
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 14

Question 10.
(i) The linesx – l = y = z is perpendicular to the line
\(\begin{array}{l}
\text { (a) } \frac{x-2}{1}=\frac{y-1}{2}=\frac{z}{-3} \\
\text { (b) } x-2=y-2=z \\
\text { (c) } \frac{x-2}{1}=\frac{y-1}{2}=\frac{z}{3} \\
\text { (d) } x=y=\frac{z}{2}
\end{array}\)

(ii) Find the shortest distance between the lines \(\bar{r}\) = i + 2j + 3k + λ(i + j + k) and \(\bar{r}\) – i + j + k + µ(i + j + k) (March – 2017)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 15

Plus Two Maths Three Dimensional Geometry 6 Marks Important Questions

Question 1.
(i) Find the shortest distance between the line \(\frac{x+1}{7}=\frac{y+1}{-6}=\frac{z+1}{1}\) and \(\frac{x-3}{1}=\frac{y-5}{-2}=\frac{z-7}{1}\)
(ii) Find the equation of the Plane passing through one point(-1, 3, 2) and ± r to the planes x + 2y + 3z = 5 and 3x + 3y + z = 0 (March – 2010)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 16
(ii) Let the equation of the plane be ax + by + cz + d = 0….(1)
Since (1) is perpendicular to 3x + 2y + 3z = 5, a + 2b + 3c = 0
Since (1) is perpendicular to 3x + 3y + z = 0
3a + 3b + c = 0
Using (2) and (3) we have;
\(\frac{a}{2-9}=\frac{-b}{1-9}=\frac{c}{3-6} \Rightarrow \frac{a}{-7}=\frac{b}{8}=\frac{c}{-3}\)
(1) = -7x + 8y – 3z + d = 0
Since (1) passes through (-1, 3, 2) we have;
⇒ -7 (-1) + 8(3) – 3(2) + d = 0
⇒ 7 + 24 – 6 + d = 0 = d = -25
Therefore the equation of the plane is
(1) ⇒ -7x + 8y – 3z – 25 = 0

Question 2.
(i) (a) A line makes equal angles with the coordinate axis. Find the direction cosines.
(b) Find the equation of the Plane Passing through (1, 1, -1),(2, 3, 5) an (1, 4, -5)
(ii) Find p and q, if the plane x + py + qz = 0 is perpendicular to the plane 3x + 2y + z = 0 and the line \(\frac{x-3}{2}=\frac{y-2}{3}=\frac{z-1}{1}\) (March – 2010)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 17
(ii) Since the Plane x + py + qz = 0 is perpendicular to the Line \(\frac{x-3}{2}=\frac{y-2}{3}=\frac{z-1}{1}\) we have their direction ratios proportional. Plane dr’s is 1, p, q and dr’s of Line is 2, 3, 1.
\(\Rightarrow \frac{1}{2}=\frac{p}{3}=\frac{q}{1} \Rightarrow p=\frac{3}{2}, q=\frac{1}{2}\)

Question 3.
Given the straight lines
\(\bar{r}[latex] = 3i + 2j – 4k + 2(i + 2j + 2k) and [latex]\bar{r}[latex] = 5i – 2k + µ(3i + 2j + 6k)
(i) Find the angle between the lines.
(ii) Obtain the unit vector perpendicular to both the lines.
(iii) From the equation of the line perpendicular to the given lines and passing through the point (1, 1, 1). (March – 2014)
Answer:
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 18
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 19

Question 4.
(a) Write the Cartesian equation of the straight line through the points (1, 2, 3) and along the vector 3i + j +2k
(b) Write a general point on this straight line.
(c) Find the point of intersection of this straight line with the plane 2x + 3y – z + 2 = 0
(d) Find the distance from (1, 2, 3) to the plane 2x + 3y – z + 2 = 0 (March – 2015)
Answer:
(a) Cartesian equation is [latex]\frac{x-x_{1}}{a}=\frac{y-y_{1}}{b}=\frac{z-z_{1}}{c}\), \(\frac{x-1}{3}=\frac{y-2}{1}=\frac{z-3}{2}\)

(b) Let \(\frac{x-1}{3}=\frac{y-2}{1}=\frac{z-3}{2}=\lambda\)
x = 3λ + 1, y = λ + 2, z = 2λ + 3 are the general point of the line.

(c) Equation of the plane is 2x + 3y – z + 20….(1)
putting the values of x, y, z in (1) is
2(3λ + 1) – 3(λ + 2) – (2λ + 3) + 2 = 0
7λ + 7 = 0 ⇒ λ = -1
∴ Point of intersection is x = -3 + 1 = -2; y= -1 + 2 = 1, z= -2 + 3 = 1
ie; (-2, 1, 1)

(d) Distance = \(\frac{2(1)+3(2)-3+2}{\sqrt{4+9+1}}=\frac{7}{\sqrt{14}}\)

Question 5.
Consider a plane passing through the point (5, 2, -4) and perpendicular to the line
\(\bar{r}\) = (i + j) + λ(2i + 3j – k)
(a) Write the equation in cartesian form.
(b) Find its distance from the point (1, 2, -1).
(c) Find the angle made by it with line \(\frac{x-1}{2}=\frac{y-2}{1}=\frac{z-3}{-2}\) (May – 2015)
Answer:
(a) The equation of a plane passing through the point (5, 2, 4) and perpendicular direction ratios 2, 3, -1 is
Plus Two Maths Chapter Wise Previous Questions Chapter 11 Three Dimensional Geometry 20

Plus Two Computer Science Previous Year Question Paper Say 2018

Kerala State Board New Syllabus Plus Two Computer Science Previous Year Question Papers and Answers.

Kerala Plus Two Computer Science Previous Year Question Paper Say 2018 with Answers

BoardSCERT
ClassPlus Two
SubjectComputer Science
CategoryPlus Two Previous Year Question Papers

Time: 2 Hours
Cool off time: 15 Minutes

General Instructions to candidates

  • There is a ‘cool off-time’ of 15 minutes in addition to the writing time of 2 hrs.
  • You are not allowed to write your answers nor to discuss anything with others during the ‘cool off time’.
  • Use the ‘cool off time’ to get familiar with the questions and to plan your answers.
  • Read questions carefully before you answering.
  • All questions are compulsory and the only internal choice is allowed.
  • When you select a question, all the sub-questions must be answered from the same question itself.
  • Calculations, figures, and graphs should be shown in the answer sheet itself.
  • Malayalam version of the questions is also provided.
  • Give equations wherever necessary.
  • Electronic devices except non-programmable calculators are not allowed in the Examination Hall.

Part – A

Answer all questions from 1 to 5. Each carries 1 score. (5 × 1 = 5)

Question 1.
The ability of data to be processed in more than one form is called ________
Answer:
polymorphism

Question 2.
Each node in a linked list has a ________ to the next node.
Answer:
pointer

Question 3.
NORESIZE is an attribute of ________ tag.
Answer:
<frame>

Question 4.
In client-side scripting, processing is done by ________
Answer:
browser

Question 5.
VPS stands for ________
Answer:
Virtual Private Server

Answer any 9 questions from 6 to 16. Each carries 2 scores. (9 × 2 = 18)

Question 6.
What is the self-referential structure?
Answer:
Self Referential Structures: A structure contains an element that is a pointer to the same structure.
Eg:
struct date
{
int dd, mm, yyyy;
date *ptr;
};

Question 7.
What is the difference between the two declaration statements given below:
(a) int*ptr= new int(10);
(b) int*ptr = new int[10];
Answer:
(a) Dynamic initialization with value 10.
(b) Dynamic array of size 10.

Question 8.
Differentiate static and dynamic data structures. Give an example for each.
Answer:
The main memory can be allocated in two methods.
i) Static memory allocation
ii) Dynamic memory allocation
When the amount of memory to be allocated is known in advance and memory is allocated during compilation itself, it is referred to as static memory allocation.
int x=10;

When the amount of memory to be allocated is not known in advance and it is required to allocate memory as and when required during run time, it is known as dynamic memory allocation.
‘new’ operator is used for dynamic allocation of memory syntax.
datatype *pointer variable = new datatype;
eg: int *ptr=new int;

Question 9.
Categorize the following tags in HTM L appropriately.
<br>, <hl>, <img>, <table>
Answer:

Empty tagcontainer tag
<br><h1>
<img><table>

Question 10.
Explain any two data types in JavaScript.
Answer:
Data types in JavaScript
Unlike C++ it uses only three basic data types
1. Number: Any number (whole or fractional) with or without a sign.
Eg: +1977, -38.0003, -100, 3.14157, etc.
2. String: It is a combination of characters enclosed within double-quotes.
Eg: “BVM”, “[email protected]”, etc.
3. Boolean: We can store either true or false. It is case sensitive. That means can’t use TRUE OR FALSE.

Question 11.
Write the JavaScript code to display “Welcome to Kerala” inside the <hl>, tag as shown in the HTML page.
<HTML>
<Body>
<Script lang= “javascript”>
<hl> …………. </hl>
</Body>
</Script>
</HTML>
Answer:
document.write(“Welcome to Kerala”);

Question 12.
Explain any two components of DBMS.
Answer:
Components of DBMS

  • Databases – It is the main component.
  • Data Definition Language (DDL) – It is used to define the structure of a table.
  • Data Manipulation Language (DML) – It is used to add, retrieve, modify and delete records in a database.
  • Users – With the help of programs users interact with the DBMS.

Question 13.
Consider the following table:

S.No.NameAgeTotal
1.Albert5090
2.Einstein6095
3.Kalam7094
4.Raman9098
5.Babbage9599

(a) Identify the degree and cardinality of the given table.
(b) Identify a suitable primary key for the given table.
Answer:
(a) Degree 4
Cardinality 5
(b) SI. No is the primary key

Question 14.
Write the output of the following PHP code fragment.
function justA fun ($num)
{
$num = $num * 5 + ($num + 6);
return $num;
}
echo justA fun(100);
Answer:
5*100 + (100 + 6)
= 500 + 106
= 106
Hence the output is 606

Question 15.
Compare serial and parallel computing.
Answer:

Serial computingParallel computing
A single processor is usedMultiple processors are used with shared memory
A problem is divided into a series of instructionsA problem is divided into smaller ones that can be solved simultaneously
Instructions executed sequentiallyInstructions executed simultaneously
One instruction is executed on a single processor at any momentMore than one instruction is executed on multiple processors at any moment in time.

Question 16.
How does ICT help students in learning?
Answer:
Advantages of E-Learning:

  • It can offer various courses to a large number of students from distant locations.
  • It saves journey time and money, instructor fees, etc.
  • People can enjoy e-Learning at a lower cost.
  • It enables people to do courses conducted by national or international institutions.

Answer any 9 questions from 17 to 27. Each carries 3 scores. (9 × 3 = 27)

Question 17.
What is a Pointer in C++? Declare a pointer and initialize with the name of your country.
Answer:
Pointer is a variable which points to memory location of some other variable
Syntax:
data_type ‘variable;
#include<iostream>
using namespace std;
intmain()
{
char*ptr=newchar[10]; .
ptr=”India”;
cout<<ptr;
delete ptr;
}

Question 18.
What is Procedural Oriented Programming? What are the disadvantages of Procedural Oriented Programming?
Answer:
A program in procedural language consists of a list of instructions.
Following are the disadvantages of procedural language:
a) Data is undervalued: Here the importance is on doing things rather than the data. The data has the least importance. That is, data is exposed to all and there is a chance to access or destroy this data accidentally or intentionally by many functions on a program.

b) Adding new data requires modifications to all/many functions: A program may contain many functions and these functions may access different data used in different locations. If we add new data items, we will need to modify all the functions that access the data. This is a laborious task.

c) Creating new data types is difficult: In procedural languages, some built-in data types such as int, float, double, and character are available. Extensibility is the ability to create new data types without major rewriting of codes in its basic architecture. Some programming languages are extensible but procedural languages are not extensible.

d) Provides poor real-world modeling: Procedural programming paradigm treats data and functions are different not a single unit. In this Real-life simulations are not possible.

Question 19.
Write an algorithm to add a new item into a queue.
Answer:
An algorithm is given below
Step 1: If front = 1 and rear=N or front=rear + 1
Then print “OVERFLOW” and return
Step 2: If front = Null then
Set front = 1 and rear =1
Else if rear = N then set rear = 1
Else
Set rear = rear +1
End if
Step 3: Set Queue[rear]=item
Step 4: stop

Question 20.
List and explain any three attributes of the INPUT tag in HTML.
Answer:
<Input> It is used to create input controls. Its type of attribute determines the control type.
The main values of type attributes are given below.

  1. Text-To creates a text box.
  2. Password – To create a password text box.
  3. Checkbox – To create a check box.
  4. Radio – To create a radio button.
  5. Reset – To create a Reset button.
  6. Submit – To create a submit button.
  7. Button – To create a button

Question 21.
Consider a string “Gandhiji” Write JavaScript code fragment to do the following tasks:
(a) Convert the string to upper case.
(b) Find the length of the string.
(c) Display the 3rd letter in the string.
Answer:
(a) var x=”Gandhiji”;
alert(x.toUpperCase());

(b) var x=”Gandhiji”;
alert(“The number of characters is “+ x.length);

(c) var x=”Gandhiji”;
alert(x.charAt(2));

Question 22.
What is an FTP client software? Differentiate FTP and SFTP.
Answer:
FTP (File Transfer Protocol) client software:
When a client requests a website by entering the website address. Then FTP client software helps to establish a connection between the client computer and the remote server computer. Unauthorised access is denied by using username and password hence secure our website files for that SSH (Secure Shell) FTP simply SFTP is used. Instead of http.//, it uses ftp.//:

By using FTP client s/w we can transfer(upload)the files from our computer to the web server by using the ‘drag and drop’ method. The popular FTP client software are FileZilla, CuteFTP, SmartFTP, etc.

Question 23.
List and explain different database users in DBMS.
Answer:
Users of Database

  • Database Administrator – It is a person who has central control over the DBMS.
  • Application Programmer – These are computer professionals who interact with the DBMS through programs.
  • Naive users – He is an end-user. He does not know the details of DBMS.

Question 24.
Differentiate DELETE and DROP in SQL. Write the syntax of DELETE and DROP.
Answer:

DeleteDrop
It is a DML commandIt is a DDL command
Used to delete rows in a TABLEUsed to delete the whole TABLE
Here Table exists and we can insert rowsBut here Table does not exist, so not possible to insert rows

Syntax:
Delete from <Table Name> where condition;
DropTable <Table Name>;

Question 25.
Name the different types of arrays in PHP. Explain with an example.
Answer:
Arrays in PHP: In PHP array is a collection of key and value pairs. Unlike C++, in PHP we can use either nonnegative integers or strings as keys.
Different types of arrays in PHP
Indexed arrays
Associate arrays
Multidimensional arrays.

Indexed arrays: The elements in an array can be distinguished as first or second or third etc. by the indices and the index of the first element is zero. In PHP the function array() is used to creating an array.
Syntax: $array_name=array(value1, value2, …….);
OR
$array_variable[key]=value;
Eg:$mark=array(60, 70, 80);
$course=array(“Science”, “Commerce”, “Humanities”);

Associative arrays: Arrays with named keys and string indices are called associative arrays.
Syntax:
$varibale_name=array(key1=>value1, key2=>value2,etc);
Eg:
$course=array (“Computer Science”=>”05”, “Commerce”=>”39”, “Science”=>”01”);

Question 26.
Discuss any three information security laws for protecting information shared over cyberspace.
Answer:
Guidelines for using computers over the internet

  • Emails may contain Viruses so do not open any unwanted emails.
  • Download files from reputed sources (sites).
  • Avoid clicking on pop-up Advt.
  • Most of the Viruses spread due to the use of USB drives so use cautiously.
  • Use a firewall on your computer
  • Use anti-virus and update regularly
  • Use spam blocking software
  • Take backups in regular time intervals
  • Use strong passwords, i.e a mixture of characters (a-z & A-Z), numbers, and special characters.
  • Do not use bad or rude language in social media and emails.
  • Untick ‘Remember Me’ before login.

Question 27.
Briefly explain any three applications of computational intelligence.
Answer:
Computational Intelligence is the ability to make a computer to face and solve real-life problems just like an intelligent man do it. It includes Artificial Neural Networks (ANN), Evolutionary Computation (EC), Swarm Intelligence (SI), and Fuzzy Systems (FS).

A) Artificial Neural Networks (ANN): The brain is a complex, nonlinear and parallel computer with the ability to perform tasks such as recognise the pattern, perception, and motor control. ANN is the method of simulate biological neural systems to learn, memorise, and generalize like human beings. A human brain cortex consists of 10-500 billion neurons with 60 trillion synapses(a synapse is a structure that permits a neuron to pass electrical).

B) Evolutionary Computation (EC): It is the simulation of the natural evolution, i.e. survival of the fittest. In the surrounding, we can see that the stronger must win and others will lose. EC applied for data mining, fault diagnosis, classification, scheduling, etc.

C) Swarm Intelligence (SI): Swarm Intelligence is the study of behaviour of colonies or groups of social animals, birds, insects, ants, etc. How they communicate and create and manage their own colonies beautifully.

D) Fuzzy Systems: Human beings use common sense while facing a problem, just like human beings fuzzy systems can also use common sense and behave like a human being. Fuzzy systems is used to control gear transmission and raking systems, control lifts, home appliances, controlling traffic signals, etc.

Answer any 2 questions from 28 to 30. Each carries 5 scores. (2 × 5 = 10)

Question 28.
(a) Name and explain any two attributes of the FORM tag. (2)
(b) Check the given HTML code. Fill the missing code to generate an output as shown in the figure. (3)
<HTML>
<body>
<form name= ‘loginForm’>
username:
<input type = “text”>
password:
………………………………
<input type = “………… ” value = “Login”>
………………………………
</form>
</body>
</html>
Answer:
a) <Form> attributes
1. Action – Here we give the name of the program (including the path) stored in the Webserver.
2. Method – There are 2 types of methods get and post.
3. Target – Specifies the target window for displaying the result. Values are given below.
_blank – Opens in a new window
_self – Opens in the same frame
_parent – Opens in the parent frameset
_top – Opens in the main browser window
name – Opens in the window with the specified name.

b) <inputtype=”password”>
<inputtype=”submit”>
<inputtype=”reset”>

Question 29.
(a) What are scripts in web programming? (2)
(b) Differentiate Client-side Scripting and Server-side Scripting. (3)
Answer:
a) Scripts are small programs embedded in the HTML pages, to write scripts <SCRIPT> tag is used.
Two types of scripts
1. Client scripts: These are scripts executed by the browser(client) hence reduces network traffic and workload on the server.
2. Server scripts: These are scripts executed by the server and the results as a webpage returned to the client browser.

b)

Client-Side ScriptingServer Side Scripting
Script is copied to the client browserScript is copied to the webserver
Executed by the clientExecuted by the server and result gets back to the browser window
Used for Client level validationConnect to the database in the server
It is possible to block by the userCannot possible
Client-side scripts depend on the type and version of the browserIt does not depend on the type and version of the browser

Question 30.
Write SQL queries based on the table PRODUCT given below:

PIDNameProductPrice
P1LukraSeafood4000
P5Exotic LiquidsMineral water7000
K1Tokyo TradersSoft drink5000
R3ChangIron8000
W5Tokyo TradersSoft drink3000
  1. Set PID as a primary key.
  2. Display the Name, Price of the product having the highest price.
  3. Change the Name of Supplier ‘Exotic Liquids’ to ‘Singapore Foods.’
  4. Delete all products of supplier ‘Tokyo Traders’.
  5. Display Pname and Supplier of all products in the ascending order of price.

Answer:
create table student(name varchar(20) primarykey, roll no int, marks int);

  1. Create table PRODUCT (PID varchar(2) primarykey, Name varchar(20), Product varchar(20), Price dec(8, 2));
  2. Select Name, Price from PRODUCT where Price=(Select max(Price) from PRODUCT);
  3. Update PRODUCT set Name=”Singapore Foods” where Name=”Exotic Liquids”;
  4. Delete from PRODUCT where-Name=”Tokyo Traders”;
  5. Select Name, Product from PRODUCT order by Price asc;