The my_fnctn function takes in three parameters a, b, c. It increments a by 1, sets b equal to b+c, iterates from 1 to b, increments a by 1 if a is less than 10, otherwise it prints 'in here'. The function returns a. When calling my_fnctn(1,2,3), it will return 6, as a is incremented to 6 through the iterations.
my_fnctn lt function abc alta+1 bltb+c for a in .pdf
1. my_fnctn < function (a,b,c){ a<a+1 b<b+c for (a in 1:b){ if (a<10){ a<a+1 } else a print("in here") } }
return (a) } my_fnctn (1,2,3) 23. Reference the above user created function. What will be returned
when calling: my_fnctn (1,2,3) ? a) "in here" b) "in here" 10 c) 6 d) 2,3,4,5,6 e) Nothing will be
returned.count <0 count 2<0 count 3<0 while (count <5){ count = count +1 repeat { count2 =
count2 +1 if (count2 <3){ break } for (i in c("a", "b", "c", "d")){ count3 = count3 +1 } print (count +
count2 + count 3 )22. What will be the output of the above code chunk? a) 0 b) "8 a b c d" c) 10 d)
We will get an error