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

*Answers COMING SOON! Kindly Wait!*

**Week 0: Assignment answers** **Week 1**: Introduction to computers using graphics.

*Programming Assignment***Week 2:** Basic data types.

*Programming Assignment***Week 3:****Statements of C++ for conditional execution and looping.**

*Programming Assignment***Week 4: Statements of C++ for conditional execution and looping.**

*Programming Assignment*

**Week 5:**Â Functions.

*Programming Assignment*

**Use of the standard library in designing programs.**

Week 11:

**Week 6:**Recursive algorithms and recursive drawings.*Programming Assignment*

**Week 7:**Â Arrays.*Programming Assignment*

**Week 8:**Â Multidimensional arrays.*Programming Assignment*

**Week 9**:Â Structures. Pointers with structures.*Programming Assignment***Week**10:Â Dynamic memory allocation.Week 11:

**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?

Answer: 21.0

**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.

Answer: 690.0

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

Answer: 4.0

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

Answer: 3.0

**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.

Answer: n-1

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

Column 1 | Column 2 | Column 3 | |

Row 1 | Asha | Remo | Mehdi |

Row 2 | Bhimsen | Talat | Subbalaxmi |

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[2][1] = Bhimsen, and Name[1][3] = Mehdi.

**Q6.** What is Name[2][3]?

Answer: Subbalaxmi

**Suppose Name[i][j] = Remo**

**Q7.** The value of i is:

a) 1

b) 2

c) 3

d) 4

Answer: a) 1

**Q8.** The value of j is:

a) 1

b) 2

c) 3

d) 4

Answer: b) 2

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?

Answer: 600.0

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

a) Yes

b) No

Answer: b) No

**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

Answer: c) q > 40

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

Answer: 4.0

**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.

Thanks in advance.

*For discussion about any question, join the below comment section. And get the solution of your query.* Also, try to share your thoughts about the topics covered in this particular quiz.