Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find the output of the given PHP program for each of the following inputs. [2.5 marks) (WRITE THE QUESTION NUMBER ALONG WITH YOUR ANSWERS/OUTPUT IN

image text in transcribed

image text in transcribed

Find the output of the given PHP program for each of the following inputs. [2.5 marks) (WRITE THE QUESTION NUMBER ALONG WITH YOUR ANSWERS/OUTPUT IN YOUR ANSWER SHEET) Qno User Input (number) On1 8 5
Enter the number:
=1;$i-=2) { echo "$i". } ?> Qn3 3 Qn4 6 Qn5 7 Fill in the blanks / complete the PHP program to get the output as shown below. [2.5 marks] (WRITE THE LINE NUMBER ALONG WITH YOUR ANSWER CODE IN YOUR ANSWER SH 11 1 Calculate Force "; 3 echo = " force(5,3)." "; 4 echo "Force, if Mis 12 & Ais 10 = " force(12,10)" "; 5 echo "Force, if M is 30 & A is 15 = " " "; 6 function 7 { 8 $f = $m * $a; 9 return 10 } 11 ?> Output: Calculate Force Force, if M is 5 & A is 3 = 15 Force, if M is 12 & A is 10 = 120 Force, if M is 30 & A is 15 = 450

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions