CS508 Current FinalTerm Paper 25 Feb 2017

CS508 Current FinalTerm Paper 25 Feb 2017
CS508 Current FinalTerm Paper 25 Feb 2017


CS508 Current Final Term Papers In ONE thread 25-feb-2017 to 8 march 2017
Share by Student.

Q41:
Should the name of the class and the name of the file in which it is saved need to match up in case of c#. Justify your answer.
Q42:
What was the primary role behind the development of programming language like php?
Q43:
Write a prolog fact for the following statement
“The empty set is the subset of every set”
Subset
Answer:
subset( [ ], Y ). % The empty set is a subset of every set.
subset( [ A | X ], Y ) :- % recursive step
member( A, Y ), subset( X, Y ).
Q44:
Identify the approach used in the following record definition system.
“Employee.EmployeeName.First”
Q45:
How is dynamic binding in java different from C++?
C++ is platform-dependent.
 Java is platform-independent.
C++ is mainly used for system programming.
Java is mainly used for application programming
C++ supports goto statement.
Java doesn't support goto statement.
C++ supports multiple inheritance.
Java doesn't support multiple inheritance
C++ supports operator overloading.
Java doesn't support operator overloading.

Q46:
Explain stack dynamic type of array with two examples.
Answer:
stack-dynamic arrays – run time size definition and
space allocation. It did not have built-in I/O facility.
Q47:
Describe a character array of size 5 in Java also write down the default initial value that will be assigned to each element of an array when no initial value is assigned.
Q48:
How can we define many variables at once in Java Script variables with two examples?
Answer:
<html>
<body>

<h1>JavaScript Variables</h1>

<p>In this example, x, y, and z are variables</p>

<p id="demo"></p>

<script>
var x = 5;
var y = 6;
var z = x + y;
document.getElementById("demo").innerHTML = z;
</script>

</body>
</html>
Q49:
Point out the design issues of counted controlled loop with three examples.
Answer:

Q50:
Suppose you are writing a program for some gaming application in java you need to use arrays data structure to store some values. What basic steps will be taken for array manipulation in Java with two examples? 
Answer:
PROGRAM_ARRAY_DISP
{
integer Ctr;
integer Num_array[5];
Num_array[0] = 10;
Num_array[1] = 20;
Num_array[2] = 30;
Num_array[3] = 40;
Num_array[4] = 50;

For (Ctr=0;Ctr<5;Ctr=Ctr+1)
{
display Num_array[Ctr];
}
}

Q51:
Write a code snipped in C# to print character of vowel array using foreach loop.









Answer:

using System;
namespace loop
{
    class Program
    {
        static void Main(string[] args)
        {
            char[] vowels = { 'a', 'e', 'i', 'o', 'u'};
            foreach (char v in vowels)
            {
                Console.WriteLine(v);
            }
            Console.ReadLine();
        }
    }

}

Welcome to Our WebSite! - | LMS Help | Pakistan NO # 1 . Website for the Students of Virtual University.

Next
Previous
Click here for Comments

0 comments: