<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with cs508]]></title><description><![CDATA[A list of topics that have been tagged with cs508]]></description><link>https://community.secnto.com//tags/cs508</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 20:01:03 GMT</lastBuildDate><atom:link href="https://community.secnto.com//tags/cs508.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[CS508 GDB 1 Solution and Discussion]]></title><description><![CDATA[@ozair said in CS508 GDB 1 Solution and Discussion:

Re: CS508 GDB.1 Solution and Discussion
Total Marks	5
Starting Date	Monday, February 15, 2021
Closing Date	Tuesday, February 16, 2021
Status	Open
Question Title	GDB
Question Description	
In a programming world, Lambda Expression (i.e. lambda function) is essentially a block of code that can be assigned to a variable, passed as an argument, or returned from a function call. It has been part of several programming languages like Smalltalk, Lisp, Ruby, Scala, Python, Java and C# etc. for quite some time.
In context of C# programming, a lambda can be used instead of an anonymous method/function where we do not need to provide access modifier, return type and even name of the method. For example, the following anonymous method checks if a student is teenager or not:
Listing 1: (anonymous method in C# to check if a student is teenager or not)
delegate(Student std) {
return std.Age &gt; 12 &amp;&amp; std.Age &lt; 20;
}
While the same functionality can be achieved by using lambda as;
Listing 2: (checking if a student is teenager or not using lambda in C#)
std =&gt; std.Age &gt; 12 &amp;&amp; std.Age &lt; 20;
Here, we can see that the code has been shortened (i.e. writability increased). However, it makes the code relatively difficult to understand as “std” in listing 2 is ambiguous (i.e. readability decreased). But what about Reliability?
Being a programming language expert, you are required to compare both approaches (i.e. code written with/without lambda) and state which one is better in terms of Reliability in C# programming language.

Anonymous Method Limitations
It cannot contain jump statement like goto, break or continue.
It cannot access ref or out parameter of an outer method.
It cannot have or access unsafe code.
It cannot be used on the left side of the is operator.
]]></description><link>https://community.secnto.com//topic/2188/cs508-gdb-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/2188/cs508-gdb-1-solution-and-discussion</guid><dc:creator><![CDATA[Pak Love]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment 3 Solution and Discussion]]></title><description><![CDATA[Please share ideas solution
]]></description><link>https://community.secnto.com//topic/2000/cs508-assignment-3-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/2000/cs508-assignment-3-solution-and-discussion</guid><dc:creator><![CDATA[Tahir Baloch]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment 2 Solution and Discussion Spring 2020]]></title><description><![CDATA[main.adb
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;
with per;
use per;
with Mn;
use Mn;

procedure main is

   -- Creating object of type Men
   men1 : Men;
   len: Natural;
Begin
	-- Taking input ID
   Put_Line("Enter ID : ");
   Get_Line(men1.ID, len);

   -- Taking input Name
   Put_Line("Enter Name : ");
   Get_Line(men1.Name, len);

    -- Taking input Gender
   Put_Line("Enter Gender : ");
   Get_Line(men1.Gender, len);

   -- Taking input Height
   Put_Line("Enter Height : ");
   Get(men1.Height);

   -- Taking input Age
   Put_Line("Enter Age : ");
   Get(men1.Age);

   new_line(2);

   -- Print Function calling
   print(men1);

   new_line(3);

end main;


per.ads
package Per is

   type Person is tagged 
	record
		Name: String(1..30):= "                              ";
		Age: Integer :=0;
		Gender: String(1..10) := "          ";
	end record;
 
 procedure print(Self : in out Person);

end Per;


main.adb
with Ada.Text_IO; 
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;

package body Per is
   procedure print(Self : in out Person) is
		begin
			Put_Line("Name is " &amp; Self.Name);
			Put_Line("Age is " &amp; Integer'Image (Self.Age));
			Put_Line("Gender is " &amp; Self.Gender);
   end print;
   
end Per;


mn.ads
with per;
use per;

package Mn is

   type Men is new Person with 
      record
         Height: Float := 0.0; 
         ID: String(1..15) := "               ";
         
	end record;

   overriding procedure print(Self : in out Men);

end Mn;


mn.adb
with Ada.Text_IO; 
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;
with per;
use per;

package body Mn is

   procedure print(Self : in out Men) is
		begin
			Put_Line("ID is " &amp; Self.ID);
			Put_Line("Name is " &amp; Self.Name);
			Put_Line("Age is " &amp; Integer'Image (Self.Age));
			Put_Line("Gender is " &amp; Self.Gender);
			Put_Line("Height is " &amp; Float'Image (Self.Height));		
		end print;

end Mn;


]]></description><link>https://community.secnto.com//topic/1899/cs508-assignment-2-solution-and-discussion-spring-2020</link><guid isPermaLink="true">https://community.secnto.com//topic/1899/cs508-assignment-2-solution-and-discussion-spring-2020</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment 1  Solution and Discussion]]></title><description><![CDATA[https://www.youtube.com/watch?v=suvkPZTheK0
Solution 100%
outer = 1
OUTLOOP
	OUTPUT = 'Outer ' outer
	outer = outer + 1
	iner = 1
INLOOP
	OUTPUT = 'Iner ' iner
	iner = iner + 1
	LE(iner, 22) : S(INLOOP)
	LE(outer, 11) : S(OUTLOOP)
	OUTPUT = 'My id is BC120401122'
END






]]></description><link>https://community.secnto.com//topic/1803/cs508-assignment-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/1803/cs508-assignment-1-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Compare both virtual machines to check which one is better than other, write at least two valid reasons in either case to support your answer.]]></title><description><![CDATA[Looking at these VMs at the highest-level, the differences between the CLR and JVM seem almost negligible. However, in many (if not most) cases, the differences at the VM-level mirror the key differences between the languages that use them. Because of the way these VMs, and their corresponding languages, were built, each functions slightly differently in order to provide the functional capabilities that their creators wanted to provide.
What do you think about the differences between the CLR and JVM? Will you choose your next programming language based on which VM it uses? Let us know in the comments below!
]]></description><link>https://community.secnto.com//topic/1473/compare-both-virtual-machines-to-check-which-one-is-better-than-other-write-at-least-two-valid-reasons-in-either-case-to-support-your-answer</link><guid isPermaLink="true">https://community.secnto.com//topic/1473/compare-both-virtual-machines-to-check-which-one-is-better-than-other-write-at-least-two-valid-reasons-in-either-case-to-support-your-answer</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Quiz 3 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Quiz No 3	Total Questions : 10<br />
Please read the following instructions carefully!<br />
Quiz will be based upon Multiple Choice Questions (MCQs).</p>
<p dir="auto">You have to attempt the quiz online. You can start attempting the quiz any time within given date(s) of a particular subject by clicking the link for Quiz in VULMS.</p>
<p dir="auto">Each question has a fixed time of 90 seconds. So you have to save your answer before 90 seconds. But due to unstable internet speeds, it is recommended that you should save your answer within 60 seconds. While attempting a question, keep an eye on the remaining time.</p>
<p dir="auto">Attempting quiz is unidirectional. Once you move forward to the next question, you can not go back to the previous one. Therefore before moving to the next question, make sure that you have selected the best option.</p>
<p dir="auto">DO NOT press Back Button / Backspace Button while attempting a question, otherwise you will lose that question.</p>
<p dir="auto">DO NOT refresh the page unnecessarily, specially when following messages appear<br />
Saving…<br />
Question Timeout: Now loading next question…</p>
<p dir="auto">Javascript MUST be enabled in your browser; otherwise you will not be able to attempt the quiz.</p>
<p dir="auto">If for any reason, you lose access to internet (like power failure or disconnection of internet), you will be able to attempt the quiz again from the question next to the last shown question. But remember that you have to complete the quiz before expiry of the deadline.</p>
<p dir="auto">If any student failed to attempt the quiz in given time then no re-take or offline quiz will be held.</p>
<p dir="auto">Start Quiz</p>
]]></description><link>https://community.secnto.com//topic/1113/cs508-quiz-3-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/1113/cs508-quiz-3-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Quiz 2 Solution and Discussion]]></title><description><![CDATA[_________ operator in Prolog is used for List construction and also for List dismantling. CS508
!(Sign of  exclamation)
|(Vertical Slash) PG # 90
:(Colon)
None of the given
]]></description><link>https://community.secnto.com//topic/1101/cs508-quiz-2-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/1101/cs508-quiz-2-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment 3 Solution and Discussion Fall 2019]]></title><description><![CDATA[https://www.youtube.com/watch?v=j4mJTG4sWiU
]]></description><link>https://community.secnto.com//topic/943/cs508-assignment-3-solution-and-discussion-fall-2019</link><guid isPermaLink="true">https://community.secnto.com//topic/943/cs508-assignment-3-solution-and-discussion-fall-2019</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Quiz No. 1 Solution and Discussion]]></title><description><![CDATA[LISP was basically developed to solve ________ problems.
Page:75
LISP was one of the earliest programming language. It was designed at MIT for artificial
intelligence and it has since been the defacto standard language for the AI community,
especially in the US.
[image: YqqcYKG.png]
For immediate value assignment ______ sign is used.	
Page 37
The $ is used for immediate value assignment even if the entire pattern does not match. It
is used as follows:
[image: gKNPMuJ.png]
Following statement returns the union of the two list in LISP.
Page : 68
[image: K6o3kdx.png]
Block statement in Ada is very similar to a block in _______.
Page:56
[image: 4Cbvxg8.png]
_____________ was considered good for describing algorithms.
Page:24
[image: TimQMFg.png]
The declarative language among the following is  CS508 C
Page:77
[image: SIkM5O2.png]
In Ada programming language Tagged types are used for _____
Page:59
[image: k1utbxn.png]
_____ are a type of Aliasing.
[image: 6kgY8ip.png]
How many element(s) are there in LISP list (a (b c))? CS508 1
Page:63
[image: NxpDf0O.png]
In __________, Enumeration type can also be used as indexes in arrays.
Page:51
[image: Sb8NMfp.png]
]]></description><link>https://community.secnto.com//topic/720/cs508-quiz-no-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/720/cs508-quiz-no-1-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment 2 Solution and Discussion]]></title><description><![CDATA[Fall 2019_CS508_2_SOL-1.rar
]]></description><link>https://community.secnto.com//topic/670/cs508-assignment-2-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/670/cs508-assignment-2-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment No. 01  Solution and Discussion]]></title><description><![CDATA[Solution:
Java:
public class MyClass {
    public static void main(String args[]) {
        System.out.println("My id is BC180401429");
        System.out.println("** Language is JAVA **");
        
        for(int i=0;i&lt;=14;i++){
            for(int j=0;j&lt;=29;j++){
                System.out.print("Outer:"+i+"Inner:"+j);
            }
        }

    }
}


[image: 8P6CdT9.png]
C#:
using System;

class Program
{
    static void Main() {
        Console.WriteLine("My id is BC180401429");
        Console.WriteLine("** Language is C# **");
        
        for(int i=0;i&lt;=14;i++){
            for(int j=0;j&lt;=29;j++){
                Console.Write("Outer:"+i+"Inner:"+j);
            }
        }
        
        
    }
}


[image: Vf2OntD.png]
C++:
#include &lt;iostream&gt;

using namespace std;

int main() {
       cout&lt;&lt; "My id is BC180401429 \n";
       
       cout&lt;&lt; "** Language is C++ ** \n";
        
        for(int i=0;i&lt;=14;i++){
            for(int j=0;j&lt;=29;j++){
                cout&lt;&lt; "Outer:"&lt;&lt;i&lt;&lt;"Inner:"&lt;&lt;j;
            }
        }
    
}


[image: vWPXez6.png]
]]></description><link>https://community.secnto.com//topic/535/cs508-assignment-no-01-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/535/cs508-assignment-no-01-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 GDB.1 Solution and Discussion]]></title><description><![CDATA[I think it will be really hard to create one single language all could and importantly would used by all.
All software today could be written in assembly, but it would mean getting up a website could take 6–12 months and probably cost a few million….
If we ever had a single language all would use, that language would need to do 5 things really well.
And while I have seen languages that can do 2–3 out of 5, I have never seen language that can do all 5.


Have really low system overhead and compile to machine code on any platform.


Have terse easy to learn syntax.


Support all the programming paradigms. Procedural, object oriented &amp; functional.


Have really large ecosystem 3rd party packages and great developer tooling for solving any problem in any industry.


