Quiz

CoursesToggle Theme

Linux and PHP | Set 1

98 questions

of answered — Question of
Question % complete

"},{"title":"All of the above"}],"correct":0},{"title":"What is the purpose of basename() function in PHP?","options":[{"title":"Returns the last accessed time of the file"},{"title":"Returns the first accessed time of the file"},{"title":"Strips of the path and returns the file name."},{"title":"Strips of the path the returns of the folder name."}],"correct":2},{"title":"In PHP, fgets() is used to read a file one line at a time.","options":[{"title":"TRUE"},{"title":"FALSE"}],"correct":0},{"title":"Which of the following statement produce different output","options":[{"title":""},{"title":""},{"title":""},{"title":""}],"correct":2},{"title":"Which of the following data type is compound datatype supported by PHP.","options":[{"title":"Array"},{"title":"String"},{"title":"Float"},{"title":"Boolean"}],"correct":0},{"title":"Which of the following functions in PHP do not return a timestamp?","options":[{"title":"time()"},{"title":"date()"},{"title":"strtotime()"},{"title":"gmmktime()"}],"correct":1},{"title":"Which of the following are valid float values?","options":[{"title":"4.5678"},{"title":"4"},{"title":"7.00E+04"},{"title":"All of the above"}],"correct":3},{"title":"Which of the following type specifier is invalid in printf() functions.","options":[{"title":"% a"},{"title":"% b"},{"title":"% c"},{"title":"% d"}],"correct":0},{"title":"Transactions are used to treat sets of SQL statements atomically.","options":[{"title":"TRUE"},{"title":"FALSE"}],"correct":0},{"title":"How does the identity operator ===compare two values in PHP?","options":[{"title":"It converts them to common compatible data type and then compares the resulting values."},{"title":"It returns True only if they are both of the same type and value"},{"title":"If the two values are strings, it performs a lexical comparison"},{"title":"It based its comparison on the C strcmp function exclusively"}],"correct":1},{"title":"Which of the following is not an SQL aggregate function?","options":[{"title":"AVG"},{"title":"SUM"},{"title":"MIN"},{"title":"CURRENT_DATE()"}],"correct":3},{"title":"The _____________ statement is used to delete a table in MySQL.","options":[{"title":"DROP TABLE"},{"title":"DELETE TABLE"},{"title":"DEL TABLE"},{"title":"REMOVE TABLE"}],"correct":0},{"title":"The ____________function parses an English textual date or time into Unix timestamp in PHP.","options":[{"title":"strtodate()"},{"title":"stroftime()"},{"title":"strtotime()"},{"title":"str_to_time()"}],"correct":2},{"title":"Which function(s) in PHP computes the difference of arrays?","options":[{"title":"array_diff"},{"title":"diff_array"},{"title":"arrays_diff"},{"title":"diff_arrays"}],"correct":0},{"title":"______________ Returns the time of sunrise for a given day / location in PHP.","options":[{"title":"datesunrise()"},{"title":"date_sunrise()"},{"title":"date-sunrise()"},{"title":"date.sunrise()"}],"correct":1},{"title":"What is the difference between print() and echo() in PHP?","options":[{"title":"print has a return value of 1 so it can be used in expressions where as echo has a void return type"},{"title":"echo() can be used in the CLI version of PHP, while print() can’t"},{"title":"print() can be used in the CLI version of PHP, while echo() can’t"},{"title":"There’s no difference: both functions print out some text!"}],"correct":1},{"title":"The ___________ function is used to read a single character from a file in PHP.","options":[{"title":"fgetc()"},{"title":"fgets()"},{"title":"fget()"},{"title":"fgetf()"}],"correct":0},{"title":"In PHP, which of the following(s) count elements in an array?","options":[{"title":"count"},{"title":"Sizeof"},{"title":"Array_Count"},{"title":"Count_array"}],"correct":0},{"title":"Which syntax is default syntax in PHP?","options":[{"title":"< ?php ?>"},{"title":"<% %>"},{"title":"< ? ?>"},{"title":"< script language=\\"php\\">"}],"correct":0},{"title":"Which of the following delimiter syntax is PHP\\u0027s default delimiter syntax","options":[{"title":""},{"title":"<% %>"},{"title":""},{"title":""}],"correct":0},{"title":"Which of the following delimiter is default in PHP?","options":[{"title":""},{"title":"<% %>"},{"title":""},{"title":""}],"correct":0},{"title":"What is the expansion of LAMP?","options":[{"title":"Linux And MySQL PHP"},{"title":"Linux Apache MySQL PHP"}],"correct":1},{"title":"Which operator is used to concatenate two strings in PHP?","options":[{"title":"dot operator (.)"},{"title":"plus operator (+)"}],"correct":0},{"title":"Whether One-line comment begin with pound sing(#) in PHP?","options":[{"title":"True"},{"title":"False"}],"correct":0},{"title":"Which of following comments is supported by PHP.","options":[{"title":"Single line c++ syntax - //"},{"title":"Shell syntax - #"},{"title":"Both of above"},{"title":"None of above"}],"correct":2},{"title":"What PHP stands for?","options":[{"title":"Hypertext Preprocessor"},{"title":"Pre Hypertext Processor"},{"title":"Pre Hyper Processor"},{"title":"PHP: Hypertext Preprocessor"}],"correct":3},{"title":"There are three different kind of arrays:","options":[{"title":"Numeric array, String array, Multidimensional array"},{"title":"Numeric array, Associative array, Dimensional array"},{"title":"Numeric array, Associative array, Multidimensional array"},{"title":"Const array, Associative array, Multidimensional array"}],"correct":2},{"title":"PHP is __________________.","options":[{"title":"Partially cross-platform"},{"title":"Truly cross-platform"}],"correct":1},{"title":"Can we embedded directly PHP code into XHTML document?","options":[{"title":"FALSE"},{"title":"TRUE"}],"correct":1},{"title":"Variables always start with a ________ in PHP.","options":[{"title":"Pond-sign"},{"title":"Yen-sign"},{"title":"Dollar-sign"},{"title":"Euro-sign"}],"correct":2},{"title":"Which of the following function is used to change the root directory in PHP?","options":[{"title":"choot()"},{"title":"change_root()"},{"title":"cd_root()"},{"title":"cd_r()"}],"correct":0},{"title":"Which of the following tags in PHP is not a valid way to begin and end a PHP code block?","options":[{"title":""},{"title":""},{"title":""},{"title":""}],"correct":1},{"title":"What will the ?getdate() function returns in PHP?","options":[{"title":"An integer"},{"title":"A floating-point number"},{"title":"An array"},{"title":"A string"}],"correct":2},{"title":"What is full form of PHP?","options":[{"title":"PreHypertextProcessor"},{"title":"HypertextPreprocessor"},{"title":"Hypertext Postprocessor"},{"title":"PostHypertextProcessor"}],"correct":1},{"title":"The left association operator % is used in PHP for __________.","options":[{"title":"percentage"},{"title":"bitwise or"},{"title":"division"},{"title":"modulus"}],"correct":3},{"title":"Which one is right in PHP?","options":[{"title":""},{"title":""},{"title":""},{"title":""}],"correct":1},{"title":"SQL is not case sensitive. DELETE is the same as delete.","options":[{"title":"TRUE"},{"title":"FALSE"}],"correct":0},{"title":"Which of the following is not true regarding XForms?","options":[{"title":"PHP provides support for XForm"},{"title":"It can be used on PDF documents"},{"title":"The data is sent in XML format"},{"title":"The action and method parameters are defined in the body"}],"correct":3},{"title":"You have defined three variables $to, $subject and $body to send an email. Which of the following methods would you use for sending an email?","options":[{"title":"mail($to,$subject,$body)"},{"title":"sendmail($to,$subject,$body)"},{"title":"mail(to,subject,body)"},{"title":"sendmail(to,subject,body)"}],"correct":0},{"title":"Which of the following are useful for method overloading?","options":[{"title":"__call, __get, __set"},{"title":"_get,_set,_load"},{"title":"__get,__set,__load"},{"title":"__overload"}],"correct":0},{"title":"Which of the following is a PHP resource?","options":[{"title":"Domxml document"},{"title":"Odbc link"},{"title":"File"},{"title":"All of the above"}],"correct":3},{"title":"Does PHP 5 support exceptions?","options":[{"title":"Yes"},{"title":"No"}],"correct":0}]}'}); window.$__universal_flush();