Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

To implement delegates, the necessary condition is?

(a) class declaration

(b) inheritance

(c) runtime polymorphism

(d) exceptions

The question was asked by my school teacher while I was bunking the class.

My question is based upon Fundamental of Delegates topic in division Delegates, Generics and LINQ of C#

  • C#
  • August 31, 2023 at 5:06 am

The ‘ref’ keyword can be used with which among the following?

(a) Static function/subroutine

(b) Static data

(c) Instance function/subroutine

(d) All of the mentioned

I have been asked this question in exam.

The above asked question is from Fundamental of Delegates topic in portion Delegates, Generics and LINQ of C#

  • C#
  • September 13, 2023 at 5:06 am

Type of Conversion in which compiler is unable to convert the data type implicitly is?

(a) ushort to long

(b) int to uint

(c) ushort to long

(d) byte to decimal

This question was posed to me in my homework.

I would like to ask this question from Type Conversion in Expressions in chapter Data Types, Variables and Operators of C#

  • C#
  • October 26, 2023 at 5:06 am

The subset of ‘int’ data type is __________

(a) long, ulong, ushort

(b) long, ulong, uint

(c) long, float, double

(d) long, float, ushort

This question was addressed to me during an interview for a job.

I would like to ask this question from Type Conversion in Expressions in division Data Types, Variables and Operators of C#

  • C#
  • November 3, 2023 at 5:06 am

‘Implicit Conversion’ follows the order of conversion as per compatibility of data type as:

(a) float < char < int

(b) char < int < float

(c) int < char < float

(d) float < int < char

I had been asked this question in examination.

The above asked question is from Type Conversion in Expressions topic in portion Data Types, Variables and Operators of C#

  • C#
  • October 2, 2023 at 5:06 am

Types of ‘Data Conversion’ in C#?

(a) Implicit Conversion

(b) Explicit Conversion

(c) Implicit Conversion and Explicit Conversion

(d) None of the mentioned

The question was posed to me in unit test.

Query is from Type Conversion in Expressions in chapter Data Types, Variables and Operators of C#

  • C#
  • November 6, 2023 at 5:06 am

What is the need for ‘Conversion of data type’ in C#?

(a) To store a value of one data type into a variable of another data type

(b) To get desired data

(c) To prevent situations of runtime error during change or conversion of data type

(d) None of the mentioned

The question was asked during a job interview.

This intriguing question originated from Type Conversion in Expressions topic in division Data Types, Variables and Operators of C#

  • C#
  • September 16, 2023 at 5:06 am

Choose effective differences between ‘Boxing’ and ‘Unboxing’.

(a) ‘Boxing’ is the process of converting a value type to the reference type and ‘Unboxing’ is the process of converting reference to value type

(b) ‘Boxing’ is the process of converting a reference type to value typeand ‘Unboxing’ is the process of converting value type to reference type

(c) In ‘Boxing’ we need explicit conversion and in ‘Unboxing’ we need implicit conversion

(d) Both ‘Boxing’ and ‘Unboxing’ we need implicit conversion

The question was posed to me by my college director while I was bunking the class.

The doubt is from Scope and Lifetime of Variables topic in chapter Data Types, Variables and Operators of C#

  • C#
  • November 7, 2023 at 5:06 am

Syntax for declaration and initialization of data variable is?

(a) = ;

(b) ;

(c) ;

(d) = ;

The question was asked in quiz.

This interesting question is from Scope and Lifetime of Variables in chapter Data Types, Variables and Operators of C#

  • C#
  • October 23, 2023 at 5:06 am

Which of the following format specifiers is used to print hexadecimal values and return value of output as Octal equivalent in C#?

(a) %hx for small case letters and %HX for capital letters

(b) %x for small case letters and %X for capital letters

(c) No ease of doing it. C# don’t provides specifier like %x or %O to be used with ReadLine() OR WriteLine(). We have to write our own function

(d) %Ox for small case letters and %OX for capital letters

I have been asked this question during a job interview.

Query is from Floating and Decimal Data Types topic in chapter Data Types, Variables and Operators of C#

  • C#
  • September 10, 2023 at 5:06 am

Viewing 2 topics - 256 through 257 (of 257 total)

1 2 3 16 17 18
  • You must be logged in to create new topics.