"},{"@type": "Answer", "text": "All of the above"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 57", "text": "What is the purpose of basename() function in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Strips of the path and returns the file name." }, "option": [{"@type": "Answer", "text": "Returns the last accessed time of the file"},{"@type": "Answer", "text": "Returns the first accessed time of the file"},{"@type": "Answer", "text": "Strips of the path and returns the file name."},{"@type": "Answer", "text": "Strips of the path the returns of the folder name."}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 58", "text": "In PHP, fgets() is used to read a file one line at a time.", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "TRUE" }, "option": [{"@type": "Answer", "text": "TRUE"},{"@type": "Answer", "text": "FALSE"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 59", "text": "Which of the following statement produce different output", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "" }, "option": [{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 60", "text": "Which of the following data type is compound datatype supported by PHP.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Array" }, "option": [{"@type": "Answer", "text": "Array"},{"@type": "Answer", "text": "String"},{"@type": "Answer", "text": "Float"},{"@type": "Answer", "text": "Boolean"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 61", "text": "Which of the following functions in PHP do not return a timestamp?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "date()" }, "option": [{"@type": "Answer", "text": "time()"},{"@type": "Answer", "text": "date()"},{"@type": "Answer", "text": "strtotime()"},{"@type": "Answer", "text": "gmmktime()"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 62", "text": "Which of the following are valid float values?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "All of the above" }, "option": [{"@type": "Answer", "text": "4.5678"},{"@type": "Answer", "text": "4"},{"@type": "Answer", "text": "7.00E+04"},{"@type": "Answer", "text": "All of the above"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 63", "text": "Which of the following type specifier is invalid in printf() functions.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "% a" }, "option": [{"@type": "Answer", "text": "% a"},{"@type": "Answer", "text": "% b"},{"@type": "Answer", "text": "% c"},{"@type": "Answer", "text": "% d"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 64", "text": "Transactions are used to treat sets of SQL statements atomically.", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "TRUE" }, "option": [{"@type": "Answer", "text": "TRUE"},{"@type": "Answer", "text": "FALSE"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 65", "text": "How does the identity operator ===compare two values in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "It returns True only if they are both of the same type and value" }, "option": [{"@type": "Answer", "text": "It converts them to common compatible data type and then compares the resulting values."},{"@type": "Answer", "text": "It returns True only if they are both of the same type and value"},{"@type": "Answer", "text": "If the two values are strings, it performs a lexical comparison"},{"@type": "Answer", "text": "It based its comparison on the C strcmp function exclusively"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 66", "text": "Which of the following is not an SQL aggregate function?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "CURRENT_DATE()" }, "option": [{"@type": "Answer", "text": "AVG"},{"@type": "Answer", "text": "SUM"},{"@type": "Answer", "text": "MIN"},{"@type": "Answer", "text": "CURRENT_DATE()"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 67", "text": "The _____________ statement is used to delete a table in MySQL.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "DROP TABLE" }, "option": [{"@type": "Answer", "text": "DROP TABLE"},{"@type": "Answer", "text": "DELETE TABLE"},{"@type": "Answer", "text": "DEL TABLE"},{"@type": "Answer", "text": "REMOVE TABLE"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 68", "text": "The ____________function parses an English textual date or time into Unix timestamp in PHP.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "strtotime()" }, "option": [{"@type": "Answer", "text": "strtodate()"},{"@type": "Answer", "text": "stroftime()"},{"@type": "Answer", "text": "strtotime()"},{"@type": "Answer", "text": "str_to_time()"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 69", "text": "Which function(s) in PHP computes the difference of arrays?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "array_diff" }, "option": [{"@type": "Answer", "text": "array_diff"},{"@type": "Answer", "text": "diff_array"},{"@type": "Answer", "text": "arrays_diff"},{"@type": "Answer", "text": "diff_arrays"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 70", "text": "______________ Returns the time of sunrise for a given day / location in PHP.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "date_sunrise()" }, "option": [{"@type": "Answer", "text": "datesunrise()"},{"@type": "Answer", "text": "date_sunrise()"},{"@type": "Answer", "text": "date-sunrise()"},{"@type": "Answer", "text": "date.sunrise()"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 71", "text": "What is the difference between print() and echo() in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "echo() can be used in the CLI version of PHP, while print() can’t" }, "option": [{"@type": "Answer", "text": "print has a return value of 1 so it can be used in expressions where as echo has a void return type"},{"@type": "Answer", "text": "echo() can be used in the CLI version of PHP, while print() can’t"},{"@type": "Answer", "text": "print() can be used in the CLI version of PHP, while echo() can’t"},{"@type": "Answer", "text": "There’s no difference: both functions print out some text!"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 72", "text": "The ___________ function is used to read a single character from a file in PHP.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "fgetc()" }, "option": [{"@type": "Answer", "text": "fgetc()"},{"@type": "Answer", "text": "fgets()"},{"@type": "Answer", "text": "fget()"},{"@type": "Answer", "text": "fgetf()"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 73", "text": "In PHP, which of the following(s) count elements in an array?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "count" }, "option": [{"@type": "Answer", "text": "count"},{"@type": "Answer", "text": "Sizeof"},{"@type": "Answer", "text": "Array_Count"},{"@type": "Answer", "text": "Count_array"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 74", "text": "Which syntax is default syntax in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "< ?php ?>" }, "option": [{"@type": "Answer", "text": "< ?php ?>"},{"@type": "Answer", "text": "<% %>"},{"@type": "Answer", "text": "< ? ?>"},{"@type": "Answer", "text": "< script language="php">"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 75", "text": "Which of the following delimiter syntax is PHP's default delimiter syntax", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "" }, "option": [{"@type": "Answer", "text": ""},{"@type": "Answer", "text": "<% %>"},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 76", "text": "Which of the following delimiter is default in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "" }, "option": [{"@type": "Answer", "text": ""},{"@type": "Answer", "text": "<% %>"},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 77", "text": "What is the expansion of LAMP?", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "Linux Apache MySQL PHP" }, "option": [{"@type": "Answer", "text": "Linux And MySQL PHP"},{"@type": "Answer", "text": "Linux Apache MySQL PHP"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 78", "text": "Which operator is used to concatenate two strings in PHP?", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "dot operator (.)" }, "option": [{"@type": "Answer", "text": "dot operator (.)"},{"@type": "Answer", "text": "plus operator (+)"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 79", "text": "Whether One-line comment begin with pound sing(#) in PHP?", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "True" }, "option": [{"@type": "Answer", "text": "True"},{"@type": "Answer", "text": "False"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 80", "text": "Which of following comments is supported by PHP.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Both of above" }, "option": [{"@type": "Answer", "text": "Single line c++ syntax - //"},{"@type": "Answer", "text": "Shell syntax - #"},{"@type": "Answer", "text": "Both of above"},{"@type": "Answer", "text": "None of above"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 81", "text": "What PHP stands for?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "PHP: Hypertext Preprocessor" }, "option": [{"@type": "Answer", "text": "Hypertext Preprocessor"},{"@type": "Answer", "text": "Pre Hypertext Processor"},{"@type": "Answer", "text": "Pre Hyper Processor"},{"@type": "Answer", "text": "PHP: Hypertext Preprocessor"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 82", "text": "There are three different kind of arrays:", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Numeric array, Associative array, Multidimensional array" }, "option": [{"@type": "Answer", "text": "Numeric array, String array, Multidimensional array"},{"@type": "Answer", "text": "Numeric array, Associative array, Dimensional array"},{"@type": "Answer", "text": "Numeric array, Associative array, Multidimensional array"},{"@type": "Answer", "text": "Const array, Associative array, Multidimensional array"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 83", "text": "PHP is __________________.", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "Truly cross-platform" }, "option": [{"@type": "Answer", "text": "Partially cross-platform"},{"@type": "Answer", "text": "Truly cross-platform"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 84", "text": "Can we embedded directly PHP code into XHTML document?", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "TRUE" }, "option": [{"@type": "Answer", "text": "FALSE"},{"@type": "Answer", "text": "TRUE"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 85", "text": "Variables always start with a ________ in PHP.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "Dollar-sign" }, "option": [{"@type": "Answer", "text": "Pond-sign"},{"@type": "Answer", "text": "Yen-sign"},{"@type": "Answer", "text": "Dollar-sign"},{"@type": "Answer", "text": "Euro-sign"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 86", "text": "Which of the following function is used to change the root directory in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "choot()" }, "option": [{"@type": "Answer", "text": "choot()"},{"@type": "Answer", "text": "change_root()"},{"@type": "Answer", "text": "cd_root()"},{"@type": "Answer", "text": "cd_r()"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 87", "text": "Which of the following tags in PHP is not a valid way to begin and end a PHP code block?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "" }, "option": [{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 88", "text": "What will the ?getdate() function returns in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "An array" }, "option": [{"@type": "Answer", "text": "An integer"},{"@type": "Answer", "text": "A floating-point number"},{"@type": "Answer", "text": "An array"},{"@type": "Answer", "text": "A string"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 89", "text": "What is full form of PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "HypertextPreprocessor" }, "option": [{"@type": "Answer", "text": "PreHypertextProcessor"},{"@type": "Answer", "text": "HypertextPreprocessor"},{"@type": "Answer", "text": "Hypertext Postprocessor"},{"@type": "Answer", "text": "PostHypertextProcessor"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 90", "text": "The left association operator % is used in PHP for __________.", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "modulus" }, "option": [{"@type": "Answer", "text": "percentage"},{"@type": "Answer", "text": "bitwise or"},{"@type": "Answer", "text": "division"},{"@type": "Answer", "text": "modulus"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 91", "text": "Which one is right in PHP?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "" }, "option": [{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""},{"@type": "Answer", "text": ""}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 92", "text": "SQL is not case sensitive. DELETE is the same as delete.", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "TRUE" }, "option": [{"@type": "Answer", "text": "TRUE"},{"@type": "Answer", "text": "FALSE"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 93", "text": "Which of the following is not true regarding XForms?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "The action and method parameters are defined in the body" }, "option": [{"@type": "Answer", "text": "PHP provides support for XForm"},{"@type": "Answer", "text": "It can be used on PDF documents"},{"@type": "Answer", "text": "The data is sent in XML format"},{"@type": "Answer", "text": "The action and method parameters are defined in the body"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 94", "text": "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?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "mail($to,$subject,$body)" }, "option": [{"@type": "Answer", "text": "mail($to,$subject,$body)"},{"@type": "Answer", "text": "sendmail($to,$subject,$body)"},{"@type": "Answer", "text": "mail(to,subject,body)"},{"@type": "Answer", "text": "sendmail(to,subject,body)"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 95", "text": "Which of the following are useful for method overloading?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "__call, __get, __set" }, "option": [{"@type": "Answer", "text": "__call, __get, __set"},{"@type": "Answer", "text": "_get,_set,_load"},{"@type": "Answer", "text": "__get,__set,__load"},{"@type": "Answer", "text": "__overload"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 96", "text": "Which of the following is a PHP resource?", "answerCount": 4, "acceptedAnswer": { "@type": "Answer", "text": "All of the above" }, "option": [{"@type": "Answer", "text": "Domxml document"},{"@type": "Answer", "text": "Odbc link"},{"@type": "Answer", "text": "File"},{"@type": "Answer", "text": "All of the above"}], "eduQuestionType": "Multiple choice" },{ "@type": "Question", "name": "Question 97", "text": "Does PHP 5 support exceptions?", "answerCount": 2, "acceptedAnswer": { "@type": "Answer", "text": "Yes" }, "option": [{"@type": "Answer", "text": "Yes"},{"@type": "Answer", "text": "No"}], "eduQuestionType": "Multiple choice" }], "course": { "@type": "Course", "name": "bachelor-of-science-in-computer-science-bsc-cs", "provider": { "@type": "Organization" }, "interactivityType": "Active", "timeRequired": "PT10M" }

Quiznetik

Linux and PHP | Set 1

1. /temp is a type of filesystem directory

Correct : B. False

2. Which of the following commands delete the files from the /tmp directory, issued by non-root user?

Correct : C. su -c “rm -rf /tmp/*”

3. Echo is used to Display message on screen. Which of the following options below should be used with echo to not output the trailing newline?

Correct : C. -n

4. The basic function of ______________ is to search files for lines (or other units of text) that contain a pattern.

Correct : A. awk

5. What is the content of /etc directory?

Correct : C. Both a and b

6. What is the difference between linux file system and windows file system?

Correct : B. Under Windows, the various partitions are detected at boot and assigned a drive letter whereas Under Linux, unless you mount a partition or a device, the system does not know of the existence of that partition or device.

7. Which of the following below is/are true for Date command?

Correct : A. It can work w/o arguments

8. What is the default number of shell commands saved in the history list of .cshrc file?

Correct : A. 200

9. mount -r is used to mount a file in read only mode

Correct : A. True

10. The advantage of using NFS rather than Samba for file sharing in Linux is

Correct : C. compatibility with Windows file sharing

11. Which of the following supports for creating a Linux VPN (Virtual Private Network)?

Correct : B. 3DES

12. Find command can search for files by

Correct : D. all of above

13. How can we find the current value for shell variables?

Correct : A. Set command

14. CWD is a type of shell variable

Correct : A. True

15. Which framework is provided for the programs to interchange information about Linux OS?

Correct : D. Resource Definition Framework

16. What is the difference between PATH and path?

Correct : D. All choices are correct.

17. How much usable space is available, when a Linux system is configured with a RAID 5 array that consists of six 20 GB hard disk drives?

Correct : C. 120

18. Which of the following below are environmental variables?

Correct : C. both a and b

19. Applications written to provide a GUI shell for Unix and Linux are called

Correct : B. x windows

20. Which of the following commands can be used to check for file corruption?

Correct : A. md5sum

21. Starting or restarting a computer is called

Correct : A. booting the system

22. This type of boot occurs when the computer is already on, and you restart it without turning off the power.

Correct : C. warm boot

23. The ‘logout’ built in command is used to

Correct : D. to exit the current shell

24. The command ‘umask -S’

Correct : A. prints the current mask using symbolic notation

25. Which command puts a script to sleep untill a signal is recieved?

Correct : B. suspend

26. Which of the following below are true functionalities of shell?

Correct : B. Interprets commands

27. A process can run only in the background

Correct : B. False

28. Which of the following below are true functionalities of Kernel?

Correct : A. Allocates time and memory to programs

29. To implement new application on IBM z/10. Which of the following options need to be considered if it to be implemented in Linux?

Correct : C. Red Hat Linux does not support all devices supported by IBMz/OS

30. A process is identified by a unique

Correct : A. Pid

31. Which command reduces the size of a file?

Correct : D. gzip

32. Which of the following has greater market share of Linux SW/HW

Correct : A. Linux on z10

33. Which of the following is the BEST way to set up SSH(Secure Shell) for communicating between System without needing passwords?

Correct : A. Use ssh-keygen for generating public-private keys.

34. Which of the following commands can be run to remove all the rules in an iptable table?

Correct : C. iptable-F

35. Which command is used to see the online manual?

Correct : A. Man

36. The head command writes the first ____________ lines of a file to screen.

Correct : C. Ten

37. Which command is used to clear the screen?

Correct : B. clear

38. Which command is used to find what is in your home directory?

Correct : B. % Is

39. Pipe symbol is represented by

Correct : B. |

40. What is the shortcut to the login directory?

Correct : B. cd+enter key

41. What is used to search files for specified words or patterns?

Correct : D. Grep

42. cd home to get back to your home-directory?

Correct : B. False

43. > symbol is used to redirect the output of a command

Correct : A. True

44. Which character is used to match exactly one character?

Correct : D. ?

45. The hierarchy of a series of directories branching in a user system starts from

Correct : C. /home

46. What PHP stands for?

Correct : D. Pre Hypertext Process

47. How does the identity operator === compare two values?

Correct : A. It converts them to a common compatible data type and then compares the resulting values

48. Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

Correct : C. When the parameter is being declared as passed by reference

49. Variables always start with a ........ in PHP

Correct : C. Dollar-sign

50. What is the value displayed when the following is executed? Assume that the code was executed using the following URL: testscript.php?c=25 <?php function process($c, $d = 25) { global $e; $retval = $c + $d - $_GET['c'] - $e; return $retval; } $e = 10; echo process(5); ?>

Correct : B. -5

51. PHP is an open source software

Correct : A. True

52. Which of the following is not valid PHP code?

Correct : D. $10_somethings

53. What is the difference between print() and echo()?

Correct : A. print() can be used as part of an expression, while echo() can’t

54. PHP runs on different platforms (Windows, Linux, Unix, etc.)

Correct : A. True

55. Use the ___________ to delete the data inside the table, and not the table itself?

Correct : C. TRUNCATE TABLE

56. In mail($param1, $param2, $param3, $param4), the $param2 contains:

Correct : D. The subject

57. Which of the following delimiter is ASP style?

Correct : A. <% %>

58. What is the purpose of basename() function in PHP?

Correct : C. Strips of the path and returns the file name.

59. In PHP, fgets() is used to read a file one line at a time.

Correct : A. TRUE

60. Which of the following statement produce different output

Correct : C. <?php echo “This is php example”; php?>

61. Which of the following data type is compound datatype supported by PHP.

Correct : A. Array

62. Which of the following functions in PHP do not return a timestamp?

Correct : B. date()

63. Which of the following are valid float values?

Correct : D. All of the above

64. Which of the following type specifier is invalid in printf() functions.

Correct : A. % a

65. Transactions are used to treat sets of SQL statements atomically.

Correct : A. TRUE

66. How does the identity operator ===compare two values in PHP?

Correct : B. It returns True only if they are both of the same type and value

67. Which of the following is not an SQL aggregate function?

Correct : D. CURRENT_DATE()

68. The _____________ statement is used to delete a table in MySQL.

Correct : A. DROP TABLE

69. The ____________function parses an English textual date or time into Unix timestamp in PHP.

Correct : C. strtotime()

70. Which function(s) in PHP computes the difference of arrays?

Correct : A. array_diff

71. ______________ Returns the time of sunrise for a given day / location in PHP.

Correct : B. date_sunrise()

72. What is the difference between print() and echo() in PHP?

Correct : B. echo() can be used in the CLI version of PHP, while print() can’t

73. The ___________ function is used to read a single character from a file in PHP.

Correct : A. fgetc()

74. In PHP, which of the following(s) count elements in an array?

Correct : A. count

75. Which syntax is default syntax in PHP?

Correct : A. < ?php ?>

76. Which of the following delimiter syntax is PHP's default delimiter syntax

Correct : A. <? php ?>

77. Which of the following delimiter is default in PHP?

Correct : A. <?php ?>

78. What is the expansion of LAMP?

Correct : B. Linux Apache MySQL PHP

79. Which operator is used to concatenate two strings in PHP?

Correct : A. dot operator (.)

80. Whether One-line comment begin with pound sing(#) in PHP?

Correct : A. True

81. Which of following comments is supported by PHP.

Correct : C. Both of above

82. What PHP stands for?

Correct : D. PHP: Hypertext Preprocessor

83. There are three different kind of arrays:

Correct : C. Numeric array, Associative array, Multidimensional array

84. PHP is __________________.

Correct : B. Truly cross-platform

85. Can we embedded directly PHP code into XHTML document?

Correct : B. TRUE

86. Variables always start with a ________ in PHP.

Correct : C. Dollar-sign

87. Which of the following function is used to change the root directory in PHP?

Correct : A. choot()

88. Which of the following tags in PHP is not a valid way to begin and end a PHP code block?

Correct : B. <! -->

89. What will the ?getdate() function returns in PHP?

Correct : C. An array

90. What is full form of PHP?

Correct : B. HypertextPreprocessor

91. The left association operator % is used in PHP for __________.

Correct : D. modulus

92. Which one is right in PHP?

Correct : B. <?php $var_name = $value; ?>

93. SQL is not case sensitive. DELETE is the same as delete.

Correct : A. TRUE

94. Which of the following is not true regarding XForms?

Correct : D. The action and method parameters are defined in the body

95. 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?

Correct : A. mail($to,$subject,$body)

96. Which of the following are useful for method overloading?

Correct : A. __call, __get, __set

97. Which of the following is a PHP resource?

Correct : D. All of the above

98. Does PHP 5 support exceptions?

Correct : A. Yes