Monday, 8 July 2013

CSHARP BASIC MULTIPLE CHOICE QUESTIONS - K MANOHAR GOUD

9866550012

1. A variable which is declared inside a method is called a________variable


2. Feature of a local variable


3. Two methods with the same name but with different parameters.


4. Which of the following characters ends every C# statement?

What data type should be used when we want to store any type of data?
  1. int
  2. float
  3. double
  4. object

What is an Immutable variable?
  1. An object whose value cannot be changed once it is set.
  2. type An object whose value can be changed once it is set.
  3. Both

Which Exception is thrown when a variable on RHS is casted to and is not as of type on LHS?
  1. Invalid cast Exception
  2. Argument Null Exception
  3. Application Exception
  4. System Exception

What is the default value of the first enum member?
  1. 1
  2. 0

  _______ is the term used to describe the transformation from Value Type to reference type.
  1. Boxing
  2. UnBoxing
  3. Implicit Casting
  4. Explicit Casting

Can a decimal be categorized as floating point datatype?
  1. Yes
  2. No

What is the type of a Structure?
  1. Reference Type
  2. Value Type

What are the operators supported in C# not in VB.Net?
  1. ++, --
  2. ? :, <<, >>
  3. ==, sizeof
  4. All the above

  How to iterate loop infinitely?
  1. set condition (true)
  2. set condition (false)
  3. Both

What are Optional Parameters?
  1. Every optional argument in the procedure definition must specify a default value.
  2. The default value for an optional argument must be a constant expression.
  3. Every argument following an optional argument in the procedure definition must also be optional.
  4. All the above

 Can we mention Parameter Array as a first parameter for a given method?
  1. Yes
  2. No

What is the namespace required for StringBuilder Class?
  1. System.Text
  2. System.Object

  Enum is used for _______
  1. More reliability
  2. More readability
  3. Less readability
  4. None

 Strings are ___________ types
  1. Reference
  2. Value
  3. Depends
  4. Can't say

Byte can be implicitly assigned to ________ datatype.
  1. int
  2. char
  3. string
  4. All the above

Select Case (...expression...)
what are the valid DataTypes in SelectCase (expression) Statement?
  1. integer
  2. char
  3. string
  4. Above all

The base class for all classes in .NET Framework is: ________
  1. System.Nullable
  2. System.Object
  3. System.String
  4. System.Type

 Strings in .NET are _______
  1. Immutable
  2. Mutable
  3. Modifiable
  4. None of the above

 Floating point division with zero is ________
  1. Runtime exception
  2. Not a runtime exception
  3. Compilation error
  4. None

All value types in Common Type System derive from ________.
  1. System.Enum
  2. System.ValueType
  3. System.Int32
  4. None of the above

 _________ specifies how a member is accessible outside the class.
  1. Polymorphism
  2. Encapsulation
  3. Inheritance
  4. Method Overriding

What is MSIL?
  1. It is a intermediate instruction set which is OS and hardware independent
  2. It is machine code instruction set which is OS and hardware dependent
  3. It is an instruction set which is OS independent and a hardware dependent.
  4. It is a Intermediate Instruction set which is OS dependent and hardware independent.

What all is MS.Net Framework made up of?
  1. Operationg System
  2. Base Class Libraries
  3. Common Language Runtime
  4. Visual Studio.NET

What is the advantage of using DotNetfuscator tool in .Net?
  1. It converts the source code to MSIL code
  2. It prevents the application to be reverse engineered
  3. It is used for the reverse engineering of the application
  4. Its used to compile MSIL into PE.

What is the difference between un-safe code & un-managed code.
  1. Un-managed code runs inside the CLR and Un-safecode runs outside the CLR control
  2. Un-managed code runs outside the CLR control while the Un-safe code runs inside the CLR control
  3. Un-managed code runs outside the CLR and Un-safecode runs outside the CLR control
  4. Un-managed code runs inside the CLR and Un-safecode runs inside the CLR control

What is CLR?
  1. It manages the code at execution time.
  2. It does memory management, thread management.
  3. It enforces strict variable type definitions, security and robustness
  4. All the above

Different BCL'S are categorized under _________
  1. Class library
  2. FCL
  3. namespace
  4. Root class
 The root namespace for base class is ____________
  1. System
  2. BCL
  3. Base
  4. None
The output of any .NET program is a ___________
  1. PE file
  2. DLL File
  3. EXE File
  4. None of the above

The return value of an application is called as __________
  1. Solution
  2. Exit code
  3. Return code
  4. None
 All dynamic memory requirements of an application are fulfilled from the _______ memory
  1. Global
  2. Stack
  3. Heap
  4. None

  Portable Executable consists of
  1. MSIL and Meta Data
  2. Source Code and Native Code
  3. MSIL only
  4. Course code only

CLR manages code at
  1. Compile Time
  2. Run Time
  3. after the program terminates
  4. None of the above

 What is the Difference between Namespace and Assembly?
  1. Namespace can span multiple assemblies.
  2. Namespace is a collection of names and assembly is an output unit.
  3. Both A and B
  4. Both provides direct support for a set of built-in data types

What is the common type system (CTS)?
  1. It defines a common set of types that can be used for different languages.
  2. It defines a language standard for .NET language and types declared in it
  3. It is a Intermediate language which is assembled into bytecode.
  4. It provides direct support for a set of built-in data types

 What is ILDASM?
  1. It provides direct support for a set of built-in data types
  2. Converts exe or dll in to IL code.
  3. It defines a language standards for a .NET language and types declared in it
  4. All the above
 CLR is the component of .NET framework enables JIT compilation ?
  1. True
  2. False

What is ASP.NET role in .NET framework?
  1. Framework that provides functionality for Web based UI.
  2. It is used for Windows and Web based applications
  3. ASP.NET is a base class library for Web based applications








No comments:

Post a Comment