Page 55 - 2611_SmartGPT Pro V(5.0) C-8
P. 55

5.  Think and answer.
                    a.  What is JavaScript? Describe some of its features.
                        ______________________________________________________________________________

                        ______________________________________________________________________________


                        ______________________________________________________________________________
                    b.  Explain how to include external JavaScript in an HTML document.
                        ______________________________________________________________________________


                        ______________________________________________________________________________

                        ______________________________________________________________________________

                    c.  What are JavaScript keywords? Give two examples.
                        ______________________________________________________________________________

                        ______________________________________________________________________________

                        ______________________________________________________________________________

                    d.  What is the purpose of the prompt() method in JavaScript?
                        ______________________________________________________________________________

                        ______________________________________________________________________________


                        ______________________________________________________________________________
                 6.  Differentiate between the following:

                    a.  Client-Side JavaScript                           Server-Side JavaScript

                        ________________________________                 ________________________________
                        ________________________________                 ________________________________


                    b.  Internal JS                                      External JS
                        ________________________________                 ________________________________
                        ________________________________                 ________________________________


                                                                                              21 st   #Critical Thinking
                 7.  Competency-based/Application-based questions.                         Century   #Technology Literacy
                                                                                             Skills
                    a.   Riya wants to store her name so she can use it later in her JavaScript code. Which JavaScript keyword
                        should she use to declare a variable for her name?
                    b.   After Ankit submits his username on a registration form, he wants to receive immediate feedback
                        with a pop-up message saying, "Registration successful, Ankit!" Which JavaScript function should
                        he use to show this message?








                                                                                      Dynamic Web Pages in HTML5  53
   50   51   52   53   54   55   56   57   58   59   60