Dear Readers, Welcome to C#.Net Objective Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of C#.Net. These objective type C#.Net questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT companies.
A. Java Virtual Machine
B. Common Language Runtime
C. Common Type System
D. Common Language Specification
Ans: A
A. mscoree.dll
B. mcoree.dll
C. msoree.dll
D. mscor.dll
Ans: A
A. Simple Object Access Program
B. Simple Object Access Protocol
C. Simple Object Application Protocol
D. Simple Object Account Protocol
Ans: B
A. C#
B. J#
C. C++
D. C
Ans: A
A. Function
B. Metadata
C. Method
D. Managed code
Ans: C
A. Class()
B. Main()
C. Submain()
D. Namespace
Ans: B
A. Constant
B. Reference type
C. Variable
D. Object
Ans: C
A. Keywords
B. literal
C. variables
D. Identifiers
Ans: A
A. Bool type
B. Instance type
C. Class type
D. Object type
Ans: D
A. Unary operator
B. Ternary operator
C. Decision operator
D. Functional operator
Ans: B
A. Center-associative
B. Right-associative
C. Left-associative
D. Top-associative
Ans: C
A. Operator
B. Expression
C. Condition
D. Logic
Ans: A
A. goto
B. Label
C. Logical
D. Bitwise
Ans: B
A. Looping
B. Functional
C. Exponential
D. Conditional
Ans: D
A. Loop
B. Exit
C. Break
D. Continue
Ans: D
A. Operator
B. Integer
C. Exponential
D. Array
Ans: D
A. Reference
B. Logical
C. Value
D. Arithmetic
Ans: A
A. Square
B. Triangular
C. Rectangular
D. Cube
Ans: C
A. Input
B. Reference
C. Value
D. Output
Ans: D
A. Square
B. Semicolon
C. Parenthesis
D. Colon
Ans: C
A. System
B. Global
C. Local
D. Console
Ans: C
A. parameterized
B. parameter-less
C. Class
D. Method
Ans: B
A. Different
B. Same
C. Invoking
D. Calling
Ans: A
A. Protected
B. Public
C. Private
D. Default
Ans: C
A. Copy constructor
B. Default constructor
C. Invoking constructor
D. Calling constructor
Ans: A
A. Method Overloading
B. Method Overriding
C. Method Overwriting
D. Method Overreading
Ans: A
A. Loop
B. Functions
C. Methods
D. Accessor
Ans: D
A. Abstract method
B. Instance method
C. Sealed method
D. Expression method
Ans: A
A. Data hiding
B. Encapsulation
C. Information Hiding
D. Polymorphism
Ans: B
A. Commutative
B. Associative
C. Transitive
D. Iterative
Ans: C
A. Default point
B. Invoking point
C. Calling point
D. Throw point
Ans: D
A. Method
B. Function
C. Error
D. Iterative
Ans: C
A. If
B. Switch
C. For
D. While
Ans: B
A. Method Implementaion
B. Implicit Interface Implementation
C. Explicit Interface Implementation
D. Iterative Interface Implementation
Ans: C
A. Method collision
B. Name collision
C. Function collision
D. Interface collision
Ans: B
A. Console
B. System
C. Keyboard
D. Monitor
Ans: A
A. m.dddd E+xxx
B. m.dddd
C. E+xxx
D. None of the above
Ans: A
A. Web forms
B. Window Forms
C. Application Forms
D. None of the above
Ans: B
A. JAVA
B. J#
C. VB.NET
D. ASP.NET
Ans: D
A. Microsoft visual studio IDE
B. Application window
C. Web forms
D. None of the above
Ans: A
A.CLR
B.CTS
C.CLS
D.DLR
Ans: D
A.Covariance
B.dynamic
C.Contravariance
D.Object
Ans: B
A.Anonymous
B.Static
C.Abstract
D.Extension
Ans: D
A.Named Parameters
B.Optional Parameters
C.dynamic
D.Variance
Ans: A
A.out
B.named
C.base
D.ref
Ans: D
A.False
B.True
Ans: B
A.optional
B.named
C.out
D.ref
Ans: A
A.dynamic
B.object
C.ref
D.base
Ans: A
A. Template, Component
B. CLR, CTS
C. HTML Forms, Web services
D. Windows, desktop
Ans: A
A. Empty, class
B. Empty, submain
C. Empty, Main
D. Empty, Namespace
Ans: C
A. Yes
B. No
Ans: B
A. * (Asterisk)
B. # (Pound)
C. % (Percent)
D. $ (Dollar)
Ans: C
A. System.Object
B. System.Base
C. System.Root
D. System.Parent
Ans: A
A. abstraction
B. polymorphism
C. multiple inheritance
D. inheritance
Ans: C
A. short
B. System.Int16
C. string
D. a and b
Ans: D
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
Ans: B
A. Managed code is the code that runs on top of Windows.
B. Managed code is the code that is written to target the services of the CLR.
C. Managed code is the code where resources are Garbage Collected.
D. Managed code is the code that is compiled by the JIT compilers.
Ans: B
A. The runtime checks to see that only one version of an assembly is on the machine at any one time.
B. The compiler offers compile time checking for backward compatibility.
C. .NET allows assemblies to specify the name AND the version of any assemblies they need to run.
D. It doesn.t.
Ans: C
A. Single-Dimensional
B. Multidimensional
C. Jazzed arrays
D. Jagged arrays
Ans: C
A. Local
B. Private
C. Static
D. Serial
Ans: A
A. Overloading
B. Multiplexing
C. Duplexing
D. Loading
Ans: A
A. web.config
B. global.asax
C. webapplication.vsdisco
D. assemblyinfo.cs
Ans: A
A. Declaration and initialization is separated
B. It is allocated at compile time
C. It is allocated at runtime
D. all of the above
Ans: D
A. Different parameter data types
B. Different order of parameters
C. Different number of parameters
D. All of above
Ans: D
A. Yes
B. No
Ans: A
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
Ans: C
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.
Ans: C
A. mscorjit
B. cil
C. dgclr
D. None
Ans: B
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
Ans: A
A. Class Loader
B. Garbage Collector
C. CTS
D. CLR
Ans: B
A. Can be used anywhere in the program
B. Is declared within a method
C. Must accept a class
D. Represent a class object
Ans: b
A. is an object of a class
B. represents an attribute of an object
C. is a method of a class
D. a and c
Ans: b
A. creates a button control
B. initializes a button control
C. instantiates button control
D. a and b
E. a and c
Ans: e
A. Represents the behavior of an object
B. Represents the attribute of an object
C. Represents another class
D. a and b
Ans: a
A. is used to create objects
B. must have the same name as the class it is declared within
C. is a method of a class
D. maybe overloaded
E. b and c
F. all of the above
Ans: e
A. Creates the class Test : Form
B. Creates the class Test that inherits the class Form
C. Creates the class form that inherits the class Test
D. a and b
Ans: b
A. Static
B. Private
C. Local
D. Serial
E. b and d
Ans: c
A. Loading
B. Overloading
C. Multiplexing
D. Duplexing
Ans: b
A. Name
B. Formal parameters
C. Return type
D. No errors
Ans: c
A. call
B. this
C. do
D. that
Ans: b
A. class
B. Constructor
C. Object
D. a and b
Ans: c
A. The result of a users action
B. result of a party
C. code to force users action
Ans: a
A. a Wahsington representative
B. a class that encapsulates methods
C. a means of passing arrays into methods
D. a substitue for an inherited method
Ans: b
A. True
B. False
Ans: a
A. True
B. False
Ans: b
A. class MyClass IFace
B. class MyClass ; IFace
C. class MyClass : IFace
D. class MyCalss {IFace}
E. class MyCalss(IFace)
Ans: c
A. inherit the properties of the interface
B. contain the same methods as the interface
C. create an interface objects
D. a and b
E. all of the above
Ans: e
A. System
B. Object
C. Drawing
D. Console
Ans: b
A. Compose good code with C#
B. Compose C# projects with different objects
C. Reduce errors by remaining composed during programming
D. all of the above
Ans: b
A. Override the parent class methods but maintain the implementation
B. Maintain the same return type and arguments as the parent class, but implement it differently
C. Have different return types and arguments than the parent class
D. Are Virtual
Ans: b
A. myArray[1][3];
B. myArray[1.3];
C. myArray{1}{3};
D. myArray(1),(3);
Ans: a
A. True
B. False
Ans: b
A. True
B. False
Ans: b
A. Defines a class that inherits all the methods of A
B. Defines a class that inherits the public and protected methods of A only
C. Errors
D. a and b
Ans: b
A. One constructor takes an argument of type i
B. There is only a default constructor
C. One constructor takes an arguments of the type int
D. False
Ans: b
A. True
B. False
Ans: a
A. Trys
B. Catches
C. Throws
D. a and b
Ans: c
A. Try
B. Catch
C. Exception
D. Event
E. System
Ans: c
A. may contain instance variables
B. may contain constructors
C. may extend another class
D. a and b
E. all of the above
Ans: e
A. Try
B. Catch
C. Exception
D. Error
E. a and b
Ans: a