English Grammar (Online Practice) - Page 40

Select the correct answer from the bracket:
Q1: My sister is ten and ______ half years old. [a, an, the, none]

    Q2: He threw a stone ______ a river. [in, into, to]

      Q3: He never comes here, ______? [doesn't he, does he, never he]


        Q4: The British _____ a long history. [has, have, had]


          Q5: She is the girl _____ I liked most. [who, whose, whom]


            English Grammar (Online Practice) - Page 39

            Select the correct answer from the bracket:
            Q1: They went to the driver, ______? [ did they, don't they, didn't they]

              Q2: The writer of these two books ______ dead.[is, am, are]

                Q3: He died of ______ cancer. [a, an, the, none]


                  Q4: English is spoken all over the world, _______? [isn't English, doesn't it, isn't it]


                    Q5: _____ ox can't plough. [a, an, the, none]


                      English Grammar (Online Practice) - Page 38

                      Select the correct answer from the bracket:
                      Q1: Many an animal______ on grass. [lives, live, has lived]

                        Q2: We have to read hard, _____? [don't we, didn't we, do we]

                          Q3: He dare not speak, _____? [don't he, doesn't he, dare he]


                            Q4: She is walking ______ the forest. [towards, from, with]


                              Q5: I make a living ______ teaching. [by, to, with]


                                English Grammar (Online Practice) - Page 37

                                Select the correct answer from the bracket:
                                Q1:_____ is Nicholas Sparks?[who, why, when]

                                  Q2: My mother is _____ clever that she knows what I have eaten.[so, much, too]

                                    Q3: If I were a teacher, I _____ not punish pupils. [will, would, would have]


                                      Q4: She ______ not know anything. [do, is, has, does]


                                        Q5: Five liters of milk _____ enough for today. [ is, are, were]


                                          English Grammar (Online Practice) - Page 35

                                          Select the correct answer from the bracket:
                                          Q1: ______ her illness, she went on working. [because of, though, in spite of]

                                            Q2:I went to the city _____ I found many artistic achievements. [which, where, what]

                                              Q3: The school was closed _____ strike. [because, so that, because of]


                                                Q4: You will be punished for _____ you have done. [what, when, while]


                                                  Q5: ______ he is poor, he helps the orphans. [although, because, however]


                                                    English Grammar (Online Practice) - Page 36

                                                    Select the correct answer from the bracket:
                                                    Q1: We postponed the football tournament ______ the bad weather. [so that, because of, instead of]

                                                      Q2: I don't know ______ Rani pokhari is located. [which, when, where]

                                                        Q3: We go to the bank _____ we can cash the cheque. [to, for, so that]


                                                          Q4: This is the boy ______ [ where, whom, which]


                                                            Q5: He visited all the relatives ______ he could please his mother. [because, as so that]


                                                              English Grammar (Online Practice) - Page 34

                                                              Select the correct answer from the bracket:
                                                              Q1: Our final exam ______ on the 16th of the next month. [will start, starts, has started]

                                                                Q2: It's cloudy. It ______ soon. [is rain, is going to rain, is raining]

                                                                  Q3: Leen mino ho ______ his breakfast.[has eaten alreafy, ate already, has already eaten]


                                                                    Q4: I do well, _______? [won't I, don't I, didn't I]


                                                                      Q5: _____ man can't live alone. [a, the, an]


                                                                        English Grammar (Online Practice) - Page 33

                                                                        Select the correct answer from the bracket:
                                                                        Q1: David ______ 100 goals by next year. [is being score, will score, will have scored]

                                                                          Q2: Does she ______ the class regularly? [attends, attended, attend]

                                                                            Q3: Roma didn't ______ to the colloquium yesterday. [go, went, goes]


                                                                              Q4: I ______ in Tokyo since last year. [lived, have lived, will live]


                                                                                Q5: She usually ______ red sari in the special programmes. [wore, wears, will wear]


                                                                                  English Grammar (Online Practice) - Page 32

                                                                                  Select the correct answer from the bracket:
                                                                                  Q1: Someone has stolen my book. My book _____ [is stolen, has been stolen, has stolen]

                                                                                  Q2: _____ her hard work,she failed the exam.[in spite of, because of, although]

                                                                                  Q3: Unless you call her, she _____ speak.[would, wouldn't, won't]


                                                                                  Q4: The public never can _____ the leaders keep their words. [has, get, make]


                                                                                  Q5: I ______ take part in the SAARC quiz contest next month. [will be, am going to, had to]


                                                                                  English Grammar (Online Practice) - Page 31

                                                                                  Select the correct answer from the bracket:
                                                                                  Q1: Someone has stolen my book. My book _____ [is stolen, has been stolen, has stolen]

                                                                                    Q2: _____ her hard work,she failed the exam.[in spite of, because of, although]

                                                                                      Q3: Unless you call her, she _____ speak.[would, wouldn't, won't]


                                                                                        Q4: The public never can _____ the leaders keep their words. [has, get, make]


                                                                                          Q5: I ______ take part in the SAARC quiz contest next month. [will be, am going to, had to]


                                                                                            English Grammar (Online Practice) - Page 30

                                                                                            Select the correct answer from the bracket:
                                                                                            Q1: Who found _____ one rupee coin on the way? [a, an, the]

                                                                                              Q2: They are obedient ______ teachers.[at, to, for]

                                                                                                Q3: I am a teacher, _____? [aren't I,am I, don't I]


                                                                                                  Q4: The cop _____ recently caught the smuggler. [has, have, had]


                                                                                                    Q5: My brother asked us_____ [what he wants, what did he want, what we wanted]


                                                                                                      English Grammar (Online Practice) - Page 29

                                                                                                      Select the correct answer from the bracket:
                                                                                                      Q1: John and Jack _____ finish the work. [shall, will, have]

                                                                                                        Q2: Someone _____ waiting for you. [isn't, is , are]

                                                                                                          Q3: I'm tired and hungry _____ this job.[of, about, by]


                                                                                                            Q4: _____ world is perishable. [the, a, whole]


                                                                                                              Q5: Cooking _____ a lot of care. [needs, wants, has]


                                                                                                                To check given number is armstrong or not. (Qbasic)

                                                                                                                • What is Armstrong number?
                                                                                                                  • The number which is formed by the sum of cubes of its own digits is Armstrong number.
                                                                                                                  • Example: 153, 370, 371, 407, etc.
                                                                                                                    • 153 = 13 + 53 + 33
                                                                                                                      = 1 + 125 + 27
                                                                                                                      = 153
                                                                                                                Qbasic Code
                                                                                                                Using DO WHILE ..... LOOP
                                                                                                                CLS
                                                                                                                INPUT "Enter a number"; n
                                                                                                                b = n
                                                                                                                DO WHILE n <> 0
                                                                                                                    r = n MOD 10
                                                                                                                    a = a + r ^ 3
                                                                                                                    n = n \ 10
                                                                                                                LOOP
                                                                                                                IF a = b THEN
                                                                                                                    PRINT "It is armstrong number";
                                                                                                                ELSE
                                                                                                                    PRINT "It is not armstrong number";
                                                                                                                END IF
                                                                                                                END

                                                                                                                Using WHILE ... WEND
                                                                                                                CLS
                                                                                                                INPUT "ENTER ANY NUMBER"; N
                                                                                                                A = N
                                                                                                                S = 0
                                                                                                                WHILE N <> 0
                                                                                                                    R = N MOD 10
                                                                                                                    S = S + R ^ 3
                                                                                                                    N = N \ 10
                                                                                                                WEND
                                                                                                                IF A = S THEN
                                                                                                                    PRINT A; "IS ARMSTRONG"
                                                                                                                ELSE
                                                                                                                    PRINT A; "IS NOT ARMSTRONG"
                                                                                                                END IF
                                                                                                                END


                                                                                                                Using SUB Procedure
                                                                                                                DECLARE SUB ARM (N)
                                                                                                                CLS
                                                                                                                INPUT "ENTER ANY NUMBER"; N
                                                                                                                CALL ARM(N)
                                                                                                                END

                                                                                                                SUB ARM (N)
                                                                                                                A = N
                                                                                                                S = 0
                                                                                                                WHILE N <> 0
                                                                                                                    R = N MOD 10
                                                                                                                    S = S + R ^ 3
                                                                                                                    N = N \ 10
                                                                                                                WEND
                                                                                                                IF A = S THEN
                                                                                                                    PRINT A; "IS ARMSTRONG NUMBER"
                                                                                                                ELSE
                                                                                                                    PRINT A; "IS NOT ARMSTRONG NUMBER"
                                                                                                                END IF
                                                                                                                END SUB


                                                                                                                Using Function Procedure
                                                                                                                DECLARE FUNCTION ARM (N)
                                                                                                                CLS
                                                                                                                INPUT "ENTER ANY NUMBER"; N
                                                                                                                A = N
                                                                                                                AR = ARM(N)
                                                                                                                IF A = AR THEN
                                                                                                                    PRINT A; "IS ARMSTRONG NUMBER"
                                                                                                                ELSE
                                                                                                                    PRINT A; "IS NOT ARMSTRONG NUMBER"
                                                                                                                END IF
                                                                                                                END

                                                                                                                FUNCTION ARM (N)
                                                                                                                S = 0
                                                                                                                WHILE N <> 0
                                                                                                                    R = N MOD 10
                                                                                                                    S = S + R ^ 3
                                                                                                                    N = N \ 10
                                                                                                                WEND
                                                                                                                ARM = S
                                                                                                                END FUNCTION

                                                                                                                Who is DBA - Database Administrator? What are the responsibilities of DBA?

                                                                                                                • A person of information specialist who has responsibility to manage and control overall resources such as planning, implementation, operation, maintenance and security on the database is called database administrator.
                                                                                                                • Responsibilities of DBA - database administrator
                                                                                                                  • To manage DBMS.
                                                                                                                  • To manage data activities.
                                                                                                                  • To manage database structure.
                                                                                                                  • Performing backup and recovery duties.
                                                                                                                  • To manage database users and provide security.