- Hello, John
- it will print an error message
- ‘Hello, $name’
- none of above
Answer: Option 2 Compiler Error : Type mismatch in redeclaration of function display As the function display() is not defined before use, compiler will assume the return type of the function...
1 Answers 9 viewsAnswer: Option 1 The above code snippet says hello one second from now.
1 Answers 1 viewsAnswer: Option 4 Let'
1 Answers 1 viewsAnswer: Option 3 The code uses preg_match to check for a keyword and replies based on whether it is true (1) or false (0).
1 Answers 2 viewsAnswer: Option 1 The define() function defines a constant.
1 Answers 1 viewsAnswer: Option 1 # is a single line comment.
1 Answers 1 viewsAnswer: Option 1 Since there is a semi-colon in between $hello and $bye, the line ends at $hello. However $bye would have printed if a echo was present before “$bye”.
1 Answers 1 viewsAnswer: Option 4 Coffee was not replaced because the preg_replace function is case sensitive. Therefore it treats coffee and Coffee differently.
1 Answers 1 viewsAnswer: Option 1 Lee Harvey Oswald was the name of the assassinator of John F. Kennedy. Lee Harvey Oswald was an American Marxist and former U.S. Marine who assassinated United...
1 Answers 1 views