The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Introduction to R programming

Introduction to R programming

0
Votes
1
Answer

Can someone explain to me why this is marked as wrong. (See the attached). thanks

 

R Programming Quiz


	

if the image doesnt show then please use this link https://drive.google.com/file/d/1FLABqXDjaeaL2mpSoLs6zGjLtEN3cjJI/view?usp=sharing

3 months
1 Answer

365 Team
0
Votes

Hi Michael,
thanks for reaching out! Let’s go through the different answers.

1. ‘Vectors are a sequence of data elements that are of the same type’ – is correct.

2. ‘Multiplying two vectors returns a matrix’ – The multiplication of two vectors doesn’t always return a matrix, it could return only a single value(technically a single value could also be seen as 1×1 matrix, so this answer isn’t posed completely correctly).
3. ‘R returns an error message if you try to do operations on vectors of different lengths’ – When it comes to multiplying vectors of different lengths, R doesn’t throw an error. Instead it does so called ‘recycling’, i.e. recycles the shorter of the two vectors to match the length of the longer one and perform the operation.
4. ‘All of the above’. We’ve discussed that 2 and 3 are not true. => Only the first of the four answers is strictly true.

Best,
365 Eli