Thursday 25 June 2020

35- Web Designing Question - 15




34- Web Designing Question - 14




















Here we pass the paramenter as Pass By Reference so the value of number changed by the Sub Procedure DoubleAndSquare also change in the caller procedure btnDisplay_Click()

 

the value of number assigned to myVar variable in after calling

So

myVar = 3 + 3

myVar = 6

 

Then

myVar = 6*6

myVar = 36

 

So now number became 36

 

now function CStr() convert the number into string so in txtBox it will store 36

 

So the final Answer is 36


33- Web Designing Question - 13


    













 









 

This is a Visual Basic Program

When we call Rotate("SPSHARMAG")

 

Here Substring(1) return the substring from 2nd char to last char and Substring(0,1) return the first char.

 

So

 

First call

result = var.Substring(1) & var.Substring(0,1)

 

result = PSHARMAG  & S

result  = PSHARMAGS

 

2nd Call

 

result = Rotate(result & word)

 

result = Rotate(PSHARMAG & SPSHARMAG)

result = Rotate(PSHARMAGSPSHARMAG)

result = var.Substring(1) & var.Substring(0,1)

result = SHARMAGPSHARMAG & P

result = SHARMAGPSHARMAGP

 

3rd Call

 

result = Rotate(result)

result = Rotate(SHARMAGPSHARMAGP)

result = var.Substring(1) & var.Substring(0,1)

result = HARMAGPSHARMAGP & S

result = HARMAGPSHARMAGPS

 

So Final answer will be HARMAGPSHARMAGPS


32- Web Designing Question - 12


var a = 10; 

 if(a == a++)   

document.write(a);

(A)    Error

(B)    Nothing is printed

(C)    10

(D)   11



 

if(10==10++)

Here a++ is the postfix operator so in if statement is will be 10 so condition is true and value of a became 11 after if so the final output is 11

 

Option (D) 11 is correct 

31- Web Designing Question - 11


document.write("1 plus 1 is " + 1 + 1);

(A) 1 plus 1 is 2

(B) 1 plus 1 is 11

(C)  1 plus 1 is 1 + 1

(D) 2


The correct answer is 1 plus 1 is 11

+ is the concatenation operator. In Java Script String + Number converted into String

So “1 plus 1 is “+ 1= “1 plus 1 is 1”

 “1 plus 1 is 1”+1=”1 plus 1 is 11”


30- Web Designing Question - 10


If we want to show an Arrow as cursor, then which value we will use?

(A) Arrow

(B) Default

(C)  Pointer

(D) Arr


Option B is the correct answer:

·        The default value is used to show an Arrow as a cursor.

·        The cursor is used to change the mouse cursor on specific elements like in especially which is useful in web apps or web pages where we need to perform different task like clicking or other activity

·        Some of the available cursors are as follows:

·        General Cursors: "auto", "default", "none".

·        Link Cursor: "pointer".

·        Scroll Cursor: "all-scroll".

·        Status Cursors: "context-menu", "help", "wait", "progress".

·        Selection Cursors: "crosshair", "cell", "text", "vertical-text".

·        Drag & Drop Cursors: "alias", "copy", "move", "no-drop", "not-allowed".

·        Zoom Cursors: "zoom-in", "zoom-out".

·        Grab Cursors: "grab", "grabbing".

·        Resizing Cursors: "n-resize", "e-resize", "ne-resize", "nw-resize", "s-resize", "se-resize","sw-resize",so on..

The general syntax for the cursor declaration is as follows:

cursor: value;

Let us consider an example for default valued cursor:

<span style="cursor: default"> Default</span>

 Now let us consider an example for customized cursor:

<span style="cursor: pointer"> Pointer </span>

 

Wednesday 24 June 2020

LESSON - 8.1 THE ARTICLES PART - 01

LESSON NO. 8.1

THE ARTICLES.

Indians make maximum mistakes in the use of "the articles" because we do not have "the articles" in our vernacular languages. That is the main reasons why the first chapter of G.C.Whitworth's startling and enchanting book is on "The Articles. Mr. Whitworth came to India in the early 1920s. He studied Sanskrit, Hindi, Marathi, Gujarati, etc. for many years. Thereafter, this erudite, exemplary, noteworthy, and seasoned scholar of English wrote one of the best ever books in English grammar and usage. The name of this trailblazing and exceptional book is INDIAN ENGLISH. It was published in Lahore in 1932.

I have taken extensive help from this book for highlighting various elements of the use of  "the articles." Three rules enunciated by him should be read, reread, and reread till they become a part of your memory. Apply these rules in finding errors of "the articles" in sentences. 

