EXAMINATION MAIN SIT EXAM PAPER: Year: 2020/21
Module code: CS6004ES
Module title: Application Development
Module leader: Mr. Praveen Croos
Date: 13th December 2020
Day / evening: Day
Start time: 9.00 AM
Duration: 24 hours
Exam type: Unseen
Materials supplied: None
Materials permitted: None
Instructions to This exam is worth 40% of the assessment for the module.
candidates: Candidates MUST answer the SECTION A with 30 MCQ
questions (compulsory)
Each question carries 2 marks.
Answer Question One and any other from Question Two or
Three in SECTION B (Only 2). Each question carries 20
marks
DO NOT TURN PAGE OVER UNTIL INSTRUCTED
© London Metropolitan University
INSTRUCTIONS
Type your answers on this paper itself. Please use Blue color
fonts.
All illustrations/ diagrams/ graphs can be hand drawn and
captured as images. Then you can paste the image onto your
answer sheet. (images extracted from online sources / other
material are not accepted for marking)
Equations should be typed (not hand written).
Do not change the order or the numbering of the questions.
Each main question in Section B should start on a new page.
Once finished answering, convert this word document into
a .pdf and submit (only PDF files are accepted).
Part 1 – (MCQ)
Highlight the correct answer/s using Blue color
Q-1 The execution of the program begins with --- ?
a) Get()
b) Main()
c) Class
d) Display()
Q-2 In C# “using” is a -----?
a) function
b) class
c) directive
d) method
Q-3 Which is not an Access Modifier?
a) public
b) private
c) protect
d) internal
Q-4 Which is not a keyword in c#?
a) this
b) finally
c) throw
d) external
Q-5 A super class is also called as ?
a) Base class
b) Derived class
c) Sub class
d) Inherit Class
Q-6 AJAX stands for?
a) Asynchronous Javascript and XML
b) Asynchronous Javas and XML
c) Advanced Javascript and XML
d) Acyclic Java and XML
Q-7 What is the correct way of referring an external style sheet in HTML?
a) <stylesheet>styles.css</stylesheet>
b) <style src="styles.css" />
c) <link rel="stylesheet" type="text/css" href="styles.css" />
d) <script type="stylesheet" src="styles.css" />
Q-8 What would be output for the set of code?
class maths
{
public int x;
public double y;
public int add(int a, int b)
{
x = a + b;
return x;
}
public int add(double c, double d)
{
y = c + d;
return (int)y;
}
public maths()
{
this.x = 0;
this.y = 0;
}
}
class Program
{
static void Main(string[] args)
{
maths obj = new maths();
int a = 4;
double b = 3.5;
obj.add(a, a);
obj.add(b, b);
Console.WriteLine(obj.x + " " + obj.y);
Console.ReadLine();
}
}
a) 4, 3.5
b) 8, 0
c) 7.5, 8
d) 8, 7
Q-9 What will be the output for the given set of code?
class A
{
public int i;
public void display()
{
Console.WriteLine(i);
}
}
class B: A
{
public int j;
public void display()
{
Console.WriteLine(j);
}
}
class Program
{
static void Main(string[] args)
{
B obj = new B();
obj.i = 1;
obj.j = 2;
obj.display();
Console.ReadLine();
}
}
A. 0
B. 2
C. 1
D. Compile Time Error
Q-10 Which of the following is NOT an aggregate function in SQL?
a) Count
b) Like
c) Avg
d) Min
Q-11Can the method add() be overloaded in the following ways in C#.
public int add() { }
public float add(){ }
a) True
b) False
c) None of the mentioned
d) May be
Q-12 Choose output for the following set of code:
static void Main(string[] args)
{
string s1 = "Hello" + " I " + "Love" + " ComputerScience ";
Console.WriteLine(s1);
Console.ReadLine();
}
a) HelloILoveComputerScience
b) Hello I Love ComputerScience
c) Compile time error
d) Hello
Q-13 What will be the output of the following C# code?
class Program
{
static void Main(string[] args)
{
int i ;
for (i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
Console.ReadLine();
}
}
a) 0, 1, 2, 3, 4, 5
b) 0, 1, 2, 3
c) 0, 1, 2, 3, 4
d) 0, 0, 0, 0, 0
Q-14 What will be the output of the following C# code?
static void Main(string[] args)
{
int i, j;
for (i = 1; i <= 3; i++)
{
j = 1;
while (i % j == 2)
{
j++;
}
Console.WriteLine(i + " " + j);
}
Console.ReadLine();
}
a) 11 21 31
b) 1 12 13 1
c) 11 21 31
d) 1 1 2 1 3 1
Q-15 What will be the output of the following C# code?
static void Main(string[] args)
{
int i;
for (i =-3; i <= 3; i++)
{
switch (i)
{
case 0:
Console.WriteLine("zero");
break;
}
if (i > 0)
Console.WriteLine("A");
else if (i < 0)
Console.WriteLine("B");
}
Console.ReadLine();
}
a) B B zero A A A
b) B zero A A A
c) B B B zero A A A
d) A A A zero B B B
Q-16 Number of constructors a class can define is?
a) 1
b) 2
c) Any number
d) None of the mentioned
Q-17 Correct way to define object of sample class in which C# code will work correctly is:
class abc
{
int i;
float k;
public abc(int ii, float kk)
{
i = ii;
k = kk;
}
}
a) abc s1 = new abc(1);
b) abc s1 = new abc();
c) abc s2 = new abc(1.4f);
d) abc s2 = new abc(1, 1.4f);
Q-18 Which of the following is the correct about class member variables?
a) - Member variables are the attributes of an object (from design perspective) and they are
kept private to implement encapsulation.
b) - These private variables can only be accessed using the public member functions.
c) - Both of the above.
d)- None of the above.
Q-19 What is the most suitable web server to publish an application developed by ASP.NET?
a) Apache
b) Internet Information Services (IIS)
c) Apache Tomcat
d) Oracle web logic
Q-20 Which of the following is the correct about interfaces in C#?
a)-Interfaces are declared using the interface keyword.
b) Interface methods are public by default.
c) Both of the above.
d) None of the above.
Q-21 A ___ is an identifier that denotes a storage location.
a) Constant
b) Reference type
c) Variable
d) Object
Q-22 The methods that have the same name, but different parameter lists and different
definitions is called ?
a) Method Overloading
b) Method Overriding
c) Method Overwriting
d) Method Overreading
Q-23 Which of following is not an attribute of <form> tag
a) Action
b) Method
c) name
d) url
Q-24 What Is The Correct HTML For Creating A Hyperlink?
a) <a Href="http://www.example.com">example</a>
b) <a Name="">A</a>
c) <a Url="http://www.example.com">example</a>
d) <a>B</a>
Q-25 If we want define style for an unique element, then which css selector will we use ?
a)Id
b)text
c)class
d) name
Q-26 When we write <img src="img.png">, what "img.png" inside double quote implies?
a)element
b)attribute
c)value
d)operator
Q-27 Which of the following statements are TRUE about the .NET CLR?
1.It provides a language-neutral development & execution environment.
2.It ensures that an application would not be able to access memory that it is not authorized to
access.
3.It provides services to run "managed" applications.
4.The resources are garbage collected.
5.It provides services to run "unmanaged" applications.
A. Only 1 and 2
B. Only 1, 2 and 4
C. 1, 2, 3, 4
D. Only 4 and 5
Q-28 Which of the following is the root of the .NET type hierarchy?
a)System.Object
b)System.Type
c)System.Base
d)System.Parent
Q-29 Which of the following can be facilitated by the Inheritance mechanism?
1. Use the existing functionality of base class.
2. Override the existing functionality of base class.
3. Implement new functionality in the derived class.
4. Implement polymorphic behavior.
5. Implement containership.
a) 1, 2, 3
b) 3, 4
c) 2, 4, 5
d) 3, 5
Q-30) Which of the following is an 8-byte Integer?
a)Char
b)Long
c)Short
d)Integer
Part 2 (Essay type questions)
Answer Question One and any other from question two and three. Each question
carries 20 marks.
Q-1
1. Write a Console program in C# Sharp to read n number of values in an array and
display it in reverse order. (4 Marks)
2. Briefly explain Merge sort technique, Selection Sort technique. (8 Marks)
3. Briefly explain stack, queue data structures and its operations. (8 Marks)
Q-2
4. What the advantages are of cross platform development? (3 Marks)
5. Explain what is unit testing is and how it is useful (7 Marks)
6. Explain Application lifecycle management with its diagram. (10 Marks)
Q-3
1. Explain the concept of Exception handling with a C# program (8 Marks)
2. Briefly compare White box testing with Black box testing. (5 Marks)
3. Write a HTML code to create 2 input text boxes and validate those 2 textboxes with
JavaScript function (Both Fields are mandatory. (7 Marks)