swayam-logo

Programming In Modern C++

Note: This exam date is subjected to change based on seat availability. You can check final exam date on your hall ticket.

Page Visits

Course layout, books and references.

  • C++ reference - C++98 and C++03, C++11, C++14.
  • Overview of the New C++ (C++11/14) by Scott Meyers, 2015.
  • ISO C++ Standards.
  • Presentations used in the Course.
  • C++ Move Semantics - The Complete Guide by Nicolai M. Josuttis, 2020.
  • C++ Concurrency in Action, 2nd Edition by Anthony Williams, 2019.
  • C++17 - The Complete Guide by Nicolai M. Josuttis, 2020.
  • C++17 In Detail: Learn the Exciting Features of The New C++ Standard! by Bartlomiej Filipek, 2019.
  • Professional C++, 4th Edition by Marc Gregoire, 2018.
  • Functional Programming in C++ by Ivan ÄŒukić, 2018.
  • Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14 by Scott Meyers, 2015.

Instructor bio

programming in modern c nptel assignment week 2

Prof. Partha Pratim Das

Course certificate.

  • Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course. 
  • ( All assignments in a particular week will be counted towards final scoring - quizzes and programming assignments). 
  • Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam - out of 100
  • Proctored Exam score =50% of the proctored certification exam score out of 100

programming in modern c nptel assignment week 2

DOWNLOAD APP

programming in modern c nptel assignment week 2

SWAYAM SUPPORT

Please choose the SWAYAM National Coordinator for support. * :

W2_Programming_Qs-1

NPTEL Programming in Modern C++ Week 2 Assignment Answers 2024

W2_Programming_Qs-2

NPTEL Programming in Modern C++ Week 2 Assignment Answers 2024

For Solution Click Here

  • Tuesday, April 16, 2024

NPTEL Programming In Modern C++ Week4 Programming Assignment 2024

NPTEL-Programming-In-Modern-C-Week4-Programming-Assignment-2024

There has been a continual debate on which programming language/s to learn, to use. As the latest TIOBE Programming Community Index for August 2021 indicates – C (13%), Python (12%), C++ (7%), Java (10%), and C#(5%) together control nearly half the programming activities worldwide. Further, C Programming Language Family (C, C++, C#, Objective C etc.) dominate more than 25% of activities. Hence, learning C++ is important as one learns about the entire family, about Object-Oriented Programming and gets a solid foundation to also migrate to Java and Python as needed. C++ is the mother of most general purpose of languages. It is multi-paradigm encompassing procedural, object-oriented, generic, and even functional programming. C++ has primarily been the systems language till C++03 which punches efficiency of the code with the efficacy of OOP. Then, why should I learn it if my primary focus is on applications? This is where the recent updates of C++, namely, C++11 and several later offer excellent depths and flexibility for C++ that no language can match. These extensions attempt to alleviate some of the long-standing shortcomings for C++ including porous resource management, error-prone pointer handling, expression semantics, and better readability. The present course builds up on the knowledge of C programming and basic data structure (array, list, stack, queue etc.) to create a strong familiarity with C++98 / C++03. Besides the constructs, syntax and semantics of C++ (over C), we also focus on various idioms of C++ and attempt to go to depth with every C++ feature justifying and illustrating them with several examples and assignment problems. On the way, we illustrate various OOP concepts. The course also covers important advances in C++11 and later released features..

Programming In Modern C++ Week4 Programming Assignment 2024

INTENDED AUDIENCE :   Any interested audience PREREQUISITES :   10th standard/high school INDUSTRY SUPPORT :   Programming in C++ is so fundamental that all companies dealing with systems as well as application development (including web, IoT, embedded systems) have a need for the same. These include – Microsoft, Samsung, Xerox, Yahoo, Oracle, Google, IBM, TCS, Infosys, Amazon, Flipkart, etc. This course would help industry developers to be up-to-date with the advances in C++ so that they can remain at the state-of-the-art.

Course Layout

Programming in modern c++ 2024, programming assignment q1 :.