The last exercise here is from the actual questions of SSC and BANKING exams. Do revise all the previous lessons for getting the grasp of these questions from SSC and Banking exams. That is absolutely indispensable. Every lesson is a bead in a garland. We cannot ignore or abandon any bead. Now, having become conversant with the salient features of Parts of Speech, the process of solving the questions starts with this blog. 

 

The Articles

 

PART I

 FORM: 

There are three articles in English. These are ‘a’, ‘an’, and ‘the’. They are used before nouns for making their sense absolutely clear to the reader or the listener.

The Articles are a sub-class of adjectives; they qualify a noun (a tree), or a noun that is preceded by an adjective (a tall tree).

The words used as ‘the articles’ in English are. A, An, The.

The aforesaid articles qualify the nouns that follow them.

CLASSIFICATION:

i.     Definite:  There is one the definite article:  the

Examples:  The sun, the earth, the best boy, the Indian Express

ii.     Indefinite:  There are two indefinite articles:  a and an

Examples:  A boy, a box, a tree, a school, an apple, an elephant.

FUNCTIONS:

I.              Rule No. 1. No article is put before a noun which is used in an abstract or general sense.

1.    Experience matters.

2.    Entertainment is important for every child.

II.              Rule No. 2. The definite article is put before a noun, which is a particular thing, or alone of its kind, or is separated by definition from other similar things.

1.    Where is the pen that I gave you? (a particular pen)

2.    The best boy has come. (The superlative degree makes a thing alone of its kind.)

3.    The boys of this school are disciplined. (A thing becomes separated and particular when we define it.)

III.              Rule No. 3. The indefinite article is put before a noun that indicates something which is individual but not selected or distinguished from other things of the same kind.

1.      I need a pen.               

2.      A tree fell down.

The use of the indefinite articles, namely ‘a’ and ‘an’ : 

I.          Use of ‘a’:

i.     The letter ‘a’ is used before words beginning with consonant sounds.

A bat, A woman, A holiday, A tree, A year.

ii.      ‘A’ is used also with consonantal ‘U’.

E.g. A union, Au-turn, A European, A eucalyptus, A utopian dream, A unit. (There is some friction in the throat in the pronunciation of these words, and they become consonantal here. Otherwise, there is no friction when we pronounce words beginning with vowels or with ‘u’ vowels. An umbrella. An understanding .An undertaking)

 Note:  In A one Rupee coin, the sound of ‘one’ is not of a vowel, but of a consonant. (vaa)

iii.     ‘a’ is also used before the words beginning with stressed and aspirated ‘h’ :

A historic victory; a historic moment; a histrionic act.

II.          The use of ‘an’:

i.          The word ‘an’ is used before words beginning with vowel sounds.

E.g. An apple, an elephant, an Indian, an office, an umbrella

ii.          ‘An’ is used before the words beginning with silent ‘h’.

E.g. An hour, An honour, An honest man,

The use of A/An depends on the sound of the letter/letters at the beginning of the next word and not the spelling of it.

An M.A, An M. Com, An E U resolution, An S.O.S.

N.B.: IN A PLURAL SENSE, AN ADJECTIVE MAYBE USED AS A NOUN TO DENOTE A WHOLE CLASS OF LIVING BEINGS, AND IS PRECEDED BY ‘THE’

EXAMPLES:

That country is  a heaven for the rich, a purgatory for the able,  and a hell for the poor.

The absent are guilty.

The sick and the wounded have been admitted to the hospital.

 

Exercise 3.1

Use ‘A’ or ‘An’ in the following: -

1.      ___________         uncle.
2.      __________           university.
3.      __________           union.
4.      __________           umpire.
5.      __________           young boy.
6.      __________           uniform policy.
7.      __________           UN order.
8.      __________           eyewitness.
9.      __________           up-to-date method.
10.  __________           unit.
11.  __________           usurer.
12.  _______­­­­­­____         usurper.

LESSON-7.3 PARTS OF SPEECH EXERCISE

Exercise No. 9

 

Read each sentence, and then decide the part of speech of each bold word:

Example: After every five years, we vote in our parliamentary elections.

a)      Noun

b)      Adjective

c)       Verb

Ans. = c.

1.       During storms this heavy door rocks back and forth.

a)      Adjective

b)      Noun

c)       Verb

Ans. =

2.       This wall is made of rocks.

a)      Adverb 

b)      noun  

c)       verb      

 Ans.=

