Docsity

CS508 - Modern Programming Languages Assignment 4 Feedback, Exercises of Programming Languages

Toggle sidebar
bg1
Post๎˜ƒAssignment๎˜ƒFeedback๎˜ƒ
Assignment
No.{4}
Course Name (Course Code)
CS508 - Modern
Programming Languages
Marks:
20
Due Date: DD/MM/YYY
27/06/2012
Assignment Solution Step by Step:
In part a) of this scenario based assignment students were required to identify the error in
C# Code snippet given to them. they would have to make explicit casts both ways in order to
get that ode compiled properly.also students were required to provide corrected code
conversion by using explicit casting make explicit casts both ways (even converting from
TEXT to int), i.e.:
int s= (int)TEXT.Bold;
TEXT t= (TEXT)i;
In part b) of this assignment students were required to justify the conditional
statements given to them in C#.proper value of variable was to be checked before justifying
any statement to be true or false.
In part c) of this assignment students were required to follow proper array
declaration syntax for string data type array in C# and populate it with given set of elements
Common
Mistakes &
Explanation:
Mistake 1:
One of the common mistakes that students made was in part a of the
assignment in which students were unable to identify the error in code
correctly and provide correct solution by using type casting in C#..
Concluding
Comments
The overall result for assignment No 4 was above average and it fulfilled the
purpose of giving some hands on practice with C# working environment.
Almost 90% students were correct in their understanding about the concept
docsity.com
pf2

Partial preview of the text

Download CS508 - Modern Programming Languages Assignment 4 Feedback and more Exercises Programming Languages in PDF only on Docsity!

Post Assignment Feedback

Assignment

No.{4}

Course Name (Course Code)

CS508 - Modern

Programming Languages

Marks: 20

Due Date: DD/MM/YYY 27/06/

Assignment Solution Step by Step:

In part a) of this scenario based assignment students were required to identify the error in C# Code snippet given to them. they would have to make explicit casts both ways in order to get that ode compiled properly.also students were required to provide corrected code conversion by using explicit casting make explicit casts both ways (even converting from TEXT to int), i.e.:

int s= (int)TEXT.Bold; TEXT t= (TEXT)i;

In part b) of this assignment students were required to justify the conditional

statements given to them in C#.proper value of variable was to be checked before justifying

any statement to be true or false.

In part c) of this assignment students were required to follow proper array

declaration syntax for string data type array in C# and populate it with given set of elements

Common

Mistakes &

Explanation:

Mistake 1: One of the common mistakes that students made was in part a of the assignment in which students were unable to identify the error in code correctly and provide correct solution by using type casting in C#..

Concluding

Comments

The overall result for assignment No 4 was above average and it fulfilled the purpose of giving some hands on practice with C# working environment. Almost 90% students were correct in their understanding about the concept

docsity.com

covered in assignment questions. Few students were unable to attempt it correctly. However efforts of all students are appreciated .Students are also encouraged to ask queries on mdbโ€™s for lecture related concepts. This will not only facilitate them in understanding concepts of this course but will also show their keen interest towards this subject.

docsity.com