0

programming languages Online Quiz - 42

Description: programming languages Online Quiz - 42
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

How do you generate random numbers within a given limit with actionscript?

  1. Math.round(Math.random() * (high - low)) + low

  2. Math.round(Math.random())

  3. Math.round(Math.random())+ low

  4. None of the baove


Correct Option: A

Can you write to the file system from flex?

  1. True

  2. False


Correct Option: A

Which language makes the best use of Common Language Runtme(CLR)?

  1. C++

  2. C#

  3. JAVA

  4. VB


Correct Option: B

How is the Nullable variable declaration done?

  1. Nullable b=null;

  2. bool b=null;

  3. bool b=null;

  4. bool b= ;


Correct Option: A

What is the Correct tree structure of an Application in C#?

  1. Namespace>class>manifest>elements

  2. Manifest>class>namespace>elements

  3. Manifest>namespace>class>element

  4. None of these


Correct Option: C

Process of converting a value stored in a variable of one data type to a value of another type is called as?

  1. Data Conversion

  2. Interfacing

  3. Boxing

  4. Casting


Correct Option: D

C# allows two references pointing to the same object

  1. True

  2. False


Correct Option: A

AI Explanation

To answer this question, we need to understand how references work in C#.

In C#, a reference is a variable that holds the memory address of an object. When you assign an object to a reference variable, the reference variable points to the memory location where the object is stored.

In C#, it is possible to have multiple reference variables that point to the same object. This means that two or more references can refer to the same memory address, indicating that they are referring to the same object.

Therefore, the correct answer is:

Option A) True - This option is correct because C# allows two references to point to the same object.

What are Reference Type in .NET?

  1. String

  2. Object

  3. Both

  4. None of these


Correct Option: C

What happens when you change the web.config file at run time?

  1. Application runs without any change

  2. Application automatically close

  3. Application automatically restart

  4. Cannot change the web.config file at run time


Correct Option: C

Which one is not a valid namespace in .net framework?

  1. System.Data.OleDb

  2. System.Web

  3. System.Data.xml

  4. System.Data.SqlClient


Correct Option: C

What is the difference between Server.Transfer & Response.Redirect

  1. Server.Transfer needs a roundtrip, Response.Redirect does not

  2. Server.Transfer can transfer user between 2 applicaions

  3. Response.Redirect needs roundtrip, Server.Transfer does not

  4. No Difference


Correct Option: C

In which event, controls are fully loaded ?

  1. Page_Init

  2. Page_Load

  3. Control Events

  4. None


Correct Option: B

Select the control which does not have any visible interface

  1. DataList

  2. Repeater

  3. DropDownList

  4. DataGrid


Correct Option: B

How to throw an exception if marshaling encounters an unmappable Unicode character that is converted to an ANSI character?

  1. Set ThrowOnUnmappableChar = True

  2. Set ThrowOnmappableChar = True

  3. Set ThrowOnmappableChar = False

  4. Set ThrowOnUnmappableChar = False


Correct Option: A

WCF can be hosted in

  1. Web Service

  2. VisualStudio Setup

  3. both A and B

  4. IIS


Correct Option: D

Namespace for Unit Testing

  1. Microsoft.Visualstudio.TestTools.UnitTestingFramework

  2. Visualstudio.TestTools.UnitTesting

  3. System.UnitTesting

  4. None of the above


Correct Option: A

What tool is used to manage the GAC ?

  1. GacUtil.exe

  2. RegSvr.exe

  3. GacSvr32.exe

  4. GacMgr.exe


Correct Option: A

CTS(Common Type System) defines and standardizes the data types to ensure compatibility across all .NET complaint languages.

  1. True

  2. False


Correct Option: A

An assembly contains the logical structure of assembly component.

  1. True

  2. False


Correct Option: A

Stack is used to maintain objects on a permanent basis.

  1. True

  2. False


Correct Option: A
- Hide questions