3.       Every morning my father rocks in this chair.

a)      Adjective                

b)      adverb         

c)       verb             

Ans.=

4.       Chandigarh is famous for a rock garden.

a)      Noun 

b)      pronoun

c)       Adjective.

 Ans. =

5.       You must limit the amount of tea that you consume.

a)      Noun                      

b)      adjective    

c)       verb            

 Ans. =

6.       My credit limit is Rs.50,000/-

a)      Noun  

b)      adjective    

c)       verb            

 Ans. =

7.       He is left with limited money.

a)      Verb                      

b)      adverb        

c)       adjective      

Ans. =

8.       These feathers are so light that they seem to float.

a)      Adverb                  

b)      noun            

c)       adjectives    

Ans. =

9.       Please turn on the light.

a)      Pronoun                 

b)      adjective     

c)       noun   

   Ans. =

10.   He lit a cigarette only after your departure.

a)      Noun        

b)      adjective    

c)       verb  

Ans. =

11.   My daughter is the light of my life.

a)      Adjective               

b)      pronoun      

c)       noun         

 Ans. =

 

 

 

Exercise No. 10

 

Identifying the parts of speech:

Use the following codes, and identify the part of speech of each word in the following sentences: 

The code number to be given to each part of speech is mentioned. Follow this pattern for writing the answers of the next exercise.

Noun=1       Pronoun=2          Verb=3     Adjective=4        Adverb = 5    Preposition = 6

Conjunction = 7      Interjection=8

Example:  He drew many books from the shelf quickly.

He = 2        drew = 3          many = 4         books = 1

From = 6     the = 4             shelf = 1          quickly = 5

 

1)      A big tree stood here for many years.

2)      My old turtle never goes outside.

3)      I saw the outside of the wall.

4)      The inside paint is dull.

5)      The outside of the wall is bright.

6)      Insects can cause destruction because they are destructive.

7)      Some insects are very destructive in nature and they can destroy things quickly.

8)      Rakesh and Ravi listened to that cheerful parrot brought by me.

9)      The sky becomes very dark after sunset.

10)   I learnt much from the life of Gandhi ji.

11)   He does not have much money.

12)   I fell much better now after taking tea.

13)   These days many eatables are very costly.

14)   The cost of these things  changes often

15)   They cost less during the winter holidays.

16)   He pays Rs.100/- to me every month.

17)   Well! One must pay one’s taxes.

18)   Ravi slammed the doors unnecessarily.

19)   That slap was very harsh.

20)   Our country believes in the welfare of all.

21)   He plays most skillfully in every game.

EXERCISE NO. 11.

 

FINDING ANY ERROR IN A SENTENCE BEGINS WITH THE PROCESS OF IDENTIFYING THE SUBJECT. Now, we have considerable knowledge about the two most vital parts of a sentence, to wit SUBJECT & PREDICATE. You can differentiate a phrase from a clause, and it will help you in knowing about the person, place, or thing about which you are talking. Now, underline’ the subject and encircle the predicate of the following sentences:

Examples:

1.       Gandhi Ji preached non-violence.

Subject= Gandhi Ji. Predicate =   preached non-violence

2.        Now I shall give you a new pen.

Ans. Subject: I. Predicate: Now…. shall give you a new pen.    (Now is an adverb)

3.       These days milk is expensive.

Ans. Subject: milk.  Predicate: These days is expensive.     (‘These days’ these two words make an adverb phrase. An adverb or adverb phrase may precede the subject depending on the emphasis of it.)

4.       The boys from my school obey their teachers.

Ans. Subject: The boys from my school. Predicate: obey their teachers.

 

1.       Clouds thundered.

2.       Rain fell.

3.       People gathered.

4.       Traffic stopped.

5.       We eat mangoes.

6.       Some people write poems.

7.       I gathered my books quickly.

8.       My friends play football skillfully.

9.       Minerva Academy imparts military training.

10.   Lt. Col. I.S. Deol established it in 1955.

11.   He was a seasoned army officer.

12.   He was a man with might.

13.   His approach to duty was exceptional.

14.   He worked hard till the last day of his life.

15.   He taught us discipline.

16.   We get fresh food in Minerva Academy.

17.   Now I study all the subjects earnestly here.

18.   All the rooms of our academy are well furnished.

19.   Every morning we get fresh fruit

20.   Milk given to us here improves our health.

21.   Running is good for our health.

22.   Amit likes running at the track here.

23.   Our food is always fresh and tasty.

24.   I enjoy reading many magazines at this place.