

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Assignment
No.{4}
Course Name (Course Code)
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
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