Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

Quiz#8 PHP -Chapter 6


 

Download  file with the answers

Not a member!
Create a FREE account here to get access and download this file with answers


Quiz#8: Ch6(a)

Question 1
1. When defining a MySQL column type, TINYINT can store values in range
-128 to 127 or (0 to 255 UNSIGNED).
True
False
10 points
Question 2
1. The header() function must be called before any actual output is sent to the browser.
True
False
10 points
Question 3
1. When defining a MySQL column type, VARCHAR(20) and VARCHAR(40) are the same size.
True
False
10 points
Question 4
1. The built-in PHP header() function is used to ______________________________ .

send headers to the browser

display a header on the web page

notify the web administrator that a header is coming

notify the database that a header is being sent
10 points
Question 5
1. In a PHP script, it is possible to use the header() function to send an “Authentication Required” message to the client browser causing it to pop up a Username/Password input window.
True
False
10 points
Question 6
1. The code shown below will give an error.

TrueFalse10 pointsQuestion 71. The include_once() and require_once() functions are handy in situations where multiple files may reference the same included code.For example:File A.php includes File B.php and C.phpFile B.php includes File C.phpTrueFalse10 pointsQuestion 81. The purpose of the following header function is to

 

Set a variable named Location to a value of www.example.com

Set a variable named Location to a value of http://www.example.com

redirect the browser

none of the above
10 points
Question 9
1. The following code outputs ____________________.

 

CONSTANT = “Hello World!”

Hello World!

CONSTANT

none of the above
10 points
Question 10
1. Which of the following functions will enable you to insert code from other files?

include()

require()

include_once()

require_once()

All of the above
10 points

About

Leave a reply

Captcha Click on image to update the captcha .

error: Content is protected !!