Practice Question and Answer

Q: What is session storage and how can you create one? 1327 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

Session storage is same like local storage but the data is valid for a session. In simple words the data is deleted as soon as you close the browser. To create a session storage you need to use “sessionStorage.variablename” . In the below code we have a created a variable called as “clickcount”. If you refresh the browser the count increases. But if you close the browser and start again the “clickcount” variable starts from zero. if(sessionStorage.clickcount) { sessionStorage.clickcount=Number(sessionStorage.clickcount)+1; } else { sessionStorage.clickcount = 0; }

Q: What are meta tags used for? 1005 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

-To store information usually relevant to browsers and search engines. -To only store information usually relevant to browsers -To only store information about search engines. -To store information about external links

Q: How would you automatically transfer your visitors to a new web page? 1652 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

- You can do it with the help of meta tag mentioned below:    - Place this tag between .  - It will load yousite.com in 2 seconds.

Q: You want only a vertical scrollbar and no horizontal scrollbar on your page. How would you do it? 1474 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

- This can be done by defining the frame with SCROLLING = auto and having content to just fit into this frame.  - SCROLLING="yes" gets the scroll bar on both the sides, even when not needed.  - SCROLLING="no" doesn’t get the scrollbars at all, even when they are needed.

Q: What are new Media Elements in HTML5? 870 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

Following are the New Media Elements are present in HTML5:

Q: What is the purpose of canvas in HTML? 1346 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

Canvas is an element that is used for the graphics for the web page. It uses JavaScript to bring the graphics functionality live. It allows easy way to draw the graphics and use different types of tools to create drawing on the web page. Canvas is just a rectangular area that controls the pixel of every element that is used in the web page. Canvas uses methods like paths, circles, etc. The canvas element will be used as follows: The canvas element includes id, width and height settings and with the javascript it gets used like:

Q: What are three ways to reduce page load time? 1513 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

There are many answers here: Reduce image sizes, remove unnecessary widgets, HTTP compression, put CSS at the top and script references at the bottom or in external files, reduce lookups, minimize redirects, caching, etc.

Q: The instrument of instructions contained in the Government of India Act, 1935 has been incorporated in the Constitution of India in the year 1950 as ______ 1563 0

  • 1
    Fundamental Rights
    Correct
    Wrong
  • 2
    Directive Principles of the State Policy
    Correct
    Wrong
  • 3
    Fundamental Duities
    Correct
    Wrong
  • 4
    Emergency Provisions
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 4. "Emergency Provisions"
Explanation :

Answer: D) Emergency Provisions Explanation:

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully