|
Which of the following statements
is correct about the C#.NET code snippet given below?
interface
IMyInterface
{
void fun1();
int fun2();
}
class
MyClass: IMyInterface
{
void fun1()
{ }
int IMyInterface.fun2()
{ }
}
|
||||||||||
|
|
2.
|
Which of the following can be
declared in an interface?
|
|||||||
|
|
3.
|
A class implements two interfaces
each containing three methods. The class contains no instance data. Which of
the following correctly indicate the size of the object created from this
class?
|
|||||||||
|
|
4.
|
Which of the following statements
is correct about an interface used in C#.NET?
|
|||||||||
|
||||||||||
|
5.
|
Which of the following statements
is correct about Interfaces used in C#.NET?
|
|||||||||
|
||||||||||
|
6.
|
Which of the following statements
is correct about an interface used in C#.NET?
|
|||||||||
|
|
7.
|
Which of the following statements
is correct about an interface?
|
|||||||
|
|
8.
|
Which of the following statements
are correct about an interface in C#.NET?
|
|||||||
|
|
9.
|
Which of the following is the
correct implementation of the interface given below?
interface IMyInterface
{
double MyFun(Single i);
}
|
|||||||
|
|
10.
|
Which of the following statements
is correct?
|
|||||||
|
||||||||
|
|
11.Which of the following
statements are correct about an interface used in C#.NET?
|
|||||||
|
|
12.
|
Which of the following can
implement an interface?
|
|||||||
|
|
13.
|
Which of the following statements
is correct about the C#.NET code snippet given below?
interface
IMyInterface
{
void fun1();
void fun2();
}
class
MyClass: IMyInterface
{
private int i;
void IMyInterface.fun1()
{
// Some
code
}
}
|
|||||||||
|
|
14.
|
Which of the following statements
is correct about the C#.NET code snippet given below?
interface
IPerson
{
String FirstName
{
get;
set;
}
String LastName
{
get;
set;
}
void Print();
void Stock();
int Fun();
}
|
|||||||||
|
|
15.
|
Which of the following is the
correct way to implement the interface given below?
interface
IPerson
{
String FirstName
{
get;
set;
}
}
|
|||||||
|
No comments:
Post a Comment