What will be the output of the following php code php function calc($price $tax= )
Show
Menu
What will be the output of the following PHP code?A. Error B. 0 C. 42 D. 84 Answer: Option C Solution(By Examveda Team)You can designate certain arguments as optional by placing them at the end of the list and assigning them a default value of nothing. Click here to read 1000+ Related Questions on Functions(PHP)Join The Discussion
Related Questions on Functions This set of PHP Multiple Choice Questions & Answers (MCQs) focuses on “Functions – 1”. 1. What will be the output of the following PHP code?
a) Error Answer: c 2. What will be the output of the following PHP code?
a) I am b Answer: d 3. What will be the output of the following PHP code?
a) I am b Answer: c 4. What will be the output of the following PHP code?
a) helloblabla Answer: c 5.What will be the output of the following PHP code?
a) error Answer: d 6. What will be the output of the following PHP code?
a) 1 Answer: d 7. What will be the output of the following PHP code?
a) 106 Answer: c 8. What will be the output of the following PHP code?
a) 0.11845976421345 Answer: c 9. What will be the output of the following PHP code?
a) Hello you! How are you today? Answer: a 10. What will be the output of the following PHP code?
a) 1 Answer: b Sanfoundry Global Education & Learning Series – PHP Programming. To practice all questions on PHP Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on PHP. Next Steps:
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn. Subscribe to his free Masterclasses at Youtube & technical discussions at Telegram SanfoundryClasses. What will be the output of following codeExplanation: The output will be Fatal error: Call to undefined function b(). You cannot call a function which is inside a function without calling the outside function first.
What will be the output of the following PHP codePHP ECHO CHR(52); ?> Answer: D) ASCII value of 4 is 52, hence the output is 4.
What will be the outputExplanation: This will be the output- Fatal error: Call to undefined function b().
What is PHP function with examples?A function is a piece of code that takes another input in the form of a parameter, processes it, and then returns a value. A PHP Function feature is a piece of code that can be used over and over again and accepts argument lists as input, and returns a value. PHP comes with thousands of built-in features.
|