×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Which is the correct syntax for the function definition?

44. Which is the correct syntax for the function definition?

  1. return_type function function_name(parameter1, parameter2, ...) { /*Function's body*/ }
  2. function function_name(parameter1, parameter2, ...) { /*Function's body*/ }
  3. return_type function_name(parameter1, parameter2, ...) { /*Function's body*/ }
  4. function function_name(parameter1, parameter2, ...) as return_type { /*Function's body*/ }

Answer: B) function function_name(parameter1, parameter2, ...) { /*Function's body*/ }

Explanation:

The function definition syntax is:

function function_name(parameter1, parameter2, ...)
{ 
	/*Function's body*/ 
}

Comments and Discussions!

Load comments ↻






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