Page 44 - C++
P. 44

Ans:

















                                                                               -


                      (½ mark for opening the file in correct mode)
                      (½ mark for try.. except EOFError)
                      (½ mark for while loop)
                      (½ mark for using pickle.load() correctly)
                      (½ mark for comparison using if)
                      (½ mark for displaying)

                                                        SECTION – C

        Q5     (a)   Differentiate between DDL & DMLcommands. Identify DDL & DML commands from                      2
                     the following:-

                                   (UPDATE, SELECT, ALTER, DROP)

               Ans  DDL stands for Data Definition language and comprises of commands which will
                     change the structure of database object.

                     DML stands for Data Manipulation Language and comprises of commands which
                     are used to insert, edit, view & delete the data stored in a database object.

                     DDL Commands:         ALTER, DROP
                     DML Commands:  UPDATE, SELECT



                                                        Page No. 27
   39   40   41   42   43   44   45   46   47   48   49