Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Sys Day 3

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Which statement best describes a web cookie?

a)

A small text file stored by websites

b)

A server-side session variable only

c)

An executable program installed by apps

d)

A cloud database shared across sites

2.

A cookie with name session_id and value 17cbad3fd19 most likely serves which purpose?

a)

Caches large media resources

b)

Tracks number of visits count

c)

Saves color preference setting

d)

Identifies a logged-in user

3.

Which is a common use of cookies on e-commerce sites?

a)

Host the entire product catalog

b)

Render 3D product animations

c)

Encrypt all payment transactions

d)

Track items in your shopping cart

4.

Which statement best defines a web session in user authentication?

a)

A temporary state starting at login and ending on logout

b)

A browser file that permanently stores all user details

c)

A background process that runs even without user login

d)

A network connection that persists after closing the browser

5.

A website needs to remember a logged-in user across pages. Which mechanism correctly describes this process?

a)

Browser caches full profile data and replays it on navigation

b)

Browser stores session ID in a cookie and sends it on each request

c)

Server embeds username into page HTML for later recovery

d)

Server stores the password in a cookie and reads it every time

6.

After successful login, which item is most appropriately stored inside the cookie to maintain login state?

a)

Random session ID linking to server-side data

b)

Encrypted password for quick verification

c)

User’s full profile including preferences

d)

Plaintext username and visit counter

7.

Which option best captures the session analogy described: a session is most like a visitor pass because it primarily does what?

a)

Displays your full identity details to everyone

b)

Grants unlimited access without verification steps

c)

Signals to security that you are authorized to be present

d)

Stores personal information permanently on the badge

8.

In an OAuth 2.0 login, what is the role of the access token?

a)

It stores the user's plaintext password

b)

It grants limited access on behalf of the user

c)

It resets the user's credentials remotely

d)

It creates a new user account automatically

9.

Why do websites offer buttons like "Log in with Google"?

a)

To bypass identity verification entirely

b)

To avoid creating any user sessions at all

c)

To leverage OAuth for delegated authorization

d)

To force users to share passwords with apps

10.

In the illustrated flow, who verifies the user's identity before issuing an access token?

a)

The identity provider such as Google

b)

The browser extension

c)

The application itself

d)

The local database on the device