Grace College of Engineering: Department of Computer Science and Engineering Model Exam
Grace College of Engineering: Department of Computer Science and Engineering Model Exam
MULLAKKADU
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Model Exam
CS8073-C# and .NET Prgramming
Year/Sem:IV/7 Date:6.11.2020
Time:10AM-11AM Max.Marks:60
PART A(30*1=30)
4. The ____ language allows more than one method in a single class
A. C#
B. J#
C. C++
D. C
9. ______ parameters are used to pass results back to the calling method.
A. Input
B. Reference
C. Value
D. Output
10. _______ variables are visible only in the block they are declared.
A. System
B. Global
C. Local
D. Console
12. 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
14. When an instance method declaration includes the abstract modifier, the
method is said to be an ______.
A. Abstract method
B. Instance method
C. Sealed method
D. Expression method
21. The ______ are the Graphical User Interface (GUI) components created for
web based interactions..
A. Web forms
B. Window Forms
C. Application Forms
D. None of the above
24. The infrastructure that supports these dynamic operations at run time is
called the__________.
A.CLR
B.CTS
C.CLS
D.DLR
PART-B (15*2=30)
31. The ______ parentheses that follow _____ indicate that no information is
passed to Main ().
A. Empty, class
B. Empty, submain
C. Empty, Main
D. Empty, Namespace
33. Which of the following is the root of the .NET type hierarchy?
A. System.Object
B. System.Base
C. System.Root
D. System.Parent
36. Which of the following jobs are NOT performed by Garbage Collector?
1.Freeing memory on the stack.
2.Avoiding memory leaks.
3.Freeing memory occupied by unreferenced objects.
4.Closing unclosed database collections.
5.Closing unclosed files.
(A) 1, 2, 3
(B) 1, 4, 5
(C) 3, 5
(D) 3, 4
40. Which file contains configuration data for each unique URl resource used
in project?
A. web.config
B. global.asax
C. webapplication.vsdisco
D. assemblyinfo.cs
44. Which of the following statements is correct about the C#.NET program
given below?
namespace PskillsConsoleApplication
{
class Baseclass
{
int i;
public Baseclass(int ii)
{
i = ii;
Console.Write(“Base “);
}
}
class Derived : Baseclass
{
public Derived(int ii) : base(ii)
{
Console.Write(“Derived “);
}
}
class MyProgram
{
static void Main(string[ ] args)
{
Derived d = new Derived(10);
}
}
}
A. The program will report an error in the statement base(ii).
B. The program will work correctly if we replace base(ii) with
base.Baseclass(ii).
C. The program will output: Base Derived
D. The program will work correctly only if we implement zero-argument
constructors in Baseclass as well as Derived class.