click below
click below
Normal Size Small Size show me how
JavaScript Quiz 1
Javascript Quiz 1
| Question | Answer |
|---|---|
| The JavaScript keyword used to declare a variable. | var |
| An adjective that describes programming languages that allow you to use one variable to store different kinds of data at run time. JavaScript is an example. | loosely typed |
| An english language outline like tool used for expressing an algorithm. | psueudocode |
| This javascript keyword begins a function definition: | function |
| A named identifier that stores data during the execution of your script. | variable |
| A piece of software that translates high level programming languages into a "machine readable" form while the program is running. Javascript compatible browsers is an example. | Interpreter |
| The most versatile example of a selection statement. It allows you to use complex conditions rather than simply matching cases. | if statement |
| Multiline comments in JavaScript begin with these symbols. | /* |
| A step by step set of instructions used to solve a specific problem. | algorithm |
| One of the symbols that can be used to delimit a string in JavaScript. | " |
| Got code that you want to use in all kinds of web pages? Create one of these and put it in an external javascript file. | function |
| Complete this step in the problem solving process after writing an algorithm but before translating the algorithm into code. | Test the algorithm for correctness. |
| The concatenation operator in Javascript. | + |
| The symbol used to terminate a statement in JavaScript | ; |
| This type of statement allows you to store a value in a variable. | assignment statement |
| A complex piece of code that "encapsulates" what it means to be a "thing" in the real world. The code describes both the attributes and behaviors of the "thing" it represents. document is an example. | object |
| Name of control structure that allows programs to branch or make choices. | selection |
| An action that an object knows how to do. write is an example for the document object. | method |
| Got a block of code that you want to execute over and over? Use this control structure. The answer is NOT loop. | repetition |
| An "extra piece" of information a fucntion needs in order to do its work. | parameter |
| The first step in the problem solving process. | Understanding the porblem. |
| This method of the document object allows you to add text to the HTML stream that makes up a webpage. | write |
| In absence of any other control structure, statements in code are executed in the order in which they are written. | sequence |
| This tool illustrates an algorithm in graphical form. | flowchart |
| Use these to begin and end blocks of code in Javascript. | { and } |
| An object based, cleint side scripting language that is support by most modern browsers. | Javascript |
| The single line comment marker in Javascript. | // |
| This object represesnts the current html page. | document |
| This code is interpreted by the browser of the user who request the webpage. | client side code |
| Code that is executed on the web server that hosts the web page. | server side code. |