+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Assignment No. 01
Semester: Fall 2014
Visual Programming-CS411
Instructions: Please read the following instructions carefully before submitting assignment:
Objectives: To build the programming practices in C# environment. |
For any query about the assignment, contact at cs411@vu.edu.pk |
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; else 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.
|
Tags:
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)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
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post