Consider the program below. • Fill in the blank at LINE-1 with appropriate keyword, • Fill in the blank at LINE-2 with appropriate return type of the function, • Fill in the blank at LINE-3 with the appropriate initialization statement of the static variable obj. The program must satisfy the given test cases.

Programming Assignment Q2 :

Consider the following program. • Fill in the blank at LINE-1 with the appropriate statement such that the global function can access private class members, • Fill in the blank at LINE-2 with the appropriate statement such that the global function can access private class members The program must satisfy the sample input and output.

Programming Assignment Q3 :

Consider the following program. • Fill in the blanks at LINE-1, LINE-2, LINE-3 and LINE-4 with appropriate keywords The program must satisfy the sample input and output.

Spread the word.

Share the link on social media.

Confirm Password *

Username or email *

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have permission to ask a question, You must login to ask a question.

SIKSHAPATH Logo

SIKSHAPATH Latest Articles

Programming in modern c++ assignment week 2 2022.

A blog banner of programming in modern c++ nptel course answer

Students, are you searching for hints of Programming in Modern C++ NPTEL assignment week 2. So, you are landed on the right article where you will get hints for answers by scrolling down.

Programming in Modern C++ NPTEL Assignment Week 2

Q1. Consider the following function prototypes of function add()

P1: int add(int n1=0, int n2);

P2: int add(int = 0, int = 0);

P3: double add(double = 0, double d = 0.0);

P4: double add(int = 0, double d = 0.0);

P5: double add(int n1 = 0, int n2, double n3 = 0);

Which of the following sets consists of all valid prototypes of function add()?

a. {P1, P3} b. {P2, P3, P4} c. {P1, P2, P3, P4} d. {P2, P3, P5}

Answer: b. {P2, P3, P4}

For instant notification of any updates, Join us on telegram .

Q2. Consider the following function prototypes of function add().

P1: int add(int n1);

P3: double add(int = 0, double d = 0.0);

P4: int add(int = 0, double d = 0.0);

P5: double add(int n1 = 0, int n2 = 0, double n3 = 0);

Which of the above pairs of the prototypes is ambiguous and illegal as per the rule of function overloading?

Answer : c. P3, P4

Q3. Consider the following code segment.

What will be the output/error?

d. Compilation Error: call of overloaded ‘add (int, int)’ is ambiguous

Answer: d. Compilation Error: call of overloaded ‘add (int, int)’ is ambiguous

Q4. Consider the following code segment.

What will be the output?

Answer: b. 30 60

Q5. Consider the following code segment.

Choose the correct option to fill in the blank at LINE-1 such that the output is 11 11 20 20.

a. int incr(int i)

b. int incr(int& i)

c. int& incr(const int& i)

d. int& incr(int& i)

Answer: d. int& incr(int& i)

Q6. Consider the following code segment.

a. 1110 11001

b. 1011 1011

c. 12100 12100

d. 11001 1110

Answer: a. 1110 11001

Q7. Consider the following code segment.

d.  44 44

Answer: d.  44 44

Q8. Consider the following code segment.

Identify the correct statement/s to fill in the blank at LINE-1 such that the output is X.

a. const char* cp

b. char* const cp

c. char const* cp

d. const char * const cp.

Answer: a. const char* cp & c. char const* cp

Q9. Consider the following statement in C.

Among the given options below, identify the equivalent statement/s (perform the same task) in C++.

a. int *ip = new int(5);

b. int *ip = new int[5];

c. int *ip = (int *)operator new (sizeof(int) * 5);

d. int *ip = (int *) operator new (sizeof(int)) [5];

Answer: b. int *ip = new int[5];

Disclaimer: These answers are provided only for the purpose to help students to take references. This website does not claim any surety of 100% correct answers. So, this website urges you to complete your assignment yourself.

Also Available:

Programming in Modern C++ NPTEL Assignment Week 1

Related Posts

NPTEL Cloud Computing Assignment 3 Answers 2023

NPTEL Cloud Computing Assignment 3 Answers 2023

