MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
.......... return NodeList objects and properties like document.images and document.forms are HTML Collection objects. |
| A. | getElementsByName() and getElementsById() |
| B. | getElementsById() and getElementsByTagName() |
| C. | getElementsByName() and getElementsByTagName() |
| D. | getElementsByClassName() and getElementsByTagName() |
| Answer» D. getElementsByClassName() and getElementsByTagName() | |
| 2. |
The ......... attribute is only valid on a handful or HTML elements, including forms, form elements, and u003cimgu003e elements. |
| A. | id |
| B. | name |
| C. | tag |
| D. | class |
| Answer» C. tag | |
| 3. |
The DOM defines a number of ways to select elements, by using which of the following methods we can query a document for an element or elements.i) with a specified id attributeii) with a specified name attributeiii) with the specified tag nameiv) with the specified CSS class or classes |
| A. | i, ii and iii only |
| B. | i, ii and iv only |
| C. | i, iii and iv only |
| D. | All i, ii, iii and iv |
| Answer» E. | |
| 4. |
Which of the following are the ways to embed Client side JavaScript code within HTML documents.i) Inline, between a pair of tags.ii) From an external file specified by the src attribute of a |
| A. | i, ii and iii only |
| B. | ii, iii and iv only |
| C. | i, ii and iv only |
| D. | All i, ii, iii and iv |
| Answer» E. | |
| 5. |
We can select an element based on unique ID with the ........... method of the document object. |
| A. | getElementById() |
| B. | getElementsById() |
| C. | selectElementById() |
| D. | selectElementsById() |
| Answer» B. getElementsById() | |
| 6. |
JavaScript can help to increase the user experience with which of the following method for a web page. |
| A. | By creating animation and other effects to guide a user and help with page navigation. |
| B. | By sorting the columns of a table to make it easier for searching on table. |
| C. | By hiding certain content and revealing details progressively as the userdrills downinto that content. |
| D. | All of the above. |
| Answer» E. | |
| 7. |
State True or False for the following Statements.i) The setTimeout() method of the window object schedules a function to run after a specified number of milliseconds elapses. ii) setTimeout() returns a value that can be passed to clearTimeout() to cancel the execution of the scheduled function.iii) setTimeout() is like setInterval() except taht the specified function is invoked repeatedly at intervals of the specified number of milliseconds. |
| A. | i-True, ii-False, iii-True |
| B. | i-True, ii-True, iii-False |
| C. | i-False, ii-True, iii-False |
| D. | i-False, ii-False, iii-True |
| Answer» C. i-False, ii-True, iii-False | |
| 8. |
The ...... library is the client side library that Google uses for Gmail, Google Docs and other web applications. |
| A. | Dojo |
| B. | Prototype |
| C. | GWT |
| D. | Closure |
| Answer» E. | |
| 9. |
When the document is completely parsed, the document.readystate property changes to ...... |
| A. | ready |
| B. | parsed |
| C. | interactive |
| D. | activated |
| Answer» D. activated | |
| 10. |
When the parser encounters a |
| A. | async |
| B. | sync |
| C. | parse |
| D. | load |
| Answer» B. sync | |
| 11. |
........ allow you to register a function to be invoked once or repeatedly after a specified amount of time has elapsed. |
| A. | setTimeout() |
| B. | setInterval() |
| C. | Both A and B |
| D. | None of the above |
| Answer» D. None of the above | |
| 12. |
The .......... library focuses on DOM and Ajax utilities, like jQuery does, and adds quite a few core-language utilities as well. |
| A. | Dojo |
| B. | Prototype |
| C. | YUI |
| D. | Closure |
| Answer» C. YUI | |
| 13. |
........... libraries areframeworksin the sense that they build a new higher-level API for client side programming on top of the standard and proprietary APIs offered by web browsers. |
| A. | client-side framework |
| B. | server-side framework |
| C. | higher-level framework |
| D. | web framework |
| Answer» B. server-side framework | |
| 14. |
Which of the following statements for restricted features of JavaScript is/are True. |
| A. | A JavaScript program can close browser windows that it opened itself, but it is not allowed to close other windows without user conformation. |
| B. | A script can read the content of documents loaded from different servers than the document that contains the script. |
| C. | A JavaScript program can open new browser windows, but must of the browsers restrict this feature. |
| D. | All of the above |
| Answer» E. | |
| 15. |
The .......... attribute causes the browser to run the script as soon as possible but not to block document parsing while the script is being downloaded. |
| A. | sync |
| B. | async |
| C. | defer |
| D. | All |
| Answer» C. defer | |
| 16. |
The ...... attribute causes the browser to defer execution of the script until after the document has been loaded and parsed and is ready to be manipulated. |
| A. | sync |
| B. | async |
| C. | defer |
| D. | All |
| Answer» D. All | |
| 17. |
JavaScript code can register a/an ............. by assigning a function to a property of an element object that represents an HTML document in the document. |
| A. | event handler |
| B. | function handler |
| C. | document handler |
| D. | HTML handler |
| Answer» B. function handler | |
| 18. |
The different variant of Date( ) constructor to create date object is/are.i) new Date(date)ii) new Date(milliseconds)iii) new Date(date string)iv) new Date (year, month, date [, hour, minute, second, millisecond]) |
| A. | i, ii and iii only |
| B. | ii, iii and iv only |
| C. | i, ii and iv only |
| D. | All i, ii, iii, and iv |
| Answer» C. i, ii and iv only | |
| 19. |
.......... specifies that the body of the URL is an arbitrary string of JavaScript code to be run by the JavaScript interpreter. |
| A. | Javascript:web |
| B. | JavaScript:code |
| C. | JavaScript:protocol |
| D. | JavaScript |
| Answer» D. JavaScript | |
| 20. |
The JavaScript ........................ class represents regular expressions, and both string and .................... define methods that use regular expressions. |
| A. | RegExpObj |
| B. | RegExpClass |
| C. | RegExp |
| D. | StringExp |
| Answer» D. StringExp | |
| 21. |
State True or False.i) We can refresh a web page using JavaScript location.reload method.ii) The function page.print( ) will print the current web page.iii) With no arguments, the Date( ) constructor creates a Date object set to the current date and time. |
| A. | i- True, ii- False, iii-True |
| B. | i- False, ii- True, iii-True |
| C. | i-True, ii-True, iii-False |
| D. | i- False, ii- False, iii-True |
| Answer» B. i- False, ii- True, iii-True | |
| 22. |
...................... are usually variables that are used internally in the objects methods, but can also be globally visible variables that are used through the page. |
| A. | Object properties |
| B. | Variable properties |
| C. | Method properties |
| D. | Internal properties |
| Answer» C. Method properties | |
| 23. |
Match the following with their description.a) Encapsulation b) Aggregation c) Inheritance d) Polymorphism i) The capability to write on function or method that works variety of different ways. ii) The capability of a class to relay upon another class. iii) The capability to store one object inside of another object.iv) The capability to store related information. |
| A. | i-d, ii-c, iii-b, iv-a |
| B. | i-b, ii-c, iii-a, iv-d |
| C. | i-c, ii-d, iii-a, iv-b |
| D. | i-a, ii-c, iii-d, iv-b |
| Answer» B. i-b, ii-c, iii-a, iv-d | |
| 24. |
A ..................... mostly used to take users choice on any option and displays a dialog box with two buttons Ok and Cancel. |
| A. | Alert dialog box |
| B. | Information dialog box |
| C. | Prompt dialog box |
| D. | Conformation dialog box |
| Answer» E. | |
| 25. |
The different types of dialog boxes supported by JavaScript are Titel WikiBook JavaScriptTitel WikiBook JavaScript (Photo credit: Wikipedia)i) Alert dialog boxii) Information dialog boxiii) Conformation dialog boxiv) Prompt dialog box |
| A. | i, ii and iii only |
| B. | i, iii and iv only |
| C. | i, ii and iv only |
| D. | All i, ii, iii, and iv |
| Answer» C. i, ii and iv only | |
| 26. |
While reading Cookies, the ................ string will keep a list of name = value pairs separated by semicolons, where name is the name of a cookie and value is its string value. |
| A. | document.cookie |
| B. | read.cookie |
| C. | cookie.string |
| D. | name.cookie |
| Answer» B. read.cookie | |
| 27. |
You can refresh the webpage in JavaScript by using ................ method. |
| A. | window.reload |
| B. | location. reload |
| C. | window. refresh |
| D. | page.refresh |
| Answer» C. window. refresh | |
| 28. |
You can redirect the webpage in JavaScript by using ..................... method. |
| A. | window. reload |
| B. | window.location |
| C. | page.location |
| D. | url.newlocation |
| Answer» C. page.location | |
| 29. |
Match the following JavaScript function with their description.i) onblur a) script runs when element changesii) onmouseup b) script runs when the form is resetiii) onchange c) script runs when the element lost focus.iv) onreset d) script runs when mouse button is released. |
| A. | i-d, ii-c, iii-a, iv-b |
| B. | i-b, ii-c, iii-a, iv-d |
| C. | i-c, ii-d, iii-a, iv-b |
| D. | i-a, ii-c, iii-d, iv-b |
| Answer» D. i-a, ii-c, iii-d, iv-b | |
| 30. |
In JavaScript, a ............................ is simply an identifier followed by a colon that is applied to a statement or block of code. |
| A. | bookmark |
| B. | label |
| C. | break |
| D. | continue |
| Answer» C. break | |
| 31. |
Cookies are a plain text data record having the following variable length fields.i) Expires ii) Starts iii) Domain iv) Secure |
| A. | i, ii and iii only |
| B. | i, iii and iv only |
| C. | i, ii and iv only |
| D. | All i, ii, iii, and iv |
| Answer» D. All i, ii, iii, and iv | |
| 32. |
A JavaScript function which can be defined dynamically along with the new operator using .......... |
| A. | Nested Function |
| B. | Function Literals |
| C. | Function ( ) Constructor |
| D. | None of the above |
| Answer» D. None of the above | |
| 33. |
JavaScript For Loops contains the following important parts.i) The loop initialization to start value.ii) The test statement to test if the given condition is True or not.iii) The iteration statement to increase or decrease counter.iv) The end statement to finish the loop. |
| A. | i, ii and iii only |
| B. | i, iii and iv only |
| C. | i, ii and iv only |
| D. | All i, ii, iii, and iv |
| Answer» B. i, iii and iv only | |
| 34. |
Which of the following is NOT an operator used in JavaScript? |
| A. | Arithmetic Operator |
| B. | Comparison Operator |
| C. | Conditional Operator |
| D. | Static Operator |
| Answer» E. | |
| 35. |
State whether the following statements are True or False.i) JavaScript ignores spaces, tabs and newlines that appear in JavaScript program.ii) Semicolons are necessary while writing JavaScript statements.iii) JavaScript is a case-sensitive language. |
| A. | i- True, ii- False, iii-True |
| B. | i- False, ii- True, iii-True |
| C. | i-True, ii-True, iii-False |
| D. | i- False, ii- False, iii-True |
| Answer» B. i- False, ii- True, iii-True | |
| 36. |
The number of processes completed per unit time is known as ............ |
| A. | output |
| B. | throughput |
| C. | efficiency |
| D. | capacity |
| Answer» C. efficiency | |
| 37. |
Which of the following are the advantages of JavaScript?i) Less server interactionii) Immediate feedback to visitorsiii) Reading or writing of filesiv) Increased interactivity |
| A. | i, ii and iii only |
| B. | i, iii and iv only |
| C. | i, ii and iv only |
| D. | All i, ii, iii, and iv |
| Answer» D. All i, ii, iii, and iv | |
| 38. |
On what principle does Distributed OS work? |
| A. | File foundation |
| B. | Single system image |
| C. | Multi system image |
| D. | Networking image |
| Answer» C. Multi system image | |
| 39. |
Semaphore can be used for solving ............ |
| A. | wait u0026 signal |
| B. | deadlock |
| C. | synchronization |
| D. | priority |
| Answer» D. priority | |
| 40. |
The program is known as .................. which interacts with the inner part of called kernel. |
| A. | compiler |
| B. | device driver |
| C. | protocol |
| D. | shell |
| Answer» E. | |
| 41. |
SSTF stands for ........................ |
| A. | Small seek Time First |
| B. | Simple Seek Time First |
| C. | Shortest Seek Time First |
| D. | Synchronous Seek Time First |
| Answer» D. Synchronous Seek Time First | |
| 42. |
A special purpose register that is set to the highest address occupied by the OS code is ........... |
| A. | fence register |
| B. | general purpose register |
| C. | protection register |
| D. | control register |
| Answer» B. general purpose register | |
| 43. |
Virtual memory is .............. |
| A. | Simple to implement |
| B. | Used by all major commercial OS |
| C. | Less efficient memory utilization |
| D. | Less effective |
| Answer» C. Less efficient memory utilization | |
| 44. |
A thread is a .................... precess. |
| A. | heavy weight |
| B. | multiprocess |
| C. | inter thread |
| D. | light weight |
| Answer» E. | |
| 45. |
Multiprogramming systems ................. |
| A. | are easier to develop than single programming systems. |
| B. | execute each job faster |
| C. | execute more jobs in the same time. |
| D. | are used only on large main frame computers |
| Answer» D. are used only on large main frame computers | |
| 46. |
As OS program module that selects the next job to be admitted for execution is called as ..... |
| A. | scheduler |
| B. | compiler |
| C. | throughput |
| D. | dispatcher |
| Answer» B. compiler | |
| 47. |
A small program which loads OS into the memory is called as ........... |
| A. | ROM |
| B. | bootstrap loader |
| C. | BIOS |
| D. | RAM |
| Answer» C. BIOS | |
| 48. |
The simplest way of deadlock is to ... |
| A. | preempt a resource |
| B. | rollback |
| C. | kill one of the processes |
| D. | lock one of the processes |
| Answer» D. lock one of the processes | |
| 49. |
Which of the following describes the ability of an OS to support multiple, concurrent paths of execution within a single process? |
| A. | Multithreading |
| B. | Multiprocessing |
| C. | Multitasking |
| D. | Multiprogramming |
| Answer» B. Multiprocessing | |
| 50. |
The ……………. Determines when a page should be brought into main memory. |
| A. | Fetch policy |
| B. | Placement policy |
| C. | Replacement policy |
| D. | Resident set management |
| Answer» B. Placement policy | |