Ask Question
15 February, 07:27

What will be the output of the following code?

a. Error

b. My name is BobBob

c. My name is BobMy name is Bob

d. My name is Bob Bob

+2
Answers (2)
  1. 15 February, 09:21
    0
    Answer: b. My name is BobBob

    Explanation:

    $foo = 'Bob'; / / Assigns foo variable the value Bob $bar = $foo; / / Assigns the value of foo to bar $bar = "My name is $bar"; / /changes the $bar this is the way to include variables directly in the string. print $bar; / / this prints My name is and moves to the variable $bar which prints the value of $bar which is the value of $foo i. e. Bob print $foo; / / prints another Bob
  2. 15 February, 10:15
    0
    c

    Explanation:

    error
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What will be the output of the following code? a. Error b. My name is BobBob c. My name is BobMy name is Bob d. My name is Bob Bob ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers