click below
click below
Normal Size Small Size show me how
App dev Mod 4
App dev Mod 5&6
| Question | Answer |
|---|---|
| Format character for numeric representation of the day of the week | w |
| $x = ceil(5.2);echo $x; What is the output? | 6 |
| Performs the same way as the include function. Generate a fatal error message if file not found stopping the script at that point. | require |
| Format character for whether it’s a leap year | L |
| define(‘Max_n’,10); What is the name of the define function? | Max_n |
| Most of the developers used include functions for their header and footer. | True |
| x = min(10, 5 , 3, 20);echo $x; What is the output? | 3 |
| Syntax to make a string’s first character uppercase | string ucfirst(string $str) |
| Syntax for require once | require_once(“filename.inc”); |
| Including files can use to write their database connection and so on. | True |
| $val=643322.7834 echo number_format($val,3,’.’,’,’); what is the output? | 643,322.783 |
| returns the next lowest integer by rounding the value downwards | floor() |
| returns part of a given string | substr |
| $x = rand(5,10);echo $x; What is the maximum value of the output? | 10 |
| $x = max(5.3, 5 , 6, 3);echo $x; What is the output? | 6 |
| Format character for lowercase Ante meridiem and Post meridiem | a |
| Format a number with grouped thousand | Number format |
| Most of the developers used include functions for their | Footer |
| Syntax to get a part of a given string | string substr ( string $string , int $start [, int $length ] ) |
| Includes and evaluates the specified file. Generate a warning on failure message if file not found. | include |
| returns the next highest integer by rounding the value upwards | ceil() |
| Format character for day of the month without leading zeros | j |
| Format character for a full textual representation of the day of the week | l |
| format character for day of the month, 2 digits with leading zeros | d |
| Syntax for floor | floor() |
| Key word to declare a define function | define |
| syntax to transform a string to upper case | string strtoupper (string $str) |
| $x = ceil(10.01);echo $x; What is the output? | 11 |
| strip HTML and PHP tags from a string. | strip_tags() |
| $x = rand(5,10);echo $x; What is the minimum value of the output? | 5 |
| Syntax for random number with minimum and maximum value | int rand(int $min, int $max) |
| used to declare constants | define |
| syntax for reverse a string | string strrev (string $string) |
| Syntax for minimum value | mixed min(mixed $value) |
| Which of the following is not part of function for array manipulation | Destroy |
| string white spaces or other characters from the beginning of a string | ltrim() |
| $x = floor(5.2);echo $x; What is the output? | 5 |
| Syntax for explode | array explode ( string $delimiter , string $string [, int $limit ] ) |
| converts the first character of each word in a string to uppercase | ucwords() |
| converts string to lowercase | strtolower |
| $x = min(7, 4.7 , 4.25 , 5);echo $x; What is the output? | 4.25 |
| Return the highest value | max() |
| Syntax for unset | void unset ( mixed $var [, mixed $...] ) |
| used to format a local time and date | date() |
| can only be assigned a scalar value, like a string or a number. | Constant |
| Syntax for a number format | number_format |
| convers string to uppercase | strtoupper |
| Format character for the day of the year (starting from 0) | z |
| syntax for random | int rand(void) |
| Syntax of define | define(‘NAME’,’value’); |
| Same as require function except it includes the file only once. | require_once |
| return the value length of a string | strlen |
| Format character for ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0) | N |
| destroys the specified variable | unset |
| In including files You may write the file with an extension name of ______ rather than .php to serve as a fragment of your program code. | .inc |
| Syntax for include | include(“filename.inc”); |
| Format character for number of days in the given month | t |