There is a variable 'name' that contains the name of a person, which is/are the correct print statement(s) to print the 'name' suffix with 'Hello'?

29. There is a variable "name" that contains the name of a person, which is/are the correct print statement(s) to print the "name" suffix with "Hello".

  1. print "Hello $name";
  2. print "Hello " . $name;
  3. print ("Hello $name");
  4. All of the above

Answer: D) All of the above

Explanation:

All of the above statements can be used to print the name suffix with "Hello".

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.