Page 78 - PortGPT_V2.1_C8_Flipbook
P. 78

4.   Think and answer.

                      a.   What is JavaScript?
                           ___________________________________________________________________________

                      b.   What are statements in JavaScript?
                           ___________________________________________________________________________

                      c.   What do you mean by client-side scripting language?
                           ___________________________________________________________________________

                      d.   Write any two features of JavaScript.

                           ___________________________________________________________________________
                      e.   Define Operators with example.

                           ___________________________________________________________________________

                      f.   Write the syntax for using the External JavaScript code.
                           ___________________________________________________________________________

                           ___________________________________________________________________________

                  5.   Differentiate between the following:
                      prompt( ) method                          document.write( ) method

                      ________________________                  ________________________

                      ________________________                  ________________________


                  6.   Application based questions.                                                 Experiential Learning
                      a.   Chirag created a website using HTML5 and formatted it using CSS. He now wishes
                           to add some interactive elements to the website for the site visitors. How can he
                           achieve this?
                           ___________________________________________________________________________

                      b.   Shweta is creating a website in HTML. She wants to add a functionality to accept the roll
                           number of a student online. Which method of JavaScript can help her do so?
                           ___________________________________________________________________________

                      c.   Devansh  is a student  of class  8. He wants to create a web page  to perform different
                           mathematical  operations  by  taking  values from the  user. But,  he  does not  know  which
                           method of JavaScript is used to convert the input value into integer. Suggest him the suitable
                           method.

                           ____________________________________________________________________________











                  76    Premium Edition-VIII
   73   74   75   76   77   78   79   80   81   82   83