Page 77 - PortGPT_V2.1_C8_Flipbook
P. 77

test Your skiLLs





                 1.  Tick ( ) the correct option.

                     a.   Which of the following languages is used to make dynamic web pages?

                          (i)  HTML                                     (ii)  CSS
                          (iii)  JavaScript                             (iv)  None of these

                     b.   In which year was JavaScript developed?
                          (i)  1995                                     (ii)  1985

                          (iii)  1975                                   (iv)  1997
                     c.     Which of the following tags is used to add JavaScript in web page?

                          (i)  <JavaScript>                             (ii)  <head>

                          (iii)  <script>                               (iv)  Al of these
                     d.  Which of the following is used to add single line comments in JavaScript?

                          (i)  :                                        (ii)  //
                          (iii)  ;                                      (iv)  “”

                 2.   Fill in the blanks using the words from the help box.


                                      operator, interpreted, loosely, Brendan Eich, expression

                     a.     JavaScript was developed by _______________, a Netscape Communications Corporation
                         programmer, in 1995.

                     b.  JavaScript is an _______________ language.

                     c.     JavaScript is a _______________ typed language which means it does not require a data
                         type to be declared before using it.
                     d.  An _______________ is a symbol that is used to perform calculations on values or variables.

                     e.  An _______________ is a unit of code that evaluated to a value.

                 3.   Answer in one or two words.
                     a.   What are the instructions given to JavaScript interpreter to take some
                          actions called?                                                             _____________
                     b.    Which method is used to convert the value into an integer?                 _____________

                     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?                             _____________






                                                                                          Introduction to JavaScript  75
   72   73   74   75   76   77   78   79   80   81   82