Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Graded Discussion Board (GDB) of CS201 will be launched on Wednesday, February 18, 2015 and it will close on Thursday, February 19, 2015.

Dear Students!

Graded Discussion Board (GDB) of CS201 will be launched on Wednesday, February 18, 2015 and it will close on Thursday, February 19, 2015.

GDB Scenario: Every programming language provides different features to make coding task easy. One of the main objectives is to keep things simple as possible. You have studied C++ in this course and have learnt many different concepts e.g. input/output, if-else statements, loops, arrays, functions etc.

Looping constructs are needed when a statement or a block of statement is repeatedly executed until a specific condition holds true. You have learned in this course that C++ provides three looping constructs; For Loop, While Loop and Do-while Loop.

For C++ designers, it is not easy to include a construct or structure while developing this computer language. On the other hand, it also increases the complexity for learners as languages with more construct are difficult to learn. 

A language expert Mr. ABC objects the designers of C++ on the bases of following two arguments:

  • A single looping construct is sufficient to cover all types of situations.
  • Designers of C++ have not done any good with themselves and C++ programmers by making things complex with provision of three different looping constructs.


GDB Question: Your Task is to comment on the views of Mr. ABC.  Clearly state your position in favour or against for each argument of Mr. ABC with justified reasons.


A concise, coherent and to the point answer is preferred over lengthy comment having irrelevant details.  Answers, posted on regular Lesson's MDB or sent through email will NOT be considered in any case.

Best of Luck!

Instructor CS201

Views: 5652

Replies to This Discussion

Aween e Advance me dara dittaa

The do-while circle tells us that the individual needs the circle to
execute at least once. The while circle tells us that it might be
skipped all around. The "for" circle provides for us an opportunity to divided the
circumnavigating basis from the code that executes in the midst of each cycle.
The explanation behind an unusual state lingo is to make it straightforward for an
individual to exhort a PC what to do. In spite of the way that a singular
circumnavigating create would be sufficient for the PC, C++'s 3 creates make it
more straightforward on the single person by providing for them an opportunity to express their arrangement.
This is extraordinary when creating code, however significantly more vital
at the point when taking care of it.
I use the "for" circle oftentimes, and not just for direct
counter circles. Most circles genuinely do have a setup method of reasoning, a circle
test, and a dare to move you to the accompanying cycle. In case
a circles has no under 2 of these 3, then I use thus manufacture.
Mr. ABC for occasion would incline to unrivaled circle
sort.furthermore that is for circle.


Email has been the most promptly gotten appearance of correspondence ever known. Under two decades back, not a lot of individuals had been able to be aware of it. Rapidly, different us email as opposed to making letters or truly calling individuals on the telephone. Individuals as far and wide as could be permitted pass on billions of email messages dependably.

At any rate from time to time even email isn't quick enough. You may not know whether an individual you need to email is online right away. Besides, if you're illuminating over and over with somebody, you generally need to investigate a few steps. This is the reason informing (IM) has wound up so extraordinary.

With IM, you can keep a rundown of individuals you interface with. You can IM with anybody on your amigo outline or contact list the length of that individual is on the web. You make messages to one another into a little window that appears on both of your screens.


Email is essentially fleeting, while a letter can take a few days to arrive. While faxes are snappier than postal mail, they can endure yields because of included telephone lines, mechanical issues or even unfortunate inadequacy of paper on either end. Not under any condition like telephone calls, messages can be sent without holding up for an answer.


Email rewards control to beneficiaries and senders. Beneficiaries have the opportunity to react energetically without going up against sometimes meddlesome impedances of different sorts, Email also gives beneficiaries time to assemble data to react, and structure more able, short, informational answers. Senders respect these same purposes of speculation.


Email can help manufacture advantage. Business visionaries can relate with fabricated transport records, regularly forward data in viewpoint of a subject, or send data to particular people as required. Most email programming gives customization qualities you can tailor to the sort of work performed, volume of orderly email messages and the needs of the power. Fit email utilization can diminish dependence on versus direction and social occasions


Moving correspondences from physical mail to email can acknowledge segregating store finances in postage expenses, shipping supplies and operators assets. Affiliations can comparatively diminish client association help costs by concentrating on email client help choices as opposed to telephone based associations.


Send notes over and over with a pal who is on the web. There are obviously obstacles of informing. While the consistent reaction is astounding, IMs do take away the eye to eye, individual experience that individuals have when they are having a tendency to somebody in single individual. You can't generally get an OK anxious spot on some single person through IM nor are you certain of who you are talking with through IM, which can be unsafe in case you aren't watchful. Different squares wire –

Unsteadiness that the individual you are conversing with is the individual you are talking with, particularly when you are not enormously acquainted with the things and dangers of the web. This can be unsafe. In addition your PC may be trapped of defilements because of you may unintentionally get several records from the dim individuals or click a hid URL.

In affiliation environment, there will be potential for sick utilization. Individuals in working environments may utilize the IM's as a part of the middle of work time to visit with mates and waste time or truly bring the conceivable illness from outside.

There are additionally some security dangers like the substance of the substance may be gotten. In like manner the dubious information like client outline, plans report may be revealed on the

let start Discussion plz

Well.., it sounds like we need to look at the three types of loops, and give an argument about the two(2) comment Mr. ABC said about C++ loops and programmers.

kuch disscuss bhi krain bhi...

I think time pas kr rhe

The purpose of a high level language is to make it easy for a person to tell a computer what to do. Although a single looping construct would be sufficient for the computer, C++'s 3 constructs make it easier on the person by letting them express their intent. This is good when writing code, but even more important when maintaining it.

The do-while loop tells us that the person wants the loop to execute at least once. The while loop tells us that it might be skipped altogether. The "for" loop lets us isolate the looping logic from the code that executes during each iteration.

I use the "for" loop most often, and not just for simple counter loops. Most loops really do have some sort of setup logic, a loop test, and a step to move you to the next iteration. If a loops has at least 2 of these 3, then I use the



Mr. ABC for example would prefer only one loop type. and that is for loop.

Designers of C++ have not done any good with themselves and C++ programmers by making things complex with provision of three different looping constructs.
This answer?

kuch to discuss koro


Looking For Something? Search Below

Latest Activity

saba zulfqar posted blog posts
1 hour ago
+ ¢αяєℓєѕѕ gιяℓ updated their profile
1 hour ago
saba zulfqar and Hania Khalid Shariff are now friends
4 hours ago
Mr Siren Head replied to Hania Khalid Shariff's discussion zero semester
9 hours ago
Profile Iconshahzad Hussain and Umar Farooq joined Virtual University of Pakistan
10 hours ago
Hania Khalid Shariff and Huma Ahmad are now friends
19 hours ago
Huma Ahmad liked Hania Khalid Shariff's profile
20 hours ago
BBA(6th smes) left a comment for Rimsha mujahid
21 hours ago

VIP Member Badge & Others

How to Get This Badge at Your Profile DP


Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service