Share:
Notifications
Clear all

Students kindly share assignment files in relevant subject timely for discussion/solution.

or directly share with us " Click here"

[Solved] CS508 Current Papers Final term Spring 2020  

  RSS

admin
(@admin)
Admin
Joined: 2 years ago
Posts: 4409
09/09/2020 7:58 pm  

CS508 Current Papers Final term Spring 2020


 

Dear Students! Please share your current CS508 final term paper's questions here. Will be helpful to other students for their final term exams. ?

 

Share anything you remember ! 

QueryVU WhatsApp Groups subject wise : Join Now


Quote
admin
(@admin)
Admin
Joined: 2 years ago
Posts: 4409
13/09/2020 4:08 pm  

CS508 Current Papers Final term Spring 2020


CS508 current paper | 13-09-2020

 

Q1) Explain Jagged Arrays in case of C# with example. (3 marks)

Q2) What is meant by compound terms (structures) in PROLOG? Give any example. (3)

Q3) What will be the output of the following C# code?   (3)

using System;

public class HelloWorld

{

    public static void Main()               

    {

            string s1 = "hello";     

            string s2 = s1;

                        s1 = “world”;                  

             Console.WriteLine(s1);

     }

}

 

Q4) Write the name of any 3 languages which have pretest logical loop statements. (3)

Q5) Suppose you have a string “unitedkingdom” and a substring “united”. Here “unitedkingdom” is the subject and “united” is the pattern.

Write the snobol code to match/Search the pattern in the Subject.    (3)

Q6) Recursion is a powerful tool used in LISP programming language. Write a function in LISP that calculates the power of x to y by using recursion. (5)

Q7) By using inheritance in Java one object acquires the properties of another object. Consider the following java statements using inheritance:       (5)

 

public class Animal{

}

 

public class Mammal extends Animal{

}

Now based on the above example, In Object Oriented terms which of the following statements are true:

 

  1. a) Animal is the superclass of Mammal class.
  2. b) Mammal and Reptile are sub classes of Animal class.

 

Also Identify superclass and subclass here.

 

 

 

 

 

Q8) Given the following set of Prolog clauses     (5marks)

            father(X,Y) :- parent(X,Y), male(X).

            parent(sally,bob).

            parent(jim,bob).

            parent(alice,jane), parent(thomas,jane).

            male(bob).

            male(jim).

            male(thomas).

            female(sally).

            female(alice).

 

Write the output of each query.

            ?- father(X,jane).

            ?- parent(jim,alice).

            ?- female(sally).

            ?- parent(alice,jane).

            ?- male(alice).

 

 

Q9) var students=["Ali", "Aakash", "Taha", "Faiq"];

Based on the above Javascript array, what will be the output of following JavaScript statements:
  
   1. document.write(students[2]);
   2. document.write("My name is " + students[0]);

  1. document.write(students[1]+students[3]);
  2. students[2]="Furqan";
    document.write(students[0]+"  "+students[1]+"  "+students[2]+"  "+students[3]);

 (5marks)

 

 

Q10) Explain ordinal types (user defined) and point out the issues related with ordinal types.  (5)

 

 

QueryVU WhatsApp Groups subject wise : Join Now


ReplyQuote
admin
(@admin)
Admin
Joined: 2 years ago
Posts: 4409
22/09/2020 12:03 am  

CS508 Current Papers Final term Spring 2020


CS508 current paper

 

10 mcqs past say thy baki handout
Subjective
1.Separate head and tail in prolog
2.Array in java script and write array code
3.Write the code of snowbal
4.write PHP code
Or yad nhi

QueryVU WhatsApp Groups subject wise : Join Now


ReplyQuote

Leave a reply

Author Name

Author Email

Title *

 
Preview 0 Revisions Saved
Share: