# An Introduction to Programming Through C++ | NPTEL 2022 | Week 0 Assignment 0 Solutions

This set of MCQ(multiple choice questions) focuses on the An Introduction to Programming Through C++ NPTEL 2022 Week 0 Assignment Solutions.

You should practice these questions to improve fundamentals of An Introduction to Programming Through C++ needed for various interviews (like company interview, campus interview, walk-in interview), entrance exams, placements and other competitive exams. All the questions in this particular section are based on only “ An Introduction to Programming Through C++ NPTEL 2022 Week 0 Assignment 0 Solutions“.

### Course layout

NOTE: You can check your answer immediately by clicking show answer button. An Introduction to Programming Through C++ NPTEL 2022 Week 0 Assignment 0 Solution” contains 13 questions.

Now, start attempting the quiz.

### An Introduction to Programming Through C++ NPTEL 2022 Week 0 Assignment 0 Solutions

Q1. What is the greatest common divisor (also called the highest common factor) of 147 and 84?

I bought 5kg of cauliflower at Rs 50/kg, 3 kg of cabbage at Rs 40/kg, 3kg of capsicum at Rs 60/kg, and 2 kg of peas at Rs 70/kg.

Q2. The total cost of everything I bought is Rs.

Q3. How many multiplications did you need to perform for calculating the total cost?

Q4. How many additions did you need to perform for calculating the total cost?

Q5. How many additions would you need to perform for calculating the total cost if I had bought n items? Give your answer in terms of n, as an expression in n.

An Introduction to Programming Through C++ NPTEL 2022 Assignment Solutions

Given below is the seating plan for students in a certain class room.

Just to clarify the meaning of the table above using examles: Bhimsen sits in Row 2, Column 1, while Mehdi sits in Row 1, Column 3.  LetName[i][j] = name of person sitting in row i and column j.  Thus Name = Bhimsen, and Name = Mehdi.

Q6. What is Name?

Suppose Name[i][j] = Remo

Q7. The value of i is:

a) 1
b) 2
c) 3
d) 4

An Introduction to Programming Through C++ NPTEL 2022 Assignment Solutions

Q8. The value of j is:

a) 1
b) 2
c) 3
d) 4

An Introduction to Programming Through C++ NPTEL 2022 Assignment Solutions

The corners of a rectangle in the x-y plane have coordinates (10,40), (10,70), (30,40), (30,70)

Q9. What is the area of the rectangle?

Q10. Is the point (20,80) inside the rectangle?

a) Yes
b) No

An Introduction to Programming Through C++ NPTEL 2022 Assignment Solutions

Q11. If a point strictly inside the rectangle has coordinates (p,q), then which of the following is correct?

a) p > 20
b) p > 40
c) q > 40
d) q > 70

An Introduction to Programming Through C++ NPTEL 2022 Assignment Solutions

Q12. What is the slope of the tangent to the curve y=x^2 at the point (2,4)?

Q13. Suppose x,y,z are real numbers and we know that x+y+z = 100, and 5x + 3y + 3z = 400. Then which of the following is true:

a) x can take many values
b) There is a unique value that x must take
c) There is no value of x for which both of the equations above will be satisfied

Answer: b) There is a unique value that x must take

>> Next- An Introduction to Programming Through C++ Week 1 Assignment Solutions

The above question set contains all the correct answers. But in any case, you find any typographical, grammatical or any other error in our site then kindly inform us. Don’t forget to provide the appropriate URL along with error description. So that we can easily correct it.