Skip to main content

Posts

Showing posts from February, 2018

Participle exercises with answers - Set 1

Participle exercises with answers - Set 1 Participle is a word formed from a verb (for example going, gone, being, been) and used as an adjective (for example working woman, burnt toast) or a noun (for example good breeding). In English language participles are also used to make compound verb forms (e.g. is going, has been). [ Via ] Present participle is formed by adding ing to the base form of a verb. If the verb ends with the letter g, l, m, n, p or t (with a short vowel sound before it), this letter is doubled, for example: dig - digging, swim - swimming etc. If the verb ends with the letter e, this letter is dropped, for example come - coming, have - having etc. If the verb ends with the letters ie, these letters are changed to y, for example die - dying, tie - tying etc. [Source: English Grammar And Exercises 3, Book 4 by Chapman L.R.H.] Complete the following sentences using present participle : 1) The sisters fell asleep after . . . . . . a sumptuous meal. (eat) 2) D...

PHP Constructors Multiple Choice Questions

PHP Constructors Multiple Choice Questions 1) PHP recognises constructors by the name . . . . . A) _construct B) __construct C) __constructor D) _constructor 2) In . . . . . constructors, it is important to remember that you have to call the parent constructor explicitly. A) Singleton B) secure C) public D) subclass 3) Constructor and destructor methods have no . . . . . . and are called automatically - they cannot be called explicitly and consequently their declarations need no access specifier. A) parameters B) destructor C) return value D) aproval 4) Unlike constructors, you cannot pass information to a destructor, because you are never sure when its going to be run. A) True B) False 5) You can invoke class constructors that don’t have any relation to the instantiated object by simply prefacing _constructor with the class name like A) classname::__construct() B) classname:__construct() C) classname=>__construct() D) classname->__construct() 6) . . . . . . is...

PHP Namespaces Multiple Choice Questions

PHP Namespaces Multiple Choice Questions 1. With the introduction of namespaces, the same function name can be used in multiple places. A) True B) False 2. Within a namespace, for accessing the built-in PHP classes you can prefix the class name with a . . . . . and let PHP look in the global class list. A) percent B) ampersand C) asterix D) backslash 3. Which of the below namespace declaration is correct? A) namespace ORA: B) namespace 1_RA; C) namespace ORA; D) namespace ORA_#; 4. Multiple namespaces cannot be defined in the same file. A) True B) False 5. As the namespace size grows, using namespaces can become a little repetitious, but PHP also provides the . . . . . statement, which allows you to alias a specific namespace. A) php B) grant C) use D) label 6. If you want to use this class from another namespace, which of the following statement or statements is correct: A) echo MyApp\Accountant\Addition::asCurrency(200); B) echo MyApp\Accountant\Addition...

Adverbs Exercises with Answers - Set 4

Adverbs Exercises with Answers - Set 4 It is quite easy to locate an Adverb as adverbs answer one of the several questions to a verb. These questions are: when? where? how? how much? As an example, sometimes people say, "You did good", but good is an adjective; the adverb is well , so you should say, "You did well." Complete the below sentences with adverbs. 1. Jasmine cooks . . . . . . (terrible / terribly) 2. Our professor, Mr Smith, . . . . . . . late for the lessons. (never / be) 3. She is a good dancer. She dances really . . . . . . . . (good, well) 4. Saarvi runs fast, but Ananya runs . . . . . . Saarvi. (fast) (hint: its a comparative adverb) 5. Peter did . . . . . in the school. (good, well) 6. Peter did . . . . . work in the school. (good, well) 7. Catherine is happy. She smiles . . . . . . . . (happy) 8. My best friend is a . . . . . . driver. She drives . . . . . . . . (careless, carelessly) 9. Our army must strike . . . . . ...

Conjunction exercise 1

Conjunction exercise 1 Conjunction is a word that joins together sentences, phrases or words (By Brian P. Cleary). Below is a Conjunction exercise 1 focusing on Coordinating Conjunction. Examples of Coordinating Conjunction are: and, for, but, not, or, yet, so. Practice English Grammar Conjunctions with the below conjunction exercise 1. You can also go through other Conjunction exercises: Conjunction exercise 2 , Conjunction exercise 3 . 1) I bought a new house . . . . a shop for my son. A) or B) and C) so D) for 2) We were going, . . . . my brother hugged me again, . . . I had to hug him back. A) but B) not C) so D) for 3) Tacos . . . . burgers are my brother's favourite snacks. A) yet B) so C) and D) for 4) Sam is poor . . . . Michael is rich. A) yet B) so C) not D) but 5) I could not attend your wedding, . . . . I was seriously ill. A) yet B) for C) so D) but 6) Jacob is my brother . . . . Tina is my sister. A) or B) and C) so D) for 7) The security man ...