Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JavaScript C15 Question 10 (1 point) Which of the following is allowed in a cookies value? Question 10 options: space number comma semicolon Save Question

JavaScript C15

Question 10 (1 point)

image text in transcribed

Which of the following is allowed in a cookies value?

Question 10 options:

space

number

comma

semicolon

Save

Question 11 (1 point)

image text in transcribed

Code example 15-1 var cookie = "username=mike2009"; cookie += "; max-age=" + 365 * 24 * 60 * 60; cookie += "; path=/"; document.cookie = cookie;

(Refer to code example 15-1.) This code

Question 11 options:

creates a cookie thats removed when the user closes the browser

creates a cookie thats stored for 1 year

creates a cookie thats stored for 365 minutes

does not create a cookie

Save

Question 12 (1 point)

image text in transcribed

Code example 15-1 var cookie = "username=mike2009"; cookie += "; max-age=" + 365 * 24 * 60 * 60; cookie += "; path=/"; document.cookie = cookie;

(Refer to code example 15-1.) This code

Question 12 options:

creates a cookie with a name of username and a value of mike2009

creates a cookie with a name of max-age and a value of 31536000.

creates a cookie with a name of path and a value of /.

does not create a cookie

Save

Question 13 (1 point)

image text in transcribed

Web storage stores data in the browser in

Question 13 options:

arrays

strings

key/value pairs

session

Save

Question 14 (1 point)

image text in transcribed

Which of the following statements is not true of web storage?

Question 14 options:

You can store up to 5MB of data.

Its supported by every modern browser.

You can store data indefinitely or for the browser session.

The data in web storage is passed to the server with every HTTP request.

Save

Question 15 (1 point)

image text in transcribed

The main difference between local storage and session storage is

Question 15 options:

local storage is stored indefinitely; session storage is lost when the browser closes

session storage is stored indefinitely; local storage is lost when the browser closes

session storage has a shortcut syntax and local storage doesnt

local storage has a clear() method and session storage doesnt

Save

Question 16 (1 point)

image text in transcribed

Which of the following statements gets the same result as this statement? localStorage.name = "Grace";

Question 16 options:

localStorage.setItem("name", "Grace");

localStorage.getItem("name");

localStorage.removeItem("name");

localStorage.clear();

Save

Question 17 (1 point)

image text in transcribed

Which of the following statements stores an item in the browser indefinitely?

Question 17 options:

sessionStorage.setItem("name", "Grace");

sessionStorage.getItem("name");

localStorage.setItem("name", "Grace");

localStorage.getItem("name");

Save

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mysql Examples Explanations Explain Examples

Authors: Harry Baker ,Ray Yao

1st Edition

B0CQK9RN2J, 979-8872176237

More Books

Students also viewed these Databases questions

Question

22. Evaluate the determinant of the matrix B where B is defined by

Answered: 1 week ago

Question

Write formal and informal proposals.

Answered: 1 week ago

Question

Describe the components of a formal report.

Answered: 1 week ago

Question

Write formal and informal reports.

Answered: 1 week ago