All Coursera Quiz Answers

Building Database Applications in PHP Week 4 Practice Quiz Answer

Hello Friends in this article i am gone to share Coursera Course: Building Database Applications in PHP Week 4 Practice Quiz Answer with you..

Building Database Applications in PHP Week 4 Practice Quiz Answer


Visit this link:  Building Database Applications in PHP Week 3 Practice Quiz Answer


 

Routing

Question 1) Refreshing the page after a [_____] request might cause unintended consequences.

  • POST

Question 2) Double POST problems can be solved by:

  • None of these
  • Using header(‘Refresh-Post: off’)
  • Redirecting to a URL after the POST data has been processed
  • Replacing POST with GET

Question 3) A simple rule for generating a server response is to never generate a page with HTML content when the server receives [_____] data.

  • POST

Question 4) HTML pages can only be requested using GET request.

  • True
  • False

Question 5) Messages that show up once and are gone when you refresh the page are often called.

  • sub-messages
  • perf messages
  • instant messages
  • chat messages
  • flash messages

Question 6) What is the correct sequence to avoid double post?

  • POST > Redirect > GET
  • POST > GET > Redirect
  • GET > Redirect > POST
  • POST > POST > Redirect

Question 7) The PHP header() function affects which part of the request / response cycle?

  • response headers
  • request headers
  • SQL headers
  • The Content-length header
  • The <head> area of the HTML document
  • The query parameters

Question 8) In the request/response cycle, when the browser sends form data using a POST request, how are the names and values sent to the server?

  • The browser sends the POST request on one server connection and makes a second connection to send the POST data
  • The server makes a network connection back to the browser and retrieves POST data if it needs the POST data
  • As parameters on the URL that is part of the POST request
  • After the browser sends the GET request, request headers, and a blank line
  • After the browser sends the POST request, request headers, and a blank line

Question 9) Having a session means that the user is logged in.

  • True
  • False

Question 10) Typically sessions are not established until after the user logs in successfully.

  • True
  • False

Question 11) What data changes when you successfully log in?

  • Session id
  • Session duration
  • Data in the session
  • Session cookie in the browser