Basic HTML Version

|  | Table of Contents |  | View Full Version

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

    b.  Which of the following tag is used to include internal JavaScript in an HTML document?
                              (i)   <STYLE>                                    (ii)  <LINK>

                             (iii)   <SCRIPT>                                 (iv)  <META>
                          c.  Which of the following is the file extension for a JavaScript file?
                              (i)  .html                                       (ii)  .js

                             (iii)   .css                                     (iv)  .json
                          d.  Identify the method that displays a message box with a specified message and an OK button.

                              (i)  prompt()                                    (ii)  alert()
                             (iii)  confirm()                                 (iv)  document.write()
                          e.  Which of the following is a unit of code that is evaluated to a value?

                              (i)  Comment                                     (ii)  Expression
                             (iii)  Operator                                  (iv)  Variable

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

                                                Mocha, //, client, text/javascript, prompt()

                          a.  JavaScript was originally named _______________.
                          b.  JavaScript uses the _______________ method to receive user input.

                          c.   To specify  that  a script  is written  in JavaScript,  we use the TYPE  attribute  with the value
                             _______________.
                          d.  In JavaScript, a single-line comment is added using _______________.
                          e.  JavaScript is a _______________ side scripting language.

                      3.  Write 'T' for true and 'F' for false.

                          a.  JavaScript is a server-side scripting language.

                          b.  JavaScript is platform-independent.

                          c.  The first web browser to support JavaScript was Netscape.

                          d.  JavaScript can run without being embedded in HTML code.

                          e.  JavaScript is a case-sensitive language.

                      4.  Answer in one or two words.
                          a.   Which are used to add notes in your code or to disable sections of code without
                             deleting them?                                                               _______________

                          b.   Name the method used to display output on a web page.                      _______________

                          c.   Which method is used to convert the value into an integer?                 _______________

                          d.   Name the method that displays a dialog box with a specified message and
                             a OK and a Cancel button.                                                    _______________

                       52   Computer Science (V5.0)-VIII

| 49 50 51 52 53 54 55 56 57 58 59 |