1. Question: Which object oriented term is related to protecting data from access by unauthorized functions?

    A
    Inheritance

    B
    Data hiding

    C
    Polymorphism

    D
    Operator overloading

    E
    Abstraction

    Note: Not available
    1. Report
  2. Question: One of the ternary operators provided in C# is:

    A
    *

    B
    ::

    C
    &

    D
    ?:

    E
    &lt&lt

    Note: Not available
    1. Report
  3. Question: What type of code is written to avail the services provided by Common Language Runtime?

    A
    MSIL

    B
    Unmanaged code

    C
    Managed Code

    D
    C#/VB/JS

    Note: Not available
    1. Report
  4. Question: Asynchronous execution is supported in ADO.NET 2.0 for?

    A
    ExecuteReader

    B
    ExecuteScalar

    C
    ExecuteNonQuery

    D
    All of these

    Note: Not available
    1. Report
  5. Question: The .NET Framework consists of:

    A
    The Common Language Runtime

    B
    A set of class libraries

    C
    The Common Language Runtime and a set of class libraries

    D
    None of these

    Note: Not available
    1. Report
  6. Question: An enum is defined in a program as follows: [Flags] public enum Permissions { None = 0, Read = 1, Write = 2, Delete = 4 } What will be the output of the following Main program (which has access to the enum defined above) in this C# console application (Assume required namespaces are included) : static void Main(string[] args) { var permissions = Permissions.Read | Permissions.Write; if ((permissions & Permissions.Write) == Permissions.Write) { Console.WriteLine("Write"); } if ((permissions & Permissions.Delete) == Permissions.Delete) { Console.WriteLine("Delete"); } if ((permissions & Permissions.Read) == Permissions.Read) { Console.WriteLine("Read"); } Console.ReadLine(); }

    A
    Write Delete Read

    B
    Write Delete

    C
    Delete

    D
    Write Read

    Note: Not available
    1. Report
  7. Question: Which of the following keywords prevents a class from being overridden further?

    A
    abstract

    B
    sealed

    C
    final

    D
    oot

    E
    internal

    Note: Not available
    1. Report
  8. Question: Suppose a class is declared as a protected internal: protected internal class A { } Which statement is correct with regards to its accessibility?

    A
    This class can be accessed by code in the same assembly, or by any derived class in another assembly.

    B
    This class can only be accessed by code which is in the same assembly.

    C
    This class can only be accessed by code which is in the derived class (i.e. classes derived from Class A) and which are in the same assembly.

    D
    This class can be accessed by any code whether in the same assembly or not.

    Note: Not available
    1. Report
  9. Question: Which of the following is the correct way to randomize a generic list of 75 numbers using C#?

    A
    Random random = new Random(); List<object> products= GetProducts(); products.OrderBy(product => random.Next(products.Count));

    B
    Random random = new Random(); List<object> products= GetProducts(); products.Randomize(product => random.Next(products.Count));

    C
    Random random = new Random(); List<object> products= GetProducts(); products.Randomize(products.Count);

    D
    Random random = new Random(); List<object> products= GetProducts(); products.Reverse(product => random.Next(products.Count));

    Note: Not available
    1. Report
  10. Question: What will be the value of the result variable after these two statements? int num1 = 10, num2 = 9; int result = num1 & num2;

    A
    1

    B
    8

    C
    9

    D
    10

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd