Time remaining
:
:
Test Status
CSHARPRANDOMTEST
Ques 1 :
Which keyword is used to achieve shadowing in C#?
(A) Abstract
(B) New
(C) Shadow
(D) Sealed
Ques 2 :
What property is used on the datatable to indicate conflicts after update method is called?
(A) HasCollision
(B) HasErrorConflict
(C) HasError
(D) HasDataError
Ques 3 :
Automatic paging is possible in
(A) datareader
(B) dataset
(C) datatabel
(D) all
Ques 4 :
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
Ques 5 :
Which of the following are NOT true about .NET Framework?
1. It provides a consistent object-oriented programming environment whether
object code is stored and executed locally, executed locally but Internet-
distributed, or executed remotely.
2.It provides a code-execution environment that minimizes software deployment and versioning conflicts.
3.It provides a code-execution environment that promotes safe execution of code, including code created by an
unknown or semi-trusted third party.
4.It provides different programming models for Windows-based applications and Web-based applications.
5.It provides an event driven programming model for building Windows Device Drivers.
(A) 1, 2
(B) 2, 4
(C) 4, 5
(D) 1, 2, 4
Ques 6 :
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.
Ques 7 :
What is a satellite Assembly?
(A) A peripheral assembly designed to monitor permissions requests from an application.
(B) An assembly containing localized resources for another assembly.
(C) An assembly designed to alter the appearance or .skin. of an application.
(D) Any DLL file used by an EXE file.
Ques 8 :
Which of these statements correctly declares a two-dimensional array in C#?
(A) int[][] myArray;
(B) int[,] myArray;
(C) System.Array[2] myArray;
(D) int[2] myArray;
Ques 9 :
Which of the following jobs are done by Common Language Runtime?
1. It provides core services such as memory management, thread management, and remoting.
2. It enforces strict type safety.
3. It provides Code Access Security.
4. It provides Garbage Collection Services.
(A) Only 1 and 2
(B) Only 3, 4
(C) Only 2, 3 and 4
(D) All of the above
Ques 10 :
Which of the following namespaces used in C#.NET?
(A) using System;
(B) using System.Collections.Generic;
(C) using System.Windows.Forms;
(D) All of the above are used
Ques 11 :
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 12 :
What is the Difference between Convert.ToInt32 and Int.Parse?
(A) Both are Same
(B) Convert.ToInt32 Can't Handle Null Values ,it will throws rgumentNullException error.
(C) Int.Parse Can't Handle Null values , It will throws ArgumentNullException Error.
(D) Both can Handle Null Values
Ques 13 :
Which method do you invoke on the SQLDataAdapter object to load your dataset with data?
(A) Update
(B) Fill
(C) Gather
(D) Load
Ques 14 :
Difference between Convert.ToString() and ToString()
(A) Convert.ToString() handle null values but ToString() don't
(B) Convert.ToString() only handle null values
(C) ToString() handle null values but Convert.ToString() don't
(D) ToString() output as per format supplied
Ques 15 :
Different ways a method can be overloaded in C#.NET
(A) Different parameter data types
(B) Different order of parameters
(C) Different number of parameters
(D) All of above
Ques 16 :
Which of the following are not types of access modifiers in C#?
(A) external protect
(B) internal protect
(C) protect
(D) internal
Ques 17 :
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 18 :
An Event has _____ as default return type
(A) No return type for events
(B) String
(C) Double
(D) Integer
Ques 19 :
Identify which is true
(A) DataView ia subset of row and not columns
(B) find can be done only on sorted columns
(C) Sorting can be done on multiple columns
(D) None of these
Ques 20 :
Which of the following statements is correct?
(A) A constructor can be used to set default values and limit instantiation.
(B) Destructors are used with classes as well as structures.
(C) A class can have more than one destructor.
(D) C# provides a copy constructor.
Submit Answer
Don't Refresh the Page !! ...