Practice Question and Answer
8Q: What is session storage and how can you create one? 1327 05b5cc7d5e4d2b419777514ee
5b5cc7d5e4d2b419777514ee- Show AnswerHide Answer
- Workspace
- SingleChoice
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 05b5cc7d5e4d2b419777514ed
5b5cc7d5e4d2b419777514ed- Show AnswerHide Answer
- Workspace
- SingleChoice
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 05b5cc7d5e4d2b419777514ec
5b5cc7d5e4d2b419777514ec- Show AnswerHide Answer
- Workspace
- SingleChoice
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 05b5cc7d5e4d2b419777514eb
5b5cc7d5e4d2b419777514eb- Show AnswerHide Answer
- Workspace
- SingleChoice
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? 871 05b5cc7d5e4d2b419777514ea
5b5cc7d5e4d2b419777514ea- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
Following are the New Media Elements are present in HTML5:
Q: What is the purpose of canvas in HTML? 1346 05b5cc7d5e4d2b419777514e9
5b5cc7d5e4d2b419777514e9- Show AnswerHide Answer
- Workspace
- SingleChoice
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 05b5cc7d5e4d2b419777514e8
5b5cc7d5e4d2b419777514e8- Show AnswerHide Answer
- Workspace
- SingleChoice
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 05b5cc7d5e4d2b419777514e3
5b5cc7d5e4d2b419777514e3- 1Fundamental Rightsfalse
- 2Directive Principles of the State Policyfalse
- 3Fundamental Duitiesfalse
- 4Emergency Provisionstrue
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 4. "Emergency Provisions"
Explanation :
Answer: D) Emergency Provisions Explanation:

