Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password

Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

SA2

Quiz yourself by thinking what should be in each of the black spaces below before clicking on it to display the answer.
        Help!  

Question
Answer
Each member of the array index references a corresponding value and can be a simple numerical reference to the value’s position in the series, or it could have some direct correlation to the value. True False   show
🗑
Global Variables is declared inside a function and is only available within the function in which it is declared. Group of answer choices False True   show
🗑
show Global  
🗑
show True  
🗑
show True  
🗑
$f = array( '102' => "red", '101' => "blue", '100' => "yellow"); krsort($f); print_r($f); What is the output of the code?   show
🗑
param – is the formal parameters of the function. Parameter must follow the rule of naming dentifier. Group of answer choices True False   show
🗑
Array is used to aggregate a series of similar items together. Group of answer choices False True   show
🗑
show orange  
🗑
You can create a function inside of a function Group of answer choices True False   show
🗑
$f = array( '102' => "red", '101' => "blue", '100' => "yellow"); ksort($f); print_r($f); What is the output of the code?   show
🗑
Sorts by key in reverse order Group of answer choices krsort($array) usort($array) ksort($array) kusort($array)   show
🗑
Sorts by a function Group of answer choices krsort($array) usort($array) ksort($array) kusort($array)   show
🗑
function a($a,$b){ return $a+$b; } echo a(6,5); what is the value of $a? 11 6 Error 5   show
🗑
prints additional information about the size and type of the values it discovers   show
🗑
foreach($arr as ______) $value val val$ value$   show
🗑
show True  
🗑
is one that declared outside a function and is available to all parts of the program.   show
🗑
show Error, Count() != count()  
🗑
is a statement used to iterate or loop through the element in an array.   show
🗑
show rsort($array)  
🗑
PHP array does not need to declare how many elements that the array variable have. Group of answer choices False True   show
🗑
show True  
🗑
show function called variable  
🗑
$t = 100; function one(){ echo “1000”; } one(); what is the value of the $t after execute the code?   show
🗑
show True  
🗑
foreach(____ as $value) Group of answer choices arr$ array $arr arr   show
🗑
$g = 200; function a(){echo “5”;} function b(){echo “4”;} b(); what is the output of the code?   show
🗑
The foreach statement is use to iterate through the element in an array. Group of answer choices False True   show
🗑
show asort($array)  
🗑
show Function name(param){}  
🗑
functions that are built-in into PHP to perform some standard operations   show
🗑
What is the output? function disp(){ function disp2(){ echo “hello”; } } disp(); disp2();   show
🗑
show arsort($array)  
🗑
$num=array(1,2,3,4,5); foreach(num as $val){ echo $val; } Check the code if valid or invalid?   show
🗑
You can pass values to a function and you can ask functions to return a value. Group of answer choices True False   show
🗑
show True  
🗑
foreach($arr as ___ => $value){ //do something } $get $set $var $key   show
🗑
Syntax for foreach Group of answer choices foreach($arr){} foreach{}($arr as $value) foreach($value){} foreach($arr as $value){}   show
🗑
You can use only 10 for Array elements Group of answer choices False True   show
🗑
show False, should be global  
🗑
show still 100  
🗑
show local variable  
🗑
function keyword is used in PHP to declare a function. Group of answer choices False True   show
🗑
You use can functions in different ways. Group of answer choices True False   show
🗑
is a group of PHP statements that performs a specific task. Functions are designed to allow you to reuse the same code in different locations. Group of answer choices Arrays Variables Operators Functions   show
🗑
functions that are provided by the user of the program.   show
🗑
show apple  
🗑
Functions can only have 1 parameter Group of answer choices True False   show
🗑
show True  
🗑
function a($a,$b){ return $a+$b; } echo a(5,4); what is the name of the parameter?   show
🗑
Using foreach statement you can display both the keys and value of each element in the array. Group of answer choices True False   show
🗑
show 12345  
🗑
function disp(){ function disp2(){ echo “hello”; } } Disp(); disp2();   show
🗑
show True  
🗑
var_dump function is same as print_r function except it adds additional information about the data of each element. Group of answer choices True False   show
🗑
show 47  
🗑
show 5  
🗑
show True  
🗑
show function called variable  
🗑
show C and C++  
🗑
function a($a,$b){ return $a+$b; } echo a(6,5); what is the value of $a?   show
🗑
show strlen  
🗑
show string ucfirst(string $str)  
🗑
Most of the developers used include functions for their Group of answer choices Content Titles Body Footer   show
🗑
show string strip_tags(string $str [, string $allowable_tags ])  
🗑
Including files can use to write their database connection and so on. Group of answer choices False True   show
🗑
Number format can include thousand separator Group of answer choices False True   show
🗑
show ucfirst()  
🗑
show strtolower  
🗑
show mixed max(mixed $value)  
🗑
Number format can show or hide the decimal places Group of answer choices False True   show
🗑
Syntax to get a part of a given string string strpart ( string $string , int $start [, int $length ] ) string strsub ( string $string , int $start [, int $length ] ) string substr ( string $string , int $start [, int $length ] )   show
🗑
show True  
🗑
Syntax for include once Group of answer choices filename(“include_once”); Include_once(“filename.inc”); Include_once(filename.inc); Include_once(filename.php);   show
🗑
show error  
🗑
is a statement used to iterate or loop through the element in an array.   show
🗑
show True  
🗑
show True  
🗑
function disp(){ function disp2(){ echo “hello”; } } disp2();   show
🗑
Format character for ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0)   show
🗑
used to format a local time and date   show
🗑
show w  
🗑
show int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) (correct choice shows strops)  
🗑
show .inc  
🗑
show substr  
🗑
Split a string by string Group of answer choices Explode Implode Unset Destroy   show
🗑
Syntax to stripped white spaces or other characters from the beginning and end of a string.   show
🗑
show include(“filename.inc”);  
🗑
find the position of the first occurrence of a substring in a given string Group of answer choices stringpos strpos posstr posstring   show
🗑
show 6  
🗑
Function can only do something without passing values. Group of answer choices True False   show
🗑
Array index in PHP can be also called as array storage Group of answer choices True False   show
🗑
show sort($array)  
🗑
$s = “variable”; function f(){ echo “function called ”; echo “$s”; } f(); what is the output of the code? function variable function called undefined variable: s function called variable function called   show
🗑
Syntax for implode? string implode ( string $glue , array $pieces ) string implode ( array $pieces ) string implode ( int $glue , array $pieces ) string implode ( array $pieces )   show
🗑
show 5  
🗑
Syntax to strip white spaces or other characters form the end of a string.   show
🗑
Format character for a two digit representation of a year Choices: y Y C R   show
🗑
show 6  
🗑
$x = max(10, 5 , 3, 20);echo $x; What is the output?   show
🗑
show ucwords()  
🗑
show rand()  
🗑
show string strrev (string $string)  
🗑
show int rand(int $min, int $max)  
🗑
A constant’s value cannot be changed. Group of answer choices False True   show
🗑
show Y (upper case)  
🗑
29/30   show
🗑
Function count($val){ $c = 0; $c += $val; echo $c; } count(10); count(5); What is the output of the code?   show
🗑
Sorts by value in reverse order; assign new number as the keys   show
🗑
Syntax of a function Group of answer choices Function name {param} Function name(param){} Param_function Param (function name){}   show
🗑
show True  
🗑
show True  
🗑
show True  
🗑
show hello  
🗑
$t = 100; function one(){ echo “value”; } one(); what is the function name inside of the code?   show
🗑
define(‘Max_n’,10); What is the name of the define function? Group of answer choices Define Max_n Max 10   show
🗑
show number_format  
🗑
show require_once(“filename.inc”);  
🗑
Format character for English ordinal suffix for the day of the month, 2 characters Group of answer choices C D E S   show
🗑
Format character for a textual representation of the day, three letters Group of answer choices d D DAY day   show
🗑
syntax to transform a string to upper case Group of answer choices string strupper (string $str) string strtoupper (string $str) string upperstr (string $str) string stringtoupper (string $str)   show
🗑
There will be a warning text if the include file not found Group of answer choices True False   show
🗑
show trim()  
🗑
show 5  
🗑
Format character for a full textual representation of the month, such as January or March Group of answer choices M T J F   show
🗑
$val=234123.456; echo number_format($val); what is the output? Group of answer choices 234,123.46 234,123 234,123.4560 234123.46   show
🗑
Format character for lowercase Ante meridiem and Post meridiem Group of answer choices P a p A   show
🗑
show 8  
🗑
returns the next highest integer by rounding the value upwards Group of answer choices up() ceil() top() high()   show
🗑
show define(‘NAME’,’value’);  
🗑
$x = min(7, 4.7 , 4.25 , 5);echo $x; What is the output? Group of answer choices 4.7 4.25 7 5   show
🗑
show L  
🗑
show n  
🗑
show 643,322.783  
🗑
$t = 100; function one(){ echo “1000”; } one(); what is the value of the $t after execute the code?   show
🗑
Functions can be user defined generally defined by the user of the program and predefined that are build in using libraries. Group of answer choices False True   show
🗑
$g = 200; function a(){echo “5”;} function b(){echo “4”;} b(); what is the output of the code?   show
🗑
show 9  
🗑
destroys the specified variable Group of answer choices destroy implode explode unset   show
🗑
Syntax for ceil Group of answer choices ceil float ($value) $ceil ($float) $value (ceil) float ceil (float $value)   show
🗑
string white spaces or other characters from the beginning of a string   show
🗑
show string date(string $format [, int $timestamp = time() ])  
🗑
You can separate your PHP file and embed it to your html by using PHP include functions. Group of answer choices True False   show
🗑
show 356342.78  
🗑
String number_format( float $number, int _____; ) Group of answer choices $thousands_sep $dec_points $decimals $points   show
🗑
What do you call a function inside of a function Group of answer choices Loop function Double function Nested function Function fun   show
🗑
PHP has a built-in function to perform operations Group of answer choices False True   show
🗑
show l  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: laqlaq