C#

Description: Notes and test papers for C# Preparation, Covers all concepts of Introduction to C#, Encyclopedia C#, Microsoft Visual C#, .NET, Microsoft Visual Studio
Number of Questions: 25
Created by:
Tags: C# C Sharp Programming in C# Introduction to C# Encyclopedia C# Microsoft Visual C# .NET Microsoft Visual Studio Programming
Attempted 0/25 Correct 0 Score 0

The JIT compiled code can be converted to pre-compiled format by a process called

  1. code marshalling

  2. pooling

  3. remoting

  4. code pitching


Correct Option: A

How many applications can 'global.asa' files have?

  1. 3

  2. 1

  3. 2

  4. No restrictions


Correct Option: B

Do Form Post and Post Back differ from each other?

  1. Yes

  2. No

  3. Sometimes

  4. Can't be determined


Correct Option: A

What is the maximum limit for the size of a query string?

  1. 511

  2. 255

  3. 765

  4. 128


Correct Option: B

What attribute must mark the methods exposed by a Web Service?

  1. Web Service Method ()

  2. Web Method ()

  3. Web Services ()

  4. Services Method ()


Correct Option: B

A structure in C# can be derived from one or more

  1. classes

  2. interfaces

  3. both (1) and (2)

  4. none of these


Correct Option: B

How do you examine the content of the variables and objects in scope in each line of a code without actually seeing their content within the functions where they exist?

  1. Immediate Window

  2. Local Window

  3. Auto Window

  4. Quick Watch Window


Correct Option: B

Which namespace provides the event log support?

  1. using System.log

  2. using System.Diagnostics

  3. using System.Event

  4. None of these


Correct Option: B

Which command displays characters to an HTML page?

  1. Response.write

  2. Response.end

  3. response.end

  4. None of these


Correct Option: A

Which of the following is true?

  1. An object is the instantiation of a class.

  2. A class is the implementation of an object.

  3. An object is the implementation of a class.

  4. A class is the instantiation of an object.


Correct Option: A
Explanation:

 In software engineering, the singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.So option 1 is true..

Which one of the following is the default scripting language on a client's side?

  1. Java Script

  2. ASP Script

  3. VB Script

  4. None of these


Correct Option: A

Does an XML play any role in the ADO.NET architecture?

  1. No

  2. Yes

  3. Sometimes

  4. Can't be determined


Correct Option: B

Which language is assumed by the Internet Information Server (IIS) to be the default language for Active Server Pages?

  1. ECMA Script

  2. J script

  3. VB Script

  4. Java Script


Correct Option: B

Which of the following enable(s) you to change multiple values in a method?

  1. Reference Parameters

  2. Output Parameters

  3. Aliases

  4. Both (1) and (2)


Correct Option: A

Can you store multiple data types in Systems.Array?

  1. Yes

  2. No

  3. May be

  4. Sometimes


Correct Option: B

Are private class level variables inherited?

  1. Yes

  2. No

  3. Can't tell

  4. May be


Correct Option: A

How many dimensions can an array take?

  1. Up to 50

  2. Up to 60

  3. Up to 100

  4. Up to 90


Correct Option: B

Which one of the following is not a C# reserved keyword?

  1. Is

  2. Of

  3. As

  4. In


Correct Option: B

Which one of the following must be initialised before it/they can be used in the method call?

  1. Reference Parameters

  2. Output Parameters

  3. Aliases

  4. Both (1) and (2)


Correct Option: A

A finally block can have

  1. break

  2. continue

  3. return

  4. none of these


Correct Option: D

In C#, a namespace can be imported by using

  1. namespace directive

  2. import keyword

  3. import construct

  4. the keyword ''Using�


Correct Option: D

Where will you put OPTION EXPLICIT in your ASP application code?

  1. First line

  2. Last Line

  3. Anywhere in the code

  4. None of these


Correct Option: A

The default data type in a VBScript is

  1. variant

  2. voriant

  3. var

  4. varient


Correct Option: A

'Client connected' is the property of a

  1. session

  2. response

  3. request

  4. server


Correct Option: B

Which of the following is not a property of dictionary object?

  1. Item()

  2. Key()

  3. CompareMode()

  4. Exists()


Correct Option: D
- Hide questions