• الصفحة الرئيسية
  • إتصل بنا
  • سياسة الخصوصية
Logo
  • الرئيسية
  • أفكار
  • صحة
  • معلومات
  • عجائب وغرائب
  • تكنولوجيا
الصفحة الرئيسية JavaScript Multiple Choice Question (MCQ) Solved MCQ on JavaScript Window Object set-4

Solved MCQ on JavaScript Window Object set-4

الكاتب ahmed في 11:22 PM JavaScript Multiple Choice Question (MCQ)
1. State whether the following statement are True or False for timers.

i) Like setTimeout(), setInterval() returns a value that can be passed to clearInterval() to cancel any future invocations of the scheduled function.

ii) If you call setTimeout() with a time of 0ms, the function you specify is not invoked right way.

A. i-True, ii-False

B. i-False,ii-True

C. i-True, ii-True

D. i-False, ii-False


2. The href property of the .......... object is a string that contains the complete text of the URL.

A. location

B. pathname

C. port

D. search


3. The .......... method of the Location object makes the window load and display the document at the URL you specify.

A. search()

B. load()

C. replace()

D. assign()


4) The ......... method removes the current document from the browsing history before loading a new document.

A. search()

B. remove()

C. replace()

D. assign()


5) Which of the following statements are True or False for Location object.

i) When a script unconditionally loads a new document, the replace() method is often a better choice than assign().

ii) In addition to the assign() and replace() methods, the Location object also defines reload(), which makes the browser reload the document.

iii) A only way to make the browser navigate to a new page is to simply assign the new full URL directly to the location property.

A. i-True, ii-True, iii-False

B. i-True, ii-False, iii-False

C. i-False, ii-True, iii-True

D. i-False, ii-False, iii-True


6) The .......... properties of the location object are writable, and setting them changes the location URL and also causes the browser to load a new document.

A. URL composition

B. URL decomposition

C. URL parsing

D. URL component


7) The properties like protocol, host, hostname, port, pathname, search and hash of Location object specify the various individual parts of the URL, they are known as ............ properties.

A. URL composition

B. URL decomposition

C. URL parsing

D. URL component


8) Which of the following statements are True for history property of the window object.

i) The length property of the history object specifies the number of elements in the browsing history list.

ii) The history object has back() and forward() methods that behave like the browsers back and forward buttons do.

A. i only

B. ii only

C. Both i and ii

D. None of the above


9) ......... method of the history object, takes an integer argument and can skip any number of pages forward for positive arguments or backward for negative arguments in the history list.

A. back()

B. backward()

C. forward()

D. go()


10) ........ method brings webpage back like clicking the back button twice.

A. history.go(-2)

B. history.back.back()

C. history.back(2)

D. history.go(2)


11) Match the following properties of Navigator object to their description.

i) appName            a) that identifies the operating system

ii) appVersion        b) all the information along with appVersion

iii) UserAgent        c) browser vender and version information

iv) platform           d) full name of the web browser

A. i-b, ii-c, iii-d, iv-a

B. i-c, ii-d, iii-a, iv-b

C. i-d, ii-c, iii-b, iv-a

D. i-a, ii-d, iii-c, iv-b


12) The .......... property specifies whether the browser is currently connected to the network.

A. navigator.online

B. geolocation

C. javaEnabled()

D. cookiesEnabled()


13) A ........... object that defines an API for determining the user's geographical location.

A. navigator.online

B. geolocation

C. javaEnabled()

D. cookiesEnabled()


14) .......... displays a model dialog box containing HTML formatted content and allows arguments to be passed to, and a value returned from, the dialog.

A.alert()

B. conform()

C. prompt()

D. showModelDialog()


15) State whether the following statements are True or False for methods for displaying simple dialog box on window object.

i) alert() displays a message to the user and waits for the user to dismiss the dialog.

ii) conform() displays a message, waits for the user to click an OK or Cancel button and returns positive or negative value.

iii) prompt() displays a message, waits for the user to enter a string, and returns that string.

A. i-True, ii-False, iii-True

B. i-True, ii-True, iii-False

C. i-False, ii-True, iii-True

D. i-False, ii-False, iii-False



Answers:

1) C. i-True, ii-True
2) A. location
3) D. assign()
4) C. replace()
5) A. i-True, ii-True, iii-False
6) B. URL decomposition
7) B. URL decomposition
8) C. Both i and ii
9) D. go()
10) A. history.go(-2)
11) C. i-d, ii-c, iii-b, iv-a
12) A. navigator.online
13) B. geolocation
14) D. showModelDialog()
15) A. i-True, ii-False, iii-True


Related Posts:

  • Solved MCQ of JavaScript set-1

  • MCQ of JavaScript with Answer set-2

  • Solved MCQ of CSS set-1

  • MCQ of CSS With Answer set-2

  • Objective Questions of CSS with Answer set-3

  • Solved Objective Questions of CSS set-4

  • Solved MCQ of Java Set-1

  • Solved MCQ of Java Beans set-1

  • Solved MCQ of Internet and HTML set-3

  • Solved MCQ of Database Management System Set - 8

  • Solved MCQ of System Analysis and Design Set-3

  • Solved MCQ of Data Structure Set - 2

  • MCQ of Computer Networking with answer set-4

For more Multiple Choice Questions (MCQs): Click Here

شارك المقال :
Tweet
✚

مقالات ذات صلة

التالي
المشاركةالتالية
السابق
المشاركة السابقة

تحويل كودإخفاء محول الأكواد الإبتساماتإخفاء

شكرا لمشاركتنا رأيك
Subscribe to: Post Comments (Atom)
  • Facebook
  • twitter
  • googleplus
  • youtube
  • linkedin

الأكثر زيارة

  • What is Information ?
    Information  can be defined as data that has been processed into a form that is meaningful to the recipient and is of real or perceived valu...
  • What is Information Technology?
    Definitions of  Information technology  ( IT ) It is a branch of engineering dealing with the use of computers and telecommunications equipm...
  • بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017 لن تصدق من هي فرح صدقي ↓↓  لمشاهدة الصور والخبر كامل اضغط هنا  ↓↓ رابط المو...
  • Interview Questions on Stack and Queue in Data Structure set-2
    1) The queue in which the insertion takes place in the first position after of last element is a ...... A. priority B. dequeue C. circular D...
  • List of Top 65 Search Engine Submission Add URLs.
    List of Top 65 Search Engine Submission Add URLs.
    To get your site on the top ranking on the search engine results, Your site or URL must be indexed by Search Engines. For that you have to s...
  • List of Best Keyword Research Tools for Better SEO
    List of Best Keyword Research Tools for Better SEO
    Everyone needs to do keyword research work for the site before starting search engine optimization work as the first and most essential tas...
  • What are the different types of scheduling methods?
    Process scheduling is one way for a processor to handle n processes , by scheduling the execution process. Each process is executed one by ...
  • Solved MCQ on Database Backup and Recovery in DBMS set-1
    1) Which of the following is not a recovery technique? A. Deferred update B. Immediate update C. Two-phase commit D. Recovery management 2)C...
  • Solved MCQ on Distributed Database Transaction Management set-4
    1) Commit and rollback are related to .......... A. data integrity B. data consistency C. data sharing D. data security 2) The transaction w...
  • Solved MCQ on Fundamental of DBMS set-10
    1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relatio...

الأقسام

  • Artificial Intelligence(AI)
  • Backlinking
  • Basic IT
  • Best List
  • Blogging Tips
  • C
  • C#
  • C++
  • Computer Architecture
  • Computer Fundamental
  • Computer Security
  • Computer/IT Officer Exam
  • CSS
  • Data Mining and Warehousing
  • Data Recovery Tools
  • Data Structure
  • Database Management System
  • E-commerce
  • E-government
  • Internet & Web Designing
  • IT Law
  • IT Tips and Tricks
  • IT Tutorials
  • Java
  • JavaScript
  • Keyword Research Tools
  • MIS
  • Multiple Choice Question (MCQ)
  • Networking
  • Online Earning
  • Online IT Jobs
  • Operating System
  • Oracle Forms and Reports
  • Programming Guide
  • Programming Language
  • SEO
  • Social Networking Sites
  • Software Download
  • Software Engineering
  • System Analysis and Design
  • Top List
  • VB.Net
  • صحة
  • عجائب وغرائب

الأرشيف

  • ►  2017 (4)
    • ►  November (3)
    • ►  October (1)
  • ►  2016 (5)
    • ►  April (5)
  • ▼  2015 (87)
    • ►  August (1)
    • ►  July (8)
    • ▼  June (13)
      • Top 10 Questions that Computer Beginner may Asked
      • How to Know Your Computer Configuration Easily
      • Top 5 Free Methods to Make Your Computer Faster
      • How to Keep Computer from Sleeping
      • How to Share Printer for Computers on LAN
      • How to Share Drive Folder and File in Computer Net...
      • Solved Objective Questions on jQuery Library set-1
      • Solved MCQ on Handling Events in Client Side JavaS...
      • MCQ on Scripting Documents in Client Side JavaScri...
      • MCQ on Scripting Documents in Client Side JavaScri...
      • Solved MCQ on Scripting Documents in JavaScript set-5
      • Solved MCQ on JavaScript Window Object set-4
      • Solved MCQ on Basic Client Side JavaScript set-3
    • ►  May (2)
    • ►  April (2)
    • ►  March (4)
    • ►  February (20)
    • ►  January (37)
  • ►  2014 (77)
    • ►  December (31)
    • ►  November (4)
    • ►  September (4)
    • ►  August (11)
    • ►  July (8)
    • ►  June (2)
    • ►  May (2)
    • ►  April (2)
    • ►  March (2)
    • ►  February (7)
    • ►  January (4)
  • ►  2013 (132)
    • ►  December (11)
    • ►  November (6)
    • ►  October (4)
    • ►  September (6)
    • ►  August (16)
    • ►  July (9)
    • ►  June (9)
    • ►  May (12)
    • ►  April (13)
    • ►  March (23)
    • ►  February (6)
    • ►  January (17)
  • ►  2012 (59)
    • ►  December (15)
    • ►  November (20)
    • ►  October (21)
    • ►  September (3)

إنضم لنا

© 2017 أفكار جميع الحقوق محفوظة