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?
- int
- float
- double
- object
What is an Immutable variable?
- An object whose value cannot be changed once it is set.
- type An object whose value can be changed once it is set.
- Both
Which Exception is thrown when a variable on RHS is casted to and is not as of type on LHS?
- Invalid cast Exception
- Argument Null Exception
- Application Exception
- System Exception
What is the default value of the first enum member?
- 1
- 0
_______ is the term used to describe the transformation from Value Type to reference type.
- Boxing
- UnBoxing
- Implicit Casting
- Explicit Casting
Can a decimal be categorized as floating point datatype?
- Yes
- No
What is the type of a Structure?
- Reference Type
- Value Type
What are the operators supported in C# not in VB.Net?
- ++, --
- ? :, <<, >>
- ==, sizeof
- All the above
How to iterate loop infinitely?
- set condition (true)
- set condition (false)
- Both
What are Optional Parameters?
- Every optional argument in the procedure definition must specify a default value.
- The default value for an optional argument must be a constant expression.
- Every argument following an optional argument in the procedure definition must also be optional.
- All the above
Can we mention Parameter Array as a first parameter for a given method?
- Yes
- No
What is the namespace required for StringBuilder Class?
- System.Text
- System.Object
Enum is used for _______
- More reliability
- More readability
- Less readability
- None
Strings are ___________ types
- Reference
- Value
- Depends
- Can't say
Byte can be implicitly assigned to ________ datatype.
- int
- char
- string
- All the above
Select Case (...expression...)
what are the valid DataTypes in SelectCase (expression) Statement?
what are the valid DataTypes in SelectCase (expression) Statement?
- integer
- char
- string
- Above all
The base class for all classes in .NET Framework is: ________
- System.Nullable
- System.Object
- System.String
- System.Type
Strings in .NET are _______
- Immutable
- Mutable
- Modifiable
- None of the above
Floating point division with zero is ________
- Runtime exception
- Not a runtime exception
- Compilation error
- None
All value types in Common Type System derive from ________.
- System.Enum
- System.ValueType
- System.Int32
- None of the above
_________ specifies how a member is accessible outside the class.
- Polymorphism
- Encapsulation
- Inheritance
- Method Overriding
What is MSIL?
- It is a intermediate instruction set which is OS and hardware independent
- It is machine code instruction set which is OS and hardware dependent
- It is an instruction set which is OS independent and a hardware dependent.
- It is a Intermediate Instruction set which is OS dependent and hardware independent.
What all is MS.Net Framework made up of?
- Operationg System
- Base Class Libraries
- Common Language Runtime
- Visual Studio.NET
What is the advantage of using DotNetfuscator tool in .Net?
- It converts the source code to MSIL code
- It prevents the application to be reverse engineered
- It is used for the reverse engineering of the application
- Its used to compile MSIL into PE.
What is the difference between un-safe code & un-managed code.
- Un-managed code runs inside the CLR and Un-safecode runs outside the CLR control
- Un-managed code runs outside the CLR control while the Un-safe code runs inside the CLR control
- Un-managed code runs outside the CLR and Un-safecode runs outside the CLR control
- Un-managed code runs inside the CLR and Un-safecode runs inside the CLR control
What is CLR?
- It manages the code at execution time.
- It does memory management, thread management.
- It enforces strict variable type definitions, security and robustness
- All the above
Different BCL'S are categorized under _________
- Class library
- FCL
- namespace
- Root class
The root namespace for base class is ____________
- System
- BCL
- Base
- None
The output of any .NET program is a ___________
- PE file
- DLL File
- EXE File
- None of the above
The return value of an application is called as __________
- Solution
- Exit code
- Return code
- None
All dynamic memory requirements of an application are fulfilled from the _______ memory
- Global
- Stack
- Heap
- None
Portable Executable consists of
- MSIL and Meta Data
- Source Code and Native Code
- MSIL only
- Course code only
CLR manages code at
- Compile Time
- Run Time
- after the program terminates
- None of the above
What is the Difference between Namespace and Assembly?
- Namespace can span multiple assemblies.
- Namespace is a collection of names and assembly is an output unit.
- Both A and B
- Both provides direct support for a set of built-in data types
What is the common type system (CTS)?
- It defines a common set of types that can be used for different languages.
- It defines a language standard for .NET language and types declared in it
- It is a Intermediate language which is assembled into bytecode.
- It provides direct support for a set of built-in data types
What is ILDASM?
- It provides direct support for a set of built-in data types
- Converts exe or dll in to IL code.
- It defines a language standards for a .NET language and types declared in it
- All the above
CLR is the component of .NET framework enables JIT compilation ?
- True
- False
What is ASP.NET role in .NET framework?
- Framework that provides functionality for Web based UI.
- It is used for Windows and Web based applications
- ASP.NET is a base class library for Web based applications
No comments:
Post a Comment