Time remaining
:
:
Test Status
CSHARPRANDOMTEST
Ques 1 :
What is ENUM?
(A) It is used to initialize variables
(B) It is used to define constants
(C) It is used to define variables
(D) None
Ques 2 :
How to kill a user session explicitly?
(A) Session.Discard()
(B) Session.Close()
(C) Session.Abandon()
(D) Session.kill()
Ques 3 :
Is it possible to store multiple data types in System.Array?
(A) Yes
(B) No
Ques 4 :
A master page is merged with a content page ________ in the page execution life cycle
(A) Very early
(B) Very late
(C) Early
(D) Late
Ques 5 :
Which of the following constitutes the .NET Framework?
1. ASP.NET Applications
2. CLR
3. Framework Class Library
4. WinForm Applications
5. Windows Services
(A) 2, 5
(B) 2, 1
(C) 2, 3
(D) 3, 4
Ques 6 :
Which of the following statements are correct about a .NET Assembly?
1. It is the smallest deployable unit.
2. Each assembly has only one entry point - Main(), WinMain() or DLLMain().
3. An assembly can be a Shared assembly or a Private assembly.
4. An assembly can contain only code and data.
5. An assembly is always in the form of an EXE file.
(A) 1, 3, 5
(B) 1, 2, 3
(C) 2, 4, 5
(D) 1, 2
Ques 7 :
Which of the following .NET components can be used to remove unused references from the managed heap?
(A) Class Loader
(B) Garbage Collector
(C) CTS
(D) CLR
Ques 8 :
Which is true about Interface and abstract methods?
(A) We can write only one abstract method inside interface.
(B) No method is abstract inside interface
(C) All the methods inside Interface in an abstract method.
(D) None of the above
Ques 9 :
If a class is using an interface, it must
(A) contain the same methods as the interface
(B) inherit the properties of the interface
(C) create an interface object
(D) all of the above
Ques 10 :
Which of the following is/are not types of arrays in C#?
(A) Single-Dimensional
(B) Multidimensional
(C) Jazzed arrays
(D) Jagged arrays
Ques 11 :
In C#, the statement that is used to replace multiple if statements is called?
(A) The nestedif statement
(B) The #endif statement
(C) The switch case statement
(D) None of these
Ques 12 :
What does Dispose method do with connection object?
(A) Close the connection
(B) Temporary dispose the connection
(C) Deletes it from the memory
(D) All of the above
Ques 13 :
Can an Interface be instantiated directly?
(A) Yes
(B) No
Ques 14 :
Which of the following statements are correct about the C#.NET code snippet given below?
class Sample
{
static int i;
int j;
public void proc1()
{
i = 11;
j = 22;
}
public static void proc2()
{
i = 1;
j = 2;
}
static Sample()
{
i = 0;
j = 0;
}
}
(A) j can be initialized in proc2().
(B) i cannot be initialized in proc1().
(C) proc1() can initialize i as well as j.
(D) proc2() can initialize i as well as j.
Ques 15 :
Which of the following security features can .NET applications avail?
1. PIN Security
2. Code Access Security
3. Role Based Security
4. Authentication Security
5. Biorhythm Security
(A) 2, 5
(B) 2, 3
(C) 1, 4, 5
(D) 3, 4
Ques 16 :
Which of the following statements correctly define .NET Framework?
(A) It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.
(B) It is an environment for developing, building, deploying and executing Distributed Applications.
(C) It is an environment for development and execution of Windows applications.
(D) It is an environment for developing, building, deploying and executing only Web Applications.
Ques 17 :
___________________ allow to encapsulate discrete units of functionality and provide a graphical representation of that functionality to the user
(A) object
(B) controls
(C) class
(D) graphics
Ques 18 :
How many web.config files that can be there an ASP.NET application?
(A) only one
(B) more than one
(C) only two
(D) upto 10
Ques 19 :
C# doesnot support:
(A) abstraction
(B) polymorphism
(C) multiple inheritance
(D) inheritance
Ques 20 :
In the NUnit test framework, which attribute must adorn a test class in order for it to be picked up by the NUnit GUI?
(A) TestFixtureAttribute
(B) TestClassAttribute
(C) TestAttribute
(D) NUnitTestClassAttribute
Submit Answer
Don't Refresh the Page !! ...