Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C# QUESTIONS : PART 1

Two methods with the same name but with different parameters.

Overloading 

Loading

Multiplexing

Duplexing

SHOW ANSWER

Common language specification(CLS)

is an execution engine for all .net application

is similar to JVM as in Java

defines standard rules for defining .Net compliant languages

is a compiler

SHOW ANSWER

Which of the following statment is not correct?

CLR is an execution engine of .NET

Assembly is a logical unit of deployment

CLR executes manage code

.Net provides cross language interoperability using code access security  

SHOW ANSWER

JIT compiler is a part of the runtime execution environment

Yes

No

SHOW ANSWER

Which of the following is not a .NET compatible language?

C#

J#

VB.NET

Java

SHOW ANSWER

What is CTS in .NET?

Defines rules concerning data types   

Defines a set of rules for all compilers to generate manage code for .NET

Describes a set of features that different languages have in common

None of the above

SHOW ANSWER

How many Bytes are stored by ‘Long’ Data type in C# .net?

8

4

2

1

SHOW ANSWER

Correct Declaration of Values to variables ‘a’ and ‘b’?

 

int a = 32, b = 40.6;

 int a = 42; b = 40;

 int a = 32; int b = 40;

int a = b = 42

SHOW ANSWER

Which Conversion function of ‘Convert.TOInt32()’ and ‘Int32.Parse()’ is efficient?

1) Int32.Parse() is only used for strings and throws argument exception for null string

2) Convert.Int32() used for data types and returns directly ‘0’ for null string

Both 1,2

1

None of the mentioned

SHOW ANSWER

Default Type of number without decimal is?

Long Int

Unsigned Long

Int 

Unsigned Int

SHOW ANSWER

The Default value of Boolean Data Type is ?

0

True

False

 1

SHOW ANSWER

What is the Size of ‘Char’ datatype?

8 bit

 12 bit

16 bit 

20 bit

SHOW ANSWER

Select output for the following set of code.

 

 static void Main(string[] args)

 {

     int a = 5;

     int b = 10;

     int c;

     Console.WriteLine(c = ++ a + b ++);

     Console.WriteLine(b);

     Console.ReadLine();

 }

11, 10

16, 10

16, 11 

15, 11

SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in