Q1: Which of the following keyword is used for including the namespaces in the program in C#?
import
using
export
None of the above
Q2: Which of the following defines unboxing correctly?
When a value type is converted to object type, it is called unboxing
When an object type is converted to a value type, it is called unboxing
Both of the above
None of the above
Q3: Which of the following converts a type to a double type in C#?
ToDecimal
ToDouble
ToInt16
ToInt32
Q4: Which of the following converts a type to an unsigned big type in C#?
ToType
ToUInt16
ToUInt32
ToUInt64
Q5: Which of the following statements is correct about encapsulation?
Encapsulation is defined as the process of enclosing one or more items within a physical or logical package
Encapsulation, in object oriented programming methodology, prevents access to implementation details
Abstraction allows making relevant information visible and encapsulation enables a programmer to implement the desired level of abstraction
All of the above
Q6: Which of the following property of Array class in C# checks whether the Array is readonly?
IsFixedSize
IsReadOnly
Length
None of the above
Q7: Which of the following is the correct about class destructor?
A destructor is a special member function of a class that is executed whenever an object of its class goes out of scope
A destructor has exactly the same name as that of the class with a prefixed tilde (~) and it can neither return a value nor can it take any parameters
Both of the above
None of the above
Q8: The comparison operators can be overloaded.
True
False
Q9: Which of the following preprocessor directive specifies the end of a conditional directive in C#?
elif
endif
if
else
Q10: Which of the following preprocessor directive lets you specify a block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor in C#?
warning
region
line
error
Q11: Which of the followings is not allowed in C# as access modifier?
public
friend
internal
protected
Q12: In the C# code below, what is this[int i]?
class MyClass
{
// ...
public string this[int i]
{
get{ return arr[i];}
set{ arr[i] = value; }
}
}
Property
Event
Indexer
Delegate
Q13: Which of the following C# keywords has nothing to do with multithreading?
async
await
sealed
lock
Q14: Find an invalid expression among the following C# Generics examples.
class A where T : class, new()
class A where T : struct, IComparable
class A where T : class, struct
class A where T : Stream where U : IDisposable
Q15: new keyword in C# is used to creat new object from the type. Which of the followings is not allowed to use new keyword?
Class: var a = new Class1();
Interface : var a = new IComparable();
Struct : var a = new Struct1();
C# object : var a = new object();
Q16: In the example below, button1 is an object of Button class in WinForms. Which one is a wrong expression as a click event handler?
button1.Click += new System.EventHandler(button1_Click);
button1.Click += delegate { MessageBox.Show("Click"); };
button1.Click += delegate(EventArgs e){MessageBox.Show("Click");};
button1.Click += (s, e) => MessageBox.Show("Click");
Q17: In the C# example below, which using statement is wrong?
using System; //1
namespace Demo
{
using System.Text; //2
namespace App
{
using System.IO; //3
class Class1
{
using System.Text; //4
static void Show()
{
}
}
}
}
1
2
3
4
Q18: What is the output of this C# code?
int? i = 8 >> 5;
int? j = i > 0 ? i : null;
var a = j ?? int.MinValue;
Console.WriteLine(a);
1
null
0
-2147483648
Q19: Find a correct statement about C# exception
C# exception occrs at compile time
C# exception occrs at linking time
C# exception occrs at JIT compile time
C# exception occrs at run time
Q20: Find an invalid Main() method prototype, which is entry point in C#?
public static void Main()
public static int Main()
public static void Main(string[] s)
public static long Main(string[] args)
Q21: The following C# code is using C# Generics. Which is an incorrect explanation?
T t = default(T);
If T is int type, variable t has 0
If T is a reference type, variable t has null
If T is string type, variable t has an empty string
If T is bool type, variable t has false
Q22: C# / .NET supports various built-in data structures. Which of the following data structures does not exist as built-in?
Array
D-Array
Binary Tree
Stack
Linked List
Q23: Which of the following interfaces should be implemented to use LINQ to Objects?
IEnumerable
IComparable
ICollection
ICollections
Q24: What is the result of the following C# code?
List<string> names = new List<string>();
names.AddRange(new []{"Park", "Tommy", "James"});
var v = names.OrderBy(n => n.Length)
.SingleOrDefault();
Console.WriteLine(v);
null will be displayed in console
4 will be displayed in console
Will cause compile error
Runtime exception will occur
Q25: Find an invalid example of using C# var
var a = 3.141592;
var a = null;
var a = db.Stores;
var a = db.Stores.Single(p => p.Id == 1);
Q26: In the following C# example, variable a is string. Find one that either is wrong or returns a different result.
a = a ?? "";
a = a == null ? "" : a;
a = (a is null) ? "" : a;
if (a == null) a = "";
Q27: When you want to provide other resources for other cultures or languages, which assembly should you create?
Public Assembly
Private Assembly
Shared Assembly
Satellite Assembly
Q28: Which of the followings does not allow you to use C# static keyword?
(Method) static void Run() {}
(Property) static int Prop {get; set;}
(Field) static int _field;
(Class) static class MyClass {}
(Constructor) static MyClass() {}
(Destructor) static ~MyClass() {}
(Event) static event EventHandler evt;
Q29: In C#, what is similar to C++ function pointer?
Event
Interface
Delegate
Method
Q30: Which of the following C# methods is not valid? (method body elided)
public void Set(dynamic o) {}
public dynamic Get() {}
private var GetData() {}
protected override int[] A() {}
Q31: Which of the following statements is not valid to create new object in C#?
var a = new Int32();
var a = new String();
var a = new IComparable();
var a = new [] {0};
Q32: If you run C# executable file multiple times, multiple processes are created. If you want to have only one application process even if you launch multiple times, what can you use?
Semaphore
Mutex
Critical Section
C# lock
Q33: Which of the following operators cannot use operator overloading?
operator ++
operator &
operator ||
operator true
Q34: In multithread programming, which of the followings is not using Thread Pool?
BackgroundWorker class
Asynchronous delegate
Thread class
Task class
Q35: Class A has [Serializable()] attribute. When is [Serializable] checked?
[Serializable()]
class A { }
At C# compile time
At CLR runtime
At JIT compile time
At Linking
Q36: The followings are some examples of integer arrays. Which expression is not valid in C#?
int[] a = new int[10];
int[][] c = new int[10][];
int[][][] cc = new int[10][2][];
int[,] b = new int[10, 2];
int[, , ,] d = new int[10, 2, 2, 2];
Q37: Which of the following statements is true about C# anonymous type?
Anonymous type can add new property once it is created
Anonymous type can add an event
You can use a delegate for a method in anonymous type
Anonymous type is an immutable type
Q38: What is the result of variable a and b?
var a = 5L == 5.0F;
var b = 24L / 5 == 24 / 5d;
a=true, b=true
a=true, b=false
a=false, b=true
a=false, b=false
Q39: When defining a class using C# Generics, which of the followings is invalid?
class MyClass where T : struct
class MyClass where T : class
class MyClass where T : IComparable
class MyClass where T : MyBase
All of the above are correct
Q40: Which of the following statements is incorrect about C# delegate?
C# delegate supports multicast
C# delegate is considered as a technical basis of C# event
C# delegate can be used when passing a reference to a method
C# delegate can not use +=, -= operators
Q41: Which of the following is correct about C# ?
It can be compiled on a variety of computer platforms.
It is a part of .Net Framework.
It is component oriented.
All of the above
Q42: How many Bytes are stored by Long Datatype in C# .net ?
1
2
4
8
Q43: Correct Declaration of Values to variables a and b ?
int a = b = 42;
int a = 32; int b = 40;
int a = 42; b = 40;
int a = 32, b = 40.6;
Q44: Arrange the following datatype in order of increasing magnitude sbyte, short, long, int.
short < int < sbyte < long
short < sbyte < int < long
sbyte < short < int < long
long < short < int < sbyte
Q45: Which datatype should be more preferred for storing a simple number like 35 to improve execution speed of a program?
long
int
short
sbyte
Q46: Correct way to assign values to variable c when int a=12, float b=3.5, int c;
c = int(a + b);
c = a + Convert.ToInt32(b);
c = a + int(float(b));
c = a + b;
Q47: Default Type of number without decimal is ?
Long Int
Unsigned Long
Int
Unsigned Int
Q48: Select a convenient declaration and initialization of a floating point number:
float somevariable = (Decimal)12.502D
float somevariable = (float) 12.502D
float somevariable = (Double) 12.502D
float somevariable = 12.502D
Q49: Number of digits upto which precision value of float datatype is valid?
Upto 7 digit
Upto 9 digit
Upto 8 digit
Upto 6 digit
Q50: Valid Size of float datatype is?
8 Bytes
4 Bytes
6 Bytes
10 Bytes
Q51: Correct way to define a value 6.28 in a variable a where value cannot be modified ?
const float pi = 6.28F
pi = 6.28F
#define a 6.28F
None of the above
Q52: A float occupies 4 bytes. If the hexadecimal equivalent of these 4 bytes are A, B, C and D, then when this float is stored in memory in which of the following order do these bytes gets stored?
DCBA
0 * ABCD
ABCD
Depends on big endian or little endian architecture
Q53: The Default value of Boolean DataType is?
1
False
True
0
Q54: Which of the following format specifiers is used to print hexadecimal values and return value of output as Octal equivalent in C#?
%x for small case letters and %X for capital letters
%Ox for smallcase letters and %OX for capital letters
%hx for small case letters and %HX for capital letters
No ease of doing it. C# do not provides specifier like %x or %O to be used with ReadLine() OR WriteLine().We have to write our own function
Q55: What is the Size of Char datatype?
20 bits
16 bits
12 bits
8 bits
Q56: Which is the String method used to compare two strings with each other?
ConCat()
Copy()
Compare()
Compare To()
Q57: Verbatim string literal is better used for?
To embed a quotation mark by using double quotation marks inside a verbatim string
Used to initialize multi line strings
Convenience and better readability of strings when string text consist of backlash characters
All of the above
Q58: Why strings are of reference type in C#.NET?
To reduce size of string
To overcome problem of stackoverflow
To create string on stack
None of the above
Q59: Storage location used by computer memory to store data for usage by an application is?
Variable
Constants
Pointers
None of the above
Q60: Which of the following keyword is used for including the namespaces in the program in C#?
using
exports
imports
None of the above
Q61: Which of the following is correct about dynamic Type in C# ?
Type checking for these types of variables takes place at run-time.
You can store any type of value in the dynamic data type variable.
All of the above
None of the above
Q62: Which of the following converts a type to a 64-bit integer in C# ?
ToInt32
ToSingle
ToSbyte
ToInt64
Q63: Which of the following operator casts without raising an exception if the cast fails in C#?
*
as
is
?:
Q64: Which of the following method helps in returning more than one value?
Reference parameters
Value parameters
Output parameters
None of the above
Q65: Which of the following property of Array class in C# checks whether the Array has a fixed size?
Length
IsStatic
IsFixedSize
None of the above
Q66: Which of the following is the default access specifier of a class member variable?
Internal
Protected
Public
Private
Q67: Which of the following is correct about variable naming conventions in C#?
The first character in an identifier cannot be a digit.
A name must begin with a letter that could be followed by a sequence of letters, digits (0 - 9) or underscore.
All of the above
None of the above
Q68: Which of the following defines boxing correctly?
When an object type is converted to a value type, it is called boxing.
When a value type is converted to object type, it is called boxing.
All of the above
None of the above
Q69: Which of the following operator returns the type of a class in C#?
*
&
typeof
sizeof
Q70: Which of the following statements is correct about encapsulation?
Encapsulation, in object oriented programming methodology, prevents access to implementation details.
Abstraction allows making relevant information visible and encapsulation enables a programmer to implement the desired level of abstraction.
Encapsulation is defined as the process of enclosing one or more items within a physical or logical package.
All of the above
Q71: Which of the following is true about C# structures?
Structures can have defined constructors, but not destructors.
You cannot define a default constructor for a structure. The default constructor is automatically defined and cannot be changed.
Structures can have methods, fields, indexers, properties, operator methods, and events.
All of the above
Q72: Which of the following is the correct about class constructor?
A constructor has exactly the same name as that of class and it does not have any return type.
A class constructor is a special member function of a class that is executed whenever we create new objects of that class.
All of the above
None of the above
Q73: Which of the following is the correct about interfaces in C#?
Interface methods are public by default.
Interfaces are declared using the interface keyword.
All of the above
None of the above
Q74: Which of the following preprocessor directive allows you to undefine a symbol in C#?
endregion
region
undef
define
Q75: Which of the following preprocessor directive allows generating a level one warning from a specific location in your code in C#?
error
line
region
warning
Q76: The capability of an object in Csharp to take number of different forms and hence display behaviour as according is known as
Abstraction
Encapsulation
Polymorphism
None of the above
Q77: Which of the following keyword is used to change data and behavior of a base class by replacing a member of the base class with a new derived member?
base
Overloads
Overrides
new
Q78: Correct way to overload +operator?
public static sample operator + (sample a, sample b)
public sample operator + ( sample a, sample b)
public abstract operator + (sample a,sample b)
All of the above
Q79: Which of the following statements is correct?
If a derived class does not have its own version of virtual method then one in base class is used.
Each derived class does not have its own version of a virtual method.
By default methods are virtual
All of the above
Q80: Selecting appropriate method out of number of overloaded methods by matching arguments in terms of number ,type and order and binding that selected method to object at compile time is called
Static binding
Static Linking
Compile time polymorphism
All of the above
Q81: Which among the following is NOT an exception?
Incorrect Arithmetic Expression
Stack Overflow
Arithmetic Overflow or underflow
None of the above
Q82: Which among the following is NOT considered as .NET Exception class?
StackUnderflow Exception
File Found Exception
All of the above
None of the above
Q83: Which of the following is the object oriented way to handle run time errors?
Exceptions
OnError
HERRESULT
Error codes
Q84: Select the statements which describe the correct usage of exception handling over conventional error handling approaches?
Exception handling allows separation of program logic from error handling logic making software more reliable and maintainable
As errors can be ignored but exceptions cannot be ignored
try - catch - finally structure allows guaranteed cleanup in event of errors under all circumstances
All of the above
Q85: Select the correct statement about an Exception
It occurs at run time
It occurs during loading of program
It occurs during Just-In-Time compilation
All of the above
Q86: Which of these keywords is not a part of exception handling?
catch
thrown
finally
try
Q87: Which of these keywords must be used to monitor exceptions ?
catch
throw
finally
try
Q88: Which of these keywords is used to manually throw an exception?
catch
throw
finally
try
Q89: Which of the following is the correct statement about exception handling in C#.NET?
The statement in final clause will get executed no matter whether an exception occurs or not
finally clause is used to perform cleanup operations of closing network and database connections
All of the above
None of the above
Q90: When no exception is thrown at runtime then who will catch it?
Compiler
Loader
Operating System
CLR
Q91: Choose the correct statement which makes exception handling work in C#.NET?
If no match is found at the highest level of stack call, then unhandledException is generated and hence termination of program occurs
.Net runtime makes search for the exception handler where exception occurs
If no exception is matched, exception handler goes up the stack and hence finds the match there
All of the above
Q92: Which of these clauses will be executed even if no exceptions are found?
finally
throw
catch
throws
Q93: A single try block must be followed by which of these?
catch
finally
All of the above
None of the above
Q94: Which of these exceptions handles the divide by zero error?
IllegarException
IllegalAccessException
MathException
ArithmeticException
Q95: Which of these exceptions will occur if we try to access the index of an array beyond its length?
ArrayException
ArrayArguementException
ArithmeticException
IndexOutOfRangeException
Q96: Which of the following keywords is used by the calling function to guard against the exception that is thrown by called function?
catch
throws
throw
try
Q97: Which of these classes is related to all the exceptions that are explicitly thrown?
Throwable
Throw
Exception
Error
Q98: What is the use of try & catch?
It prevents automatic terminating of the program in cases when an exception occurs
It is used to manually handle the exception
It helps to fix the errors
All of the above
Q99: Choose the statement which is incorrect?:
try can be followed by both catch and finally block
try block does not need to be followed by catch block
try block can be followed by finally block instead of catch block
try need not to be followed by anything
Q100: Which of the keywords are used for the block to be examined for exceptions?
check
throw
catch
try
Q101: Select the type of multitasking methods that exist
thread based
process based
All of the above
None of the above
Q102: Choose the correct statement about process-based multitasking
a program that acts as a small unit of code that can be dispatched by the scheduler
a feature that allows our computer to run two or more programs concurrently
All of the above
None of the above
Q103: Choose the statements which indicate the differences between the thread based multitasking and process based multitasking
Thread-based multitasking deals with the concurrent execution of pieces of the same program
Process-based multitasking handles the concurrent execution of programs
All of the above
None of the above
Q104: What is the advantage of the multithreading program?
Enables to utilize the idle time present in most programs
Enables to utilize the idle and executing time present in most programs
All of the above
None of the above
Q105: Select the two type of threads mentioned in the concept of multithreading
background
foreground
All of the above
None of the above
Q106: Number of threads that exists for each of the processes that occurs in the program
only 1
atmost 1
All of the above
Q107: Choose the namespace which supports multithreading programming
System.Threading
System.net
System.Linq
All of the above
Q108: Which of these classes is used to make a thread?
Runable
Thread
System
String
Q109: On call of which type of method the new created thread will not start executing?
New()
Begin()
Start()
None of the above
Q110: Which of these method of Thread class is used to Suspend a thread for a period of time?
stop()
suspend()
terminate()
sleep()
Q111: Which of these keywords are used to implement synchronization?
synchronized
synchronize
syn
synch
Q112: Which keyword is used for using the synchronization features defined by the Monitor class?
locked
Monitor
synchronized
lock
Q113: What is synchronization in reference to a thread?
Its a method that allow to many threads to access any information the require
Its a process by which a method is able to access many different threads simultaneously
Its a process by which many thread are able to access same shared resource simultaneously
Its a process of handling situations when two or more threads need access to a shared resource
Q114: Which method is called when a thread is blocked from running temporarily?
Wait()
Pulse()
PulseAll()
None of the above
Q115: What kind of exception is being thrown if Wait(), Pulse() or PulseAll() is called from code that is not within synchronized code?
SynchronizationLockException
System I/O Exception
DivideByZero Exception
All of the above
Q116: What is mutex?
helps in sharing of resource which can be used by one thread at only one a time
a mutually exclusive synchronization object
All of the above
None of the above
Q117: What is Semaphore?
Make use of a counter to control access to a shared resource
Grant more than one thread access to a shared resource at the same time.
Useful when a collection of resources is being synchronized
All of the above
Q118: Which method is used to abort thread prior to its normal execution?
Abort()
suspend()
terminate()
sleep()
Q119: Which of these statements is incorrect?
Two thread in Csharp can have same priority
A thread can exist only in two states, running and blocked
All of the above
None of the above
Q120: What is multithreaded programming?
It is a process in which a single process can access information from many sources
It is a process in which many different process are able to access same information
It is a process in which two different processes run simultaneously
It is a process in which two or more parts of same process run simultaneously
Q121: Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product name?
var sortedProds = _db.Products.Orderby(c => c.Category) + ThenBy(n => n.Name)
var sortedProds = _db.Products.Orderby(c => c.Category)
var sortedProds = _db.Products.Orderby(c => c.Category) . ThenBy(n => n.Name)
All of the above
Q122: Choose the correct statements about the LINQ
linq makes use of foreach loop to execute the query
The main concept behind the linq is query
All of the above
None of the above
Q123: Choose the namespace in which the interface IEnumerable is declared
System.Collections.Generic
System.Collections
All of the above
None of the above
Q124: Can we use linq to query against a DataTable?
No
Yes
Either No or Yes
None of the above
Q125: Select the namespace which should be included while making use of LINQ operations
System.Linq
System.Text
System.Collections.Generic
None of the above
Q126: Which of the following are the correct statements about delegates?
Delegate is a user defined type
Delegates can be used to implement callback notification
Delegates permit execution of a method on a secondary thread in an asynchronous manner
All of the above
Q127: Incorrect statements about delegates are
Delegates are type safe
Delegates are reference types
Delegates are object oriented
Only one method can be called using a delegate
Q128: Select the modifiers which control the accessibility of the delegate
public
new
protected
All of the above
Q129: Choose the namespace in which Expression trees are encapsulated
System.Collections.Generic
System.Text
System.Linq
System.Linq.Expressions
Q130: Choose the correct statement among the followings
Indexer is a form of property and works in the same way as a property
Indexers are location indicators
Indexers are used to access class objects
All of the above
Q131: Choose the keyword which declares the indexer?
this
super
extract
base
Q132: Choose the operator/operators which is/are used to access the [] operator in indexers?
set
get
All of the above
None of the above
Q133: Choose the correct statement among the following
It is an error for indexer to declare a local variable with the same name as indexer parameters
A property can be a static member whereas an indexer is always an instance member
A get accessor of a property corresponds to a method with no parameters whereas get accessor of an indexer corresponds to a method with the same formal parameters lists as the indexer
All of the above
Q134: Which among the following are the advantages of using indexers?
Indexers are also convenient as they can also make use of different types of indexers like int, string etc
To use collection of items at a large scale we make use of indexers as they utilize objects of class that represent the collection as an array
All of the above
None of the above
Q135: Choose the correct statement about the properties used in C#.NET
Properties can be used to store and retrieve values to and from the data members of a class
Properties are like actual methods which work like data members
All of the above
None of the above
Q136: Choose the statements which makes use of essential properties rather than making data member public in C#.NET
Properties consist of set accessor inside which we can validate the value before assigning it to the data variable
Properties have their own access levels like private, public, protected etc. which allows it to have better control about managing read and write properties
Properties give us control about what values may be assigned to a member variables of a class they represent
All of the above
Q137: Where the properties can be declared?
Interface
Class
Struct
All of the above
Q138: Select the modifiers which can be used with the properties?
public
private
protected
All of the above
Q139: Choose the correct statements about write-only properties in C#.NET
Useful for usage in classes which store sensitive information like password of a user
Properties which can only be set
Properties once set and hence values cannot be read back in nature
All of the above
Q140: Select the namespace on which the stream classes are defined?
System.Output
System.IO
System.Input
All of the above
Q141: Choose the class on which all stream classes are defined?
System.Output.stream
System.IO.stream
Sytem.Input.stream
All of the above
Q142: Choose the stream class method which is used to close the connection
void close()
close()
static close()
None of the above
Q143: The method used to write a single byte to an output stream
write()
void WriteByte(byte value)
int Write(byte[] buffer, int offset, int count)
None of the above
Q144: Select the method which writes the contents of the stream to the physical device.
flush()
fflush()
void fflush()
void Flush()
Q145: Select the method which returns the number of bytes from the array buffer
write()
void WriteByte(byte value)
int Write(byte[] buffer, int offset, int count)
None of the above
Q146: Name the method which returns integer as -1 when the end of file is encountered.
void readbyte()
int read()
int ReadByte()
None of the above
Q147: Select the statements which define the stream.
C# programs perform I/O through streams
A stream is an abstraction that produces or consumes information
A stream is linked to a physical device by the I/0 system
All of the above
Q148: Select the action of the method long seek()
Sets the current position in the stream to the specified offset from specified origin and hence returns the new position
Attempts to readup to count bytes into buffer starting at buffer[offset]
Writes a single byte to an output stream
None of the above
Q149: Which among the following attempts to read up to count bytes into buffer starting at buffer[offset], returning the number of bytes successfully read?
Void WriteByte(byte value)
int ReadByte()
int Read(byte[] buffer ,int offset ,int count)
None of the above
Q150: Which of these classes is used to read and write bytes in a file?
InputStreamReader
FileReader
FileWriter
FileInputStream
Q151: Which of these data types is returned by every method of OutputStream?
byte
int
float
None of the above
Q152: Which of these classes is used for input and output operation when working with bytes?
Writer
InputStream
Reader
All of the above
Q153: Which among the following is used for storage of memory aspects?
MemoryStream
BufferedStream
FileStream
None of the above
Q154: Which among the following is used for storage of unmanaged memory aspects?
UnmanagedMemoryStream
MemoryStream
FileStream
BufferedStream
Q155: Which property among the following represents the current position of the stream?
int Length
long Length
long Position
All of the above
Q156: Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.
FileMode.Truncate
FileMode.OpenOrCreate
FileMode.Create
FileMode.CreateNew
Q157: Choose the filemode method which is used to create a new output file with the condition that the file with same name if exists will destroy the old file
FileMode.Truncate
FileMode.OpenOrCreate
FileMode.CreateNew
FileMode.Create
Q158: Which of these is a method used to clear all the data present in output buffers?
close()
fflush()
clear()
flush()
Q159: Which of these is a method used for reading bytes from the file?
ReadByte()
Read()
All of the above
None of the above
Q160: From which of these classes, the character based output stream class Stream Writer is derived?
Character Stream
TextWriter
TextReader
None of the above
Q161: The advantages of using character stream based file handling are
If desired, they store unicode text
they operate directly on unicode characters
All of the above
None of the above
Q162: Which among the following classes are used to perform the character based file operations?
StreamWriter
StreamReader
All of the above
None of the above
Q163: Which method of the character stream class returns the numbers of characters successfully read starting at index?
int Read(char[] buffer, int index, int count)
int ReadBlock(char[ ] buffer, int index, int count)
int Read()
None of the above
Q164. Which one of the following standard is used to connect client browsers with web servers?
TCP/IP
HTTP
HTML
ASP.NET
Q165. Which one of the following is used to validate an e-mail address pattern?
Extended expressions
Irregular expressions
Regular expressions
None
Q166. How can Garbage Collection be forced in .NET?
By using System.GC.Finalize()
By using System.GC.Collect()
By using System.GC.KeepAlive()
By using System.GC.Dispose()
Q167. Which one of the following control does not have any visible interface?
DropdownList
Datalist
Datagrid
Repeater
Q168. Name the ASP.NET object that is used to get information about the web servers?
The Application object
The Server object
The Response object
The Request object
Q169. How do you get information from a form that is submitted using the "post" method?
Request.QueryString
Request.Form
Response.write
Response.writeln
Q170. Which of the following object is used along with an application object in order to ensure that only one process accesses a variable at a time?
Synchronize
Synchronize()
ThreadLock
Lock()
Q171. Which of these classes maps to the tag <input type="checkbox"/>
HtmlCheckBox
HtmlInputCheckBox
HtmlControl
None
Q172. Which of the following is a requirement when merging modified data into a DataSet?
A primary key must be defined on the DataTable objects
The DataSet schemas must match in order to merge
The destination DataSet must be empty prior to merging
A DataSet must be merged into the same DataSet that created it
Q173. Which of the following represents the best use of the Table, TableRow, and Table-Cell controls?
To create and populate a Table in Design view
To create a customized control that needs to display data in a tabular fashion
To create and populate a Table with images
To display a tabular result set
Q174. If I'm developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
Maintain the login state security through a database
Maintain the login state security through a Session
Maintain the login state security through a View State
All of the Above
Q175. Where can we assign value to static read only member variable of a static class?
Default constructor
Parameterized constructor
Global.asax
On click of button
Bản quyền thuộc về V1Study.com. Cấm sao chép dưới mọi hình thức!