Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 84 - 2609_Logicode
P. 84

    REVISIT

                        ▶   JavaScript is a popular scripting language that enhances web page interactivity.
                        ▶  JavaScript is a versatile programming language that enables dynamic features on websites.
                        ▶  The <SCRIPT> tag is used to embed JavaScript code or link to external JavaScript files.
                        ▶  A block of code created specifically to carry out a specific task is referred to as a JavaScript function.

                      1.  Tick ( ) the correct option.
                          a.  Choose the language category JavaScript is classified under.
                              (i)  Programming language                        (ii)  Scripting language

                             (iii)  Query language                             (iv)  Markup language
                          b.   Select the invalid keyword in JavaScript.
                              (i)  null                                        (ii)  enum

                             (iii)  import                                     (iv)  print
                          c.  Identify the result of document.write(x == 8) when let x -= 8.
                              (i)  8                                           (ii)   True

                             (iii)  False                                      (iv)  None of these
                          d.   Choose the file extension in which you can save a JavaScript file.

                              (i)  .js                                         (ii)  .py
                             (iii)  .html                                      (iv)  .java
                          e.   Which operator is used to invert the value of a Boolean condition?
                              (i)  AND                                         (ii)  OR

                             (iii)  NOT                                        (iv)  IF

                      2.  Write ‘T’ for true and ‘F’ for false.
                         a.  = and == operators have the same functionality.

                         b.  We cannot integrate the JavaScript code within the HTML web page directly.

                         c.  The name of variables is case sensitive in JavaScript.

                         d.  The console.log() method is used to display messages or data in the browser’s console.

                         e.  The prompt text is not specified as a string within the parentheses.

                       82   Premium Edition-VIII

| 79 80 81 82 83 84 85 86 87 88 89 |