NPTEL Problem Solving Through Programming In C Week 1 & 2 Assignment Answers 2023

NPTEL Problem Solving Through Programming In C Week 1 & ...

NPTEL Programming In Java Week 6 Assignment Answers 2023

NPTEL Programming In Java Week 6 Assignment Answers 2023

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Programming in Modern C++ | Week 12

Session: JAN-APR 2024

Course Name: Programming in Modern C++

Course Link: Click Here

For answers or latest updates join our telegram channel: Click here to join

These are Nptel Programming in Modern C++ Assignment 12 Answers

Q1. Which of the following smart pointers has/have shared ownership policy? a) std::auto_ptr (C++03) b) std:: weak_ptr (C++11) c) std::unique_ptr (C++11) d) std::shared_ptr (C++11)

Q2. Consider the program (in C++11) given below. What will be the output? a) 1 b) -4 c) -5 d) -13

Q3. Consider the program (in C++11) given below that squares each element of vector vec and sums all the squared elements. Fill in the blank at LINE-1 with appropriate option(s) such that the output becomes 149 16 30. a) summation (vec, res) b) summation (vec, &res) c) summation(std::ref (vec), &res) d) std::bind(summation, std::ref (vec), &res)

Q4. Consider the program (in C++11) given below. What will be the output? a) SmartPtr::ctor(), SmartPtr::operator(), SmartPtr::operator(), b) SmartPtr:: ctor(), SmartPtr::operator(), SmartPtr::operator->(), c) SmartPtr::ctor(), SmartPtr::operator(), SmartPtr::operator* SmartPtr::operator->(), d) SmartPtr:: ctor(), SmartPtr::operator->(), SmartPtr::operator->(),

Q5. Consider the following code segment (in C++11). What will be the output? a) rc 2 rc 3 rc 4 rc 4 rc 3 b) rc 2 rc 3 rc 4 rc = 3 rc = 2 c) rc 2 rc=2rc4 rc = 2 rc = 1 d) rc 2 rc=2 rc 3 rc = 2 rc = 1

Q6. Consider the code segment (C++11) given below. What will be the output? a) A B b) wp1 is expired wp2 is expired c) A wp2 is expired d) a wp2 is expired

Q7. Consider the code segment (C++11) given below. What is/are the possible output? a) 3 0 1 b) 0 1 c) 0 3 d) 0 3 1

Q8. Consider the following code segment (in C++11). Which of the following cannot be TRUE about the output of the above program? a) It generates output as: 5, 5 13, 13 b) It generates output as: 8, 8 13, 13 c) It generates output as: 8, 8 5, 5 d) It results in deadlock

Q9. Consider the code segment (C++11) given below. What is/are the output/s that is/are not possible? (think logically) a) consumtion by X : instances available = 7 consumtion by Z : instances available = 2 consumtion by Y : failed b) consumtion by Z : failed consumtion by X : instances available = 2 consumtion by Y : failed c) consumtion by Z : instances available = 5 consumtion by X : instances available = 2 consumtion by Y : failed d) consumtion by Z : instances available = 5 consumtion by X : instances available = 2 consumtion by Y : instances available = 1

Programming

Consider the following program that implements a recursive lambda function to find out the n, where n, m 2 1. • Fill in the blank at LINE-1 to declare the signature of recPow as std::function. • Fill the blank at LINE-2 to complete the definition of lambda function recPow. • Fill the blank at LINE-3 to complete the definition of lambda expression print, which calls recPow. The program must satisfy the sample input and output.

Consider the following program (in C++11). • Fill in the blanks at LINE-1 and LINE-3 with appropriate template definitions. • Fill in the blanks at LINE-2 and LINE-4 with appropriate parameters for getmin function. The program must satisfy the sample input and output.

Consider the program below (in C++11). • Fill in the blank at LINE-1 with appropriate template declaration. • Fill in the blank at LINE-2 with an appropriate parameter for function makePayment. • Fill in the blank at LINE-3 to complete the return statement. The program must satisfy the given test cases.

