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.

Assignment No. 01
Semester: Fall 2014
Visual Programming-CS411


Please read the following instructions carefully before submitting assignment:

  • You will submit your assignment before or on due date on VU-LMS.
  • Assignment should be completed by your own efforts it should not be copied from internet, handouts or books.
  • You should submit your .doc File via assignment interface at VU-LMS.
  • Assignment sent via Email will not be replied and accepted in any case.
  • If the submitted assignment does not open or file is corrupt, it will not be marked.
  • You will submit solution only in document (.doc or .docx) File.


To build the programming practices in C# environment.

For any query about the assignment, contact at

Assignment Questions


Question 1:                                                                                                              Marks 10     

Find the error in each of the following program segments and explain how

the error can be corrected:

a)      int g( ){

            console.writeLine( “Inside method g”);

            int h( ) {

                        console.writeLine (“Inside method h”);



b)      int sum(int x, int y) {

            int result;

            result = x + y;


c)      int sum( int n) {

            if ( n == 0)

                        return 0;


                        n + sum( n-1 );


d)     void f( float a); {

            float a;

            console.writeLine( a );


Question 2:                                                                                                      Marks 10


Write a program in C# in which you will declare a two-dimensional string array to

store the first name and second name of five persons. Then print the all first and

second name of each person in separate line by using the foreach loop.                                                                                                 


Views: 339

Replies to This Discussion

Share ur ideas plzzz

The persons who r expert in programming give ideas..

And if any1 have backup of visual studio 2012 thn share with me plzzzz

Any one share this assignment solution or hint to solve this assig?

TOday is last date any one solve this assignment ........................


Looking For Something? Search Below

Latest Activity

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