View Count: 0
Duration: 39 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 10
Cookies are saved as 
Options:
  1. name
  2. value
  3. name and value pair
  4. none
View Answer/Explanation:
c
Explanation:

Question No: 2 of 10
cookies stored in 
Options:
  1. client machine
  2. server machine
  3. browser
  4. all
View Answer/Explanation:
a
Explanation:

Question No: 3 of 10
JavaScript how to  create, read, and delete cookies 
Options:
  1. document(cookie)
  2. document.cookie
  3. document.cookie()
  4. none
View Answer/Explanation:
b
Explanation:

Question No: 4 of 10
How to create JavaScript, a cookie can be created 
Options:
  1. document(cookie) = "username=John Doe";
  2. document.cookie = username=John Doe;
  3. document.cookie = "username=John Doe";
  4. document.cookie() = "username=John Doe";
View Answer/Explanation:
c
Explanation:

Question No: 5 of 10
cookie is deleted when the browser is closed 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:

Question No: 6 of 10
How to write cookie expire date and time 
Options:
  1. document.cookie = "username=John Doe; expires=Thu, 18 Dec 2013 12:00:00 UTC";
  2. document.cookie() = "username=John Doe; expires=Thu, 18 Dec 2013 12:00:00 UTC";
  3. document.cookie = "username=John Doe”; expires=Thu, 18 Dec 2013 12:00:00 UTC;
  4. All
View Answer/Explanation:
a
Explanation:

Question No: 7 of 10
With JavaScript, cookies can be read 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:

Question No: 8 of 10
How to delete cookie 
Options:
  1. document.cookie=delete;
  2. document.cookie=expire;
  3. cookie.expire;
  4. cookie.delete;
View Answer/Explanation:
c
Explanation:

Question No: 9 of 10
which is valid javascript function 
Options:
  1. A function to set a cookie value
  2. A function to get a cookie value
  3. A function to check a cookie value
  4. All
View Answer/Explanation:
d
Explanation:

Question No: 10 of 10
which is valid 
Options:
  1. function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; }
  2. function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; }
  3. function checkCookie() { var user = getCookie("username"); if (user != "") { alert("Welcome again " + user); } else { user = prompt("Please enter your name:", ""); if (user != "" && user != null) { setCookie("username", user, 365); } } }
  4. All
View Answer/Explanation:
d
Explanation:

  1