Have highly performant bridge to call directly(no REST/JSON/SOAP/XML mess…) to any language. Even if we decided today to rewrite all software to this new miracle language it would take 10 years to modernize all the legacy stuff so integration needs to be seamless.


]]></description><link>https://community.secnto.com//topic/242/cs508-gdb-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/242/cs508-gdb-1-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment No. 03  Solution and Discussion]]></title><description><![CDATA[Assignment Cs508 2022 solution
https://youtu.be/pYgxFD91Rvk
]]></description><link>https://community.secnto.com//topic/240/cs508-assignment-no-03-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/240/cs508-assignment-no-03-solution-and-discussion</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Quiz No. 1 Solution and Discussion]]></title><description><![CDATA[SNOBOL was created specifically for text and string manipulation
]]></description><link>https://community.secnto.com//topic/100/cs508-quiz-no-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/100/cs508-quiz-no-1-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment No. 02  Solution and Discussion]]></title><description><![CDATA[https://www.youtube.com/watch?v=8Mx-5VgTKZU
]]></description><link>https://community.secnto.com//topic/75/cs508-assignment-no-02-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/75/cs508-assignment-no-02-solution-and-discussion</guid><dc:creator><![CDATA[moaaz]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS508 Assignment No. 01  Solution and Discussion]]></title><description><![CDATA[<p dir="auto">![0_1557830172549_9cdfaa7d-59f6-4280-a45e-0ed473bde543-image.png](Uploading 100%)<br />
Assignment No. 01 Semester Spring 2019<br />
CS508-  Modern Programming Languages</p>
<p dir="auto">Total Marks: 20</p>
<p dir="auto">Due Date:  May 14, 2019<br />
Instructions<br />
Please read the following instructions carefully before solving &amp; submitting assignment:<br />
It should be clear that your assignment will not get any credit  if:<br />
•	The assignment is submitted after due date.<br />
•	The submitted assignment does not open or file is corrupt.<br />
•	The assignment is completely or partially copied from (other student or ditto copied from handouts or internet).<br />
•	Student ID is not mentioned in the assignment File or name of file is other than student ID.<br />
•	The assignment is not submitted in .doc or .docx format.<br />
Uploading instructions<br />
Your submission must include:<br />
•	Assignment should be in .doc or .docx format.<br />
•	Save your assignment with your ID (e.g. bx180200786.doc).<br />
Assignment submission through email is NOT acceptable<br />
Objective<br />
The objective of this assignment is to learn how we can evaluate different programming languages based on syntax.<br />
Note:<br />
Your answer must follow the below given specifications.<br />
•	 Font style: “Times New Roman”<br />
•	 Font color: “Black”<br />
•	 Font size: “12”<br />
•	 Bold for heading only.<br />
•	 Font in Italic is not allowed at all.<br />
•	Your answer should be precise and to the point, avoid irrelevant detail.</p>
<p dir="auto">Lectures Covered: This assignment covers Lecture # 01 – 07<br />
Deadline<br />
Your assignment must be uploaded/submitted at or before May 14, 2019.</p>
<p dir="auto">Q1.(8 Marks)<br />
SR No</p>
<p dir="auto">Language Name</p>
<p dir="auto">For loop Syntax</p>
<p dir="auto">1</p>
<p dir="auto">JAVA</p>
<pre><code>for(int i=1;i&lt;11;i++){             System.out.println(i);
}
</code></pre>
<p dir="auto">2</p>
<p dir="auto">Python</p>
<pre><code>for x in range(1,11):
print(x)
</code></pre>
<p dir="auto">3</p>
<p dir="auto">Kotlin</p>
<pre><code>for (i in 1..10) {
println(i)
}
</code></pre>
<p dir="auto">4</p>
<p dir="auto">Swift</p>
<pre><code>for i in 1...10 {
print(i)
}
</code></pre>
<p dir="auto">Given below is for loop syntax to ‘print 1 to 10 numbers’ in 4 different Programming languages:</p>
<p dir="auto">You are required to calculate points of each language on the basis of following aspects:</p>
<ol>
<li>Readability</li>
<li>Reliability</li>
<li>Cost/Programming effort<br />
You have total 30 points for each language.10 points for each aspect based on your opinion.<br />
Scale: 1 point lowest and 10 highest<br />
Q2.(12 Marks):<br />
Now explain each point according to winning language in each category for example if python has higher points in Readability then explain why this language has higher points in this section as compared to other languages given above. If there is a tie in 2 languages in the same category then explain both.<br />
Note: Only consider the code of each language which is written above while calculating the points.</li>
</ol>
]]></description><link>https://community.secnto.com//topic/43/cs508-assignment-no-01-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/43/cs508-assignment-no-01-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>