1.

A programmer builds a _________ to avoid repeating the same task or reduce complexity.(a) Function(b) Package(c) Code(d) ConsoleThe question was posed to me during an internship interview.The doubt is from Functions topic in division Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct choice is (a) Function

Easy explanation: A function, in a programming environment, is a set of INSTRUCTIONS. A programmer builds a function to AVOID repeating the same TASK or reduce complexity. A function should be written to CARRY out specified tasks and may or may not include ARGUMENTS.



Discussion

No Comment Found

Related InterviewSolutions