More Weeks of Programming in Modern C++: Click here

More Nptel Courses: Click here

Session: JULY-DEC 2023

Question 1 Consider the following program (in C++11). • Fill in the blank at LINE-1 with appropriate header to overload function operator. • Fill the blank at LINE-2 to invoke the functor Factorial() asynchronously. • Fill the blank at LINE-3 to receive the output from functor Factorial(). The program must satisfy the sample input and output.

Question 2 Consider the following program in C++14 to represent a generic deque (double-ended-queue), which allows adding items at the front of the queue and at the end of the queue. Complete the program as per the instructions given below. • Fill in the blank at LINE-1 with appropriate statements so that after execution of the for loop, t refers to the last element of the deque. • Fill in the blank at LINE-2 with appropriate statements to traverse the list in forward direction. • fill in the blank at LINE-3 with appropriate statements to traverse the list in backward direction, The program must satisfy the sample input and output.

Q1. Which of the following types of smart pointers follow /s shared ownership policy? a) std: :auto_ptr b) std: :unique_ptr c) std: :std: :shared ptr d) std: :weak ptr

Answer: c, d

Q2. Consider the code segment (in C++11) given below. What will be the output? a) SmartPtr::ctor(), MyClass::ctor(), MyClass::fun(), SmartPtr::operator->(), b) MyClass::ctor(), SmartPtr::ctor(), SmartPtr::operator->(), MyClass::fun(), c) SmartPtr::ctor(), MyClass::ctor(), SmartPtr::operator(), MyClass::fun(), d) MyClass: :ctor(), SmartPtr::ctor(), SmartPtr::operator(), MyClass::fun(),

Answer: d) MyClass: :ctor(), SmartPtr::ctor(), SmartPtr::operator(), MyClass::fun(),

Q3. What will be the output? a) -7 6 b) -8 6 c) -7 7 d) -8 16

Answer: a) -7 6

Q4. Consider the following code segment. What will be the output? a) 22322 b) 22420 c) 23430 d) 23422

Answer: b) 22420

Q5. Consider the following code segment (in C++11). What will be the output? a) 1 1 expired expired b) 1 0 1 0 c) 1 1 expired 1 d) 1 1 1 expired

Answer: a) 1 1 expired expired

Q6. Consider the following code segment (in C++11). Choose the appropriate option to fill in the blank at LINE-1 such that output becomes 24.5. a) std: :thread (Summation (dv)) b) std: :async(Summation(dv)) c) std: :atomic(Summation(dv)) d) std: :thread{bind(Summation(dv))}

Answer: b) std: :async(Summation(dv))

Q7. Consider the following program (in C++14). Identify the statement/s that is/are not true about the program. a) It generates output as : 0 1 2 3 5 6 7 8 b) It generates output as : 5 6 7 8 0 1 2 3 c) It generates output as : 5 0 6 1 7 2 8 3 d) It generates output as : 0 1 2 3

Q8. Consider the following program (in C++11) Identify the statement/s that is/are not true about the program. a) It generates output as : R1 : 10 10 R2 : 30 30 b) It generates output as : R1 : 10 10 R2 : 20 20 c) It generates output as : R2 : 20 20 R1 : 30 30 d) It results in deadlock

Q9. Consider the following code segment (in C++11). Choose the appropriate option to fill in the blanks at LINE-1 and LINE-2 so that the output becomes 100 400 900 1600. a) LINE-1 : p1.set_value (v) LINE-2 : auto rv = f1.get() b) LINE-1 : p1.set_value (v) LINE-2 : auto rv = f2.get() c) LINE-1 : p2.set_value (v) LINE-2 : auto rv = f1.get() d) LINE-1 : p2.set_value (v) LINE-2 : auto rv = f2.get()

Answer: b) LINE-1 : p1.set_value (v) LINE-2 : auto rv = f2.get()

Programming Assignment of Programming in Modern C++

Consider the program below (in C++11), which implements a smart pointer. • Fill in the blank at LINE-1 with appropriate header and initializer list for the copy constrcutor. • Fill in the blank at LINE-2 with appropriate header to overload dereferenceing operator. • Fill in the blank at LINE-3 with appropriate header to overload indirection operator. The program must satisfy the given test cases.

Consider the following program in C++14 to represent a doubly linked list (of generic type), which allows adding items at the front of the list. Complete the program as per the instructions given below. • Fill in the blank at LINE-1 with appropriate statements to traverse the list in forward direction. • fill in the blank at LINE-2 with appropriate statements to traverse the list in backward direction, The program must satisfy the sample input and output.

*Sorry can’t able to pass private cases please try to do it yourself.

Consider the following program (in C++11). • Fill in the blank at LINE-1 by defining a mutex object. • Fill the blanks at LINE-2 and LINE-4 by locking the mutex object. • Fill the blanks at LINE-3 and LINE-5 by unlocking the mutex object. The program must satisfy the sample input and output.

More Solutions of Programming in Modern C++: Click Here

More NPTEL Solutions: https://progiez.com/nptel-assignment-answers/

These are Nptel Programming in Modern C++ Assignment 12 Answers

Quizermania Logo

Programming in Modern C++ | NPTEL | Week 9 Solutions

This set of MCQ(multiple choice questions) focuses on the  Programming in Modern C++ Week 9 Solutions .

Programming in C++ is so fundamental that all companies dealing with systems as well as application development (including web, IoT, embedded systems) have a need for the same. These include – Microsoft, Samsung, Xerox, Yahoo, Oracle, Google, IBM, TCS, Infosys, Amazon, Flipkart, etc. This course would help industry developers to be up-to-date with the advances in C++ so that they can remain at the state-of-the-art.

Course layout (Answers link)

Answers COMING SOON! Kindly Wait!

Week 0: Assignment answers Week 1:  Programming in C++ is Fun Week 2: C++ as Better C. Week 3: OOP in C++. Week 4: OOP in C++.  Week 5:  Inheritance. Week 6: Polymorphism.   Week 7:  Type Casting . Week 8:  Exceptions and Templates. Week 9: Streams and STL  Week 10: Modern C++ Week 11: Lambda and Concurrency. Week 12: Move, Rvalue and STL Containers.

NOTE:  You can check your answer immediately by clicking show answer button. This set of “ Programming in Modern C++ Week 9 Solutions” contains 09 questions.

Now, start attempting the quiz.

Programming in Modern C++ Week 9 Solutions

Q1. Consider the following program.

Identify the correct option to fill in the blank at LINE-1 such that the output becomes 65 41 101 A.

a) “%d %o %x %c” b) “%d %x %o %c” c) “%d %0x %o %s” d) “%i %0x %o %s”

Answer: b) “%d %x %o %c”

Q2. Consider the code segment given below.

What will be the output?

a) 3.333333 b) 03.33333 c) 000003.33333333 d) 03.333333

Answer: b) 03.33333

Q3. Consider fp as a file pointer to a existing file, and the file is open in readonly mode. Match the appropriate descriptions about the fseek function calls.

a) 1 – A, 2 – D, 3 – C, 4 – B b) 1 – A, 2 – C, 3 – D, 4 – B c) 1 – B, 2 – A, 3 – C, 4 – D d) 1 – B, 2 – C, 3 – A, 4 – D

Answer: a) 1 – A, 2 – D, 3 – C, 4 – B

Q4. Consider the following code segment. Choose the correct option regarding the program.

a) It prints the number of blank spaces in file myfile.txt. b) It prints the number of words in file myfile.txt. c) It prints the number of lines in file myfile.txt. d) It prints the number of characters in file myfile.txt.

Answer: b) It prints the number of words in file myfile.txt.

Q5. Consider the code given below to print all the lines from in.txt. Identify the appropriate option to fill in the blank at LINE-1 such that it checks if the file does not exist.

a) infile.is_open() b) !infile.is_open() c) !infile.open() d) fopen(infile) == NULL

Answer: b) !infile.is_open()

Q6. Consider the code segment given below. Which of the following statement can be used to fill in the blank at LINE-1 that the output becomes 10000.

a) li.begin(), li.end() b) li.begin(), li.end(), cp c) li.begin(), li.end(), 0.0, cp d) li.begin(), li.end(), 0.0

Answer: c) li.begin(), li.end(), 0.0, cp

Q7. Consider the following code segment. Identify the appropriate call to copy function to fill in the blank at LINE-1 such that it prints angle as output.

a) copy(ca, ca + len – 3, lc.begin()) b) copy(ca + 3, ca + len, lc.begin()) c) copy(&ca[2], &ca[len – 1], lc.begin()) d) copy(&ca[3], &ca[len], lc.begin())

Answer: b), d)

Q8. Consider the following code segment which computes inner product of the elements of list and vector. Identify the appropriate call/calls to inner_product function to fill in the blank at LINE-1 such that it prints 122 as output.

a) inner_product(li.begin(), li.end(), vi.begin(), 0, multi(), add()) b) inner_product(li.begin(), li.end(), vi.begin(), 0, add(), multi()) c) inner_product(vi.begin(), vi.end(), li.begin(), 0.0, add(), multi()) d) inner_product(vi.begin(), vi.end(), li.begin(), 0.0, multi(), add())

Answer: b), c)

Q9. Consider the code segment below. What will be the output?

Q1. Consider the code segment given below.

Which line/s will give error?

a) 66, 66, 66, 66 b) 66, 66, 66, B c) 66, 42, 102, B d) 66, 066, 0x66, B

Answer: c) 66, 42, 102, B

Identify the appropriate option to fill in the blank at LINE-1 such that the program copies the entire content of file a.txt into file b,txt.

a) c = fgetc(ifp) != EOF b) (c = fgetc(ifp)) != EOF c) c = (fgetc(ifp) != NULL) d) (c = fgetc(ifp))

Answer: b) (c = fgetc(ifp)) != EOF

Q3. Match the following Identify the appropriate option.

a) A-IV, B-II, C-I, D-II b) A-III, B-IV, C-I, D-II c) A-III, B-II, C-I, D-IV d) A-IV, B-II, C-I, D-III

Answer: b) A-III, B-IV, C-I, D-II

Q4. Consider the code segment given below.

Identify the appropriate option(s) to fill in the blank at LINE-1 such that the program prints 1.43

a) cout << setprecision(3) << d; b) cout << setprecision(2); cout << d; c) cout.precision(3); cout << d; d) cout.precision(3) << d;

Answer: a), c)

Q5. Consider the code given below to print all the lines from in.txt.

Identify the appropriate option to fill in the blank at LINE-1 such that it checks if the file does not exist.

a) myfile.is_open() b) !myfile.is_open() c) !myfile.open() d) fopen(myfile) == NULL

Answer: b) !myfile.is_open()

Q6. Consider the code segment given below.

Identify the appropriate option(s) to fill in the blank at LINE-1 such that the program finds out the maximum element of the array iArr and the output is 60

a) mVal = max(iArr, iArr + sizeof(iArr) / sizeof(*iArr)) b) max(iArr, iArr + sizeof(iArr) / sizeof(*iArr), mVal) c) max(iArr, &iArr[sizeof(iArr) / sizeof(*iArr)], mVal) d) max(iArr, iArr + sizeof(*iArr) / sizeof(iArr), mVal)

Q7. Consider the code segment below.

Identify the appropriate option(s) to fill in the blank at LINE-1 such that the output is key found

a) int* it = search(iVec, iVec + sizeof(iArr) / sizeof(*iArr), key) b) vector<int>::iterator it = search(iVec, key, iVec.end()) c) vector<int>::iterator it = search(iVec.begin(), iVec.end(), key) d) vector<int>::iterator it = search(iVec.begin(), key, iVec.end())

Q8. Consider the code segment below.

a) 10 : Pranit     20 : Ronit     30 : Lohit     40 : Viraj b) 40 : Viraj     30 : Lohit     20 : Ronit     10 : Pranit c) 30 : Lohit     10 : Pranit     20 : Ronit     40 : Viraj d) 40 : Viraj     20 : Ronit     10 : Pranit     30 : Lohit

Q9. Consider the code segment given below.

<< Prev- Programming in Modern C++ Week 8 Assignment Solutions

>> Next- Programming in Modern C++ Week 10 Assignment Solutions

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.

Related Posts

C++ mcq : c++ basics-(multiple choice question), c++ mcq : c++ variables (multiple choice questions), c++ mcq : c++ keywords (multiple choice questions), c++ mcq : c++ data types (multiple choice questions), c++ mcq : c++ constants (multiple choice questions), c++ mcq : c++ pointers (multiple choice questions).

  • 1st Central Law Reviews: Expert Legal Analysis & Insights

COMMENTS

  1. Programming In Modern C++

    The present course builds up on the knowledge of C programming and basic data structure (array, list, stack, queue etc.) to create a strong familiarity with C++98 / C++03. Besides the constructs, syntax and semantics of C++ (over C), we also focus on various idioms of C++ and attempt to go to depth with every C++ feature justifying and ...

  2. NPTEL Programming In Modern C++ Week 2 Programming Assignment Q2

    🔊NPTEL Programming In Modern C++ Week 2 Programming Assignment Q2 Solution | July 2022 | IIT KharagpurCode Link: https://techiestalk.in/nptel-programming-in...

  3. Nptel Programming In Modern C++ Assignment 2 Answers

    These are Nptel Programming in Modern C++ Assignment 2 Answers. Question 2. Consider the following program. • Fill in the blank at LINE-1 with appropriate formal arguments list. • Fill in the blank at LINE-2 with the appropriate return statement. The program must satisfy the sample input and output.

  4. programming In modern C++

    Here in this video, we solve the programming In modern C++ | NPTEL WEEK 2 ASSIGNMENT SOLUTION | #nptel #assignment #solution #Programming_in_Modern_C++ #npte...

  5. NPTEL Programming in Modern C++ WEEK 2 ASSIGNMENT 2 ANSWERS Solutions

    Nptel Programming in Modern C++ | Week 2 : Assignment 2 | July-2023Week 2 Assignment Answers with proof | 100% correct answersJoin our Telegram Channel : ht...

  6. NPTEL Programming In Modern C++ Week2 Programming Assignment 2024

    NPTEL Programming In Modern C++ Week2 Programming Assignment 2024. February 5, 2024. Faheem Ahmad. There has been a continual debate on which programming language/s to learn, to use. As the latest TIOBE Programming Community Index for August 2021 indicates - C (13%), Python (12%), C++ (7%), Java (10%), and C# (5%) together control nearly half ...

  7. NPTEL Programming In Modern C++ Week 2 Programming Assignment

    NPTEL Programming In Modern C++ Week 2 Programming Assignment. August 6, 2022. Faheem Ahmad. There has been a continual debate on which programming language/s to learn, to use. As the latest TIOBE Programming Community Index for August 2021 indicates - C (13%), Python (12%), C++ (7%), Java (10%), and C# (5%) together control nearly half the ...

  8. NPTEL Programming in Modern C++ Week 2 Assignment Answers 2024

    NPTEL Programming in Modern C++ Week 2 Assignment Answers 2024. 2 February 2024 29 January 2024 by BEU Bihar News. ... NPTEL Programming in Modern C++ Week 2 Assignment Answers 2024. 1. Consider the following program. #include ‹iostream> using namespace std; int add (int n1 = 0) { return n1; } int add(int n1 = 0, int n2 = 0) & {return n1 + n2 ...

  9. NPTEL Programming In Modern C++ Week4 Programming Assignment 2024

    Programming In Modern C++ 2024 Programming Assignment Q1 : Consider the program below. • Fill in the blank at LINE-1 with appropriate keyword, • Fill in the blank at LINE-2 with appropriate return type of the function, • Fill in the blank at LINE-3 with the appropriate initialization statement of the static variable obj.

  10. Programming in Modern C++ NPTEL Week 2 Assignment Solutions

    Show Answer. Programming in Modern C++ NPTEL week 2 Assignment Solutions. Q6. Choose the appropriate option to fill in the blanks at LINE-1, such that the output of the code would be: 300 20000. a) int n3, int* n4. b) int& n3, int *n4. c) int* n3, int* n4. d) int& n3, int& n4. Show Answer.

  11. PDF Week 7 Programming Assignment 2

    Week 7 Programming Assignment 2 In this exercise you will write a program that keeps track of who is in a certain classroom. At the start, the classroom is empty.Then for some time, students keep arriving and departing until the door finally closes.These events are given to the program as input consisting of lines of the following form a x ...

  12. NPTEL Programming in Modern C++ WEEK 2 ASSIGNMENT 2 ANSWERS Solutions

    Nptel Programming in Modern C++ | Week 2 : Assignment 2 | Jan-2024Week 2 Assignment Answers with proof | 100% correct answersNPTEL - Programming in Modern...

  13. Programming in Modern C++ Assignment Week 2 2022

    Students, are you searching for hints of Programming in Modern C++ NPTEL assignment week 2. So, you are landed on the right article where you will get hints for answers by scrolling down. Programming in Modern C++ NPTEL Assignment Week 2. Q1. Consider the following function prototypes of function add()

  14. Nptel Programming In Modern C++ Assignment 12 Answers

    These are Nptel Programming in Modern C++ Assignment 12 Answers. Q3. Consider the program (in C++11) given below that squares each element of vector vec and sums all the squared elements. Fill in the blank at LINE-1 with appropriate option (s) such that the output becomes 149 16 30. a) summation (vec, res)

  15. NPTEL Programming in Modern C++ Week 8 Assignment Answers 2024

    These are Nptel Programming in Modern C++ Assignment 8 Answers. Question 2. Consider the following program. Fill in the blanks as per the instructions given below. • Fill in the blank at LINE-1 with appropriate template declaration for class DataSet. • Fill in the blank at LINE-2 with appropriate declaration of array arr. • Fill in the ...

  16. NPTEL Week 2 Assignment: Programming in Modern C++ July 2023

    NPTEL Week 2 Assignment: Programming in Modern C++ July 2023 is an informative tutorial that provides a comprehensive walkthrough of the second week's progra...

  17. Nptel Programming in Modern C++ Assignment 7 Answers

    These are Nptel Programming in Modern C++ Assignment 7 Answers. Question 2. Consider the following program. Fill in the blanks as per the instructions given below. • at LINE-1, complete the constructor definition, • at LINE-2, complete the overload function header, such that it will satisfy the given test cases.

  18. Introduction To Programming in C

    Week 2: Question 1. In this assignment, you will be given an NxN matrix. You have to. determine whether the matrix is a upper triangular or lower triangular matrix or both or not a triangular matrix. The diagonal of the matrix M of size NxN is the set of entries M (0,0), M (1,1), M (2,2), …, M (N,N).

  19. Programming In Modern C++ Week 2 Quiz Assignment Solution

    Programming In Modern C++ Week 2 Quiz Assignment Solution | NPTEL | SWAYAM | 2024Your Queries : programming in modern c++nptel assignment solutionnptel assig...

  20. Programming in Modern C++

    Show Answer. Programming in Modern C++ Week 9 Solutions. Q4. Consider the following code segment. Choose the correct option regarding the program. a) It prints the number of blank spaces in file myfile.txt. b) It prints the number of words in file myfile.txt. c) It prints the number of lines in file myfile.txt.

  21. NPTEL Programming in Modern C++ WEEK 2 ASSIGNMENT 2 ANSWERS Solutions

    Join our Telegram Channel : https://telegram.me/SwayamSolverNptel Watch Programming in Modern C++ | Week 1 : Programming Assignments :-https://youtu.be/UbSc...