Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. Suppose an associative array is added to a regular array by these statements: Scart- array) $item-array; Sitoml'itemCode'1 -123; Sitam 'itemName' visual Basic 2010 Sitom[

image text in transcribed
9. Suppose an associative array is added to a regular array by these statements: Scart- array) $item-array; Sitoml'itemCode'1 -123; Sitam 'itemName' visual Basic 2010 Sitom[ 'itemCost' -52.5 Sitem[ 'itemQuantity'-5 Scartt] $item To refer to the "itemCost" element in the associative array that's within the regular array, you would use this code: b. Scart'itemCost'110] d. $item [Scart('ite cost' 10. When you use session tracking, each HTTP request includes a. a URL that stores the session ID b. a cookie that stores the session ID c. a cookie that stores the session data d. a cookie that stores the session ID and the session data 11. If necessary, you can use PHP functions to do all but one of the following. Which one is it? a. get the name of the session cookie b. get the session ID c. generate a new session ID d. get the data for a session ID 12. The function that follows returns function coin toss) if (mt rand (o, 1)0) $coinheads else( $coin 'tails' return $coin; a random value between 0 and 1 a. b. a value of either 0 or 1 c. a value of either "heads" or "tails" d. a reference to the Scoin variable 13. To create a function named randomize that has one parameter that has a default value of 5 and one required parameter that's passed by reference, you start the function like this: a. function randomize ($Gparml, $parm2 5) b. funetion randomize (Sparml-S, $par) c. function randomize (&$parml, Spar 2 5) d. function randomize ($paral-5,parm2) {

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions