Page 76 - Trackpad_V1_Book 8_Flipbook
P. 76

3.  Answer in one or two words.
                      a.    What are the instructions given to the JavaScript interpreter to take some
                           actions called?                                                            _______________
                      b.    What was the first name of JavaScript?                                    _______________
                      c.   In which type of JavaScript, is the code written and saved in a separate file?   _______________
                      d.    What is a combination of values and operators?                            _______________

                  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 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 an integer. Suggest him a suitable method.
                           ____________________________________________________________________________


                   74   Trackpad (Version 1.0)-VIII
   71   72   73   74   75   76   77   78   79   80   81