Page 69 - Chinmaya_C8_flipbook
P. 69

3.  Answer in one or two words.
                    a.   What are the instructions given to JavaScript interpreter to take some
                      actions called?                                                                _______________
                    b.   What was the first name of the 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 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.

                     ______________________________________________________________________________________


                                                                                      Dynamic Web Pages in HTML5  67
   64   65   66   67   68   69   70   71   72   73   74