Fill in TH Blanks - WebApp-XII-2022-Web Scripting - JavaScript-YK
Fill in TH Blanks - WebApp-XII-2022-Web Scripting - JavaScript-YK
Unit-3:
Web Scripting - JavaScript
F26. Function _________ joins all elements of the array into a string always using comma (“,”) as
the joining character.
F27. Default value of the delimiter in join() function is _____.
F28. Function _______ sorts elements of an array in ascending order.
F29. Function _______ reverses the elements of an array.
F30. The users can get and set the properties of an __________ by using either the "." (dot)
operator, or the "[ ]" operator.
F31. JavaScript can be used on ______ Side as well as on ________ Side
F32. Document object uses its _______ method to output some text to the page-document.
F33. Each line of JavaScript code ends with a ________.
F34. A ______ is a classification of the type of data that a variable or object can hold.
F35. Numbers in JavaScript are double-precision ___ bit format.
F36. We can convert a string into an integer using the built-in _________ function.
F37. We can convert a string into a floating-point number using the built-in _________ function.
F38. We can convert a number into a string using the built-in _________ function.
F39. Strings in JavaScript are sequences of ___________ characters, with each character
represented by a 16-bit number.
F40. We always can test for +Infinity and -Infinity values using the built-in ________ function.
F41. We always can test for NaN using the built-in ________ function.
F42. In JavaScript it is possible to declare a variable without assigning a value to it. If we do this,
the variable's type is ____________.
F43. In switch statement, if we don’t add a break statement, execution will _______ to the next
level.
F44. In switch statement, ____________ clause is optional.
F45. JavaScript objects are simply collections of ______ pairs.
F46. JavaScript objects are simply collections of name-value pairs. The "name" part is a JavaScript
______, while the value can be any JavaScript value.
F47. ___________method extracts the characters from a string, between two specified indices.
F48. ___________method joins two or more strings, and returns a copy to the joined strings.
F49. ___________method joins all elements of an array into a string.
F50. ___________method removes and returns the last item of an array.
F51. ___________method adds one or more items to the end of an array.
F52. ___________method reverses the order of elements in an array.
F53. ___________method removes the first element of an array and returns that element.
F54. ___________method returns a sub-array.
F55. ___________method sorts the elements of an array.
F56. ___________method modifies an array by deleting a section and replacing it with more items.
Answers
F1. Interpreted F2. Scripting F3. .js
F4. <script> F5. Src F6. Comment
F7. Single line, multi-line F8. Variable F9. Variables
F10. var F11. break F12. Default
F13. return F14. Array F15. Event-handling
F16. null F17. For, and while F18. do..while
F19. Once F20. continue F21. Local
F22. Global F23. Formal F24. Actual
F25. Join() F26. toString() F27. Comma (,)
F28. sort() F29. reverse() F30. Object
F31. client, server F32. write() F33. ;
F34. Data type F35. 64 F36. parseInt()
F37. parseFloat() F38. toString() F39. UNICODE
T23. A local variable is defined inside a function using the keyword var.
T24. A global variable is defined without using the keyword var.
T25. If a variable is defined using var in a compound statements (like inside an if control
structure), it will be visible to the entire function.
T26. Formal parameters are used in function definition.
T27. Actual parameters are used in function call.
T28. Function join() joins all elements of the array into a string. The array elements are joined by
the specified delimiter.
T29. Default value of the delimiter in join() function is coma (,)
T30. Function ascend() sorts elements of an array in ascending order.
T31. Function reverse() reverses the elements of an array.
T32. JavaScript can be used on client side only.
T33. Document object uses its output() method to output some text to the page-document.
T34. Each line of JavaScript code ends with a period (.)
T35. A data type is a classification of the type of data that a variable or object can hold.
T36. Numbers in JavaScript are double-precision 64 bit format.
T37. We can convert a string into an integer using the built-in parseInt() function.
T38. We can convert a string into a floating-point number using the built-in parseFloat() function.
T39. We can convert a number into a string using the built-in String() function.
T40. Strings in JavaScript are sequences of UNICODE characters, with each character represented
by a 16-bit number.
T41. We always can test for +Infinity and -Infinity values using the built-in isFinite() function.
T42. In JavaScript it is possible to declare a variable without assigning a value to it. If we do this,
the variable's type is integer.
T43. In switch statement, if we don’t add a break statement, execution will not go to the next level.
T44. In switch statement, no clause is optional.
T45. JavaScript objects are simply collections of name-value pairs.
T46. JavaScript objects are simply collections of name-value pairs. The "name" part is a JavaScript
number, while the value can be any JavaScript value.
T47. To find the length of a string we access its length property.
T48. The length of an array is always one more than the highest index in the array.
T49. substring() method extracts the characters from a string, between two specified indices.
T50. join() method joins two or more strings, and returns a copy of the joined strings.
T51. join() method joins all elements of an array into a string.
T52. shift() method removes and returns the last item of an array.
T53. push() method adds one or more items to the end of an array.
T54. reverse() method reverses the order of elements in an array.
T55. unshift() method removes the first element of an array and returns that element.
T56. slice() method returns a sub-array.
T57. arrange() method sorts the elements of an array.
T58. splice() method modifies an array by deleting a section and replacing it with more items.
T59. unshift() method prepends items to the start of the array.
T60. indexOf() method returns the position of the first occurrence of a text in a string.
T61. match() method searches for a text in a string and returns the text if found.
T62. replace() method replaces a part of the string with some specified text.
T63. near() method of Math object returns a number to the nearest integer.
T64. random() method of Math object returns a random number from 0 (inclusive) up to but not
including 1.
T65. high() method of Math object returns the number with highest value from a given list of
numbers.
T66. min() method of Math object returns the number with lowest value from a given list of
numbers.
T67. The string object is used to store multiple values in a single variable.
T68. Incidences are things that happen, usually user actions that are associated with an object.
T69. The “event handler” is a command that is used to specify actions in response to an event.
T70. onLoad event occurs when a page loads in a browser.
T71. onExit event occurs just before the user exits a page.
T72. onMouseOver event occurs when when you point to an object.
T73. onAway event occurs when you point away from an object.
T74. onSubmit event occurs when you submit a form.
T75. onClick event occurs when an object is clicked.
T76. If a function has no return statement (or an empty return with no value), it returns undefined.
T77. Functions have access to an additional variable inside their body called arguments, which is
an array-like object holding all of the values passed to the function.
T78. JavaScript allows reusability feature by calling a function with an arbitrary array of
arguments, using the apply() method of any function object.
T79. In JavaScript, nested functions can access variables in their parent function's scope.
T80. In JavaScript, all the methods are functions but all the functions are not methods.
Answers
T1. True T2. False T3. True T4. False T5. True
T6. False T7. True T8. True T9. False T10. True
T11. True T12. True T13. True T14. True T15. True
T16. False T17. True T18. True T19. False T20. True
T21. True T22. False T23. True T24. True T25. True
T26. True T27. True T28. True T29. True T30. False
T31. True T32. False T33. False T34. False T35. True
T36. True T37. True T38. True T39. False T40. True
T41. True T42. False T43. False T44. False T45. True
T46. False T47. True T48. True T49. True T50. False
T51. True T52. False T53. True T54. True T55. False
T56. True T57. False T58. True T59. True T60. True
T61. True T62. True T63. False T64. True T65. False
T66. True T67. False T68. False T69. True T70. True
T71. True T72. True T73. False T74. True T75. True
T76. True T77. True T78. True T79. True T80. True