Tag: technology

Questions Related to technology

  1. Restricts the length of the String

  2. Replaces a sequence of characters in a string with another set of characters

  3. Modifies the datatype of a column

  4. Renames a column


Correct Option: B
  1. Replaces word by word

  2. Replaces a column with another column

  3. Replaces character by character

  4. Replaces a row with another row


Correct Option: A
  1. IN executes the inner query for each row affected by the outer query and EXISTS executes the inner query only once irrespective of the outer query

  2. IN executes the inner query only once irrespective of the outer query and EXISTS executes the inner query only once irrespective of the outer query

  3. IN executes the inner query only once irrespective of the outer query and EXISTS executes the outer query for each row affected by the outer query

  4. IN executes the inner query for each row affected by the outer query and EXISTS executes the outer query for each row affected by the outer query


Correct Option: C

Which one is similar to Delegates?

  1. Interface in Java

  2. pointer in C or C++

  3. function pointer in C or C++

  4. Interface in .NET


Correct Option: C

The C# keyword int maps to which .NET type

  1. System.Int16

  2. System.Int32

  3. System.Int64

  4. System.Int8


Correct Option: B

AI Explanation

To answer this question, you need to understand the mapping between C# keywords and their corresponding .NET types.

Option A) System.Int16 - This option is incorrect because System.Int16 corresponds to the C# keyword short, not int.

Option B) System.Int32 - This option is correct because System.Int32 corresponds to the C# keyword int. In C#, the keyword int is used to declare a 32-bit signed integer.

Option C) System.Int64 - This option is incorrect because System.Int64 corresponds to the C# keyword long, not int. In C#, the keyword long is used to declare a 64-bit signed integer.

Option D) System.Int8 - This option is incorrect because there is no System.Int8 in .NET. In C#, the keyword byte is used to declare an 8-bit unsigned integer.

The correct answer is B) System.Int32. This option is correct because System.Int32 corresponds to the C# keyword int.

The C# keyword int maps to which .NET type

  1. System.Int16

  2. System.Int32

  3. System.Int64

  4. System.Int8


Correct Option: B

Which of these statements correctly declares a two-dimensional array in C#?

  1. int[,] myArray;

  2. int[][] myArray;

  3. int[2] myArray;

  4. System.Array[2] myArray;


Correct Option: A

In C# Thread.Sleep(time) measures time in:

  1. seconds

  2. milliseconds

  3. nanoseconds

  4. minutes


Correct Option: B

Which access label allows the variables to be accessible in both the current assembly and by any classes derived from the base class?

  1. private

  2. protected

  3. protected internal

  4. It is not possible to do it


Correct Option: C