0

Basic C# .net Quiz

Description: Basic C# .net Quiz
Number of Questions: 15
Created by:
Tags: .net c-sharp
Attempted 0/15 Correct 0 Score 0
  1. Class

  2. Constructor

  3. Object

  4. a and b


Correct Option: C
  1. The result of a users action

  2. result of a party

  3. code to force users action


Correct Option: A
  1. a Wahsington representative

  2. a class that encapsulates methods

  3. a means of passing arrays into methods

  4. a substitue for an inherited method


Correct Option: B
  1. class MyClass IFace

  2. class MyClass ; IFace

  3. class MyClass : IFace

  4. class MyCalss {IFace}

  5. class MyCalss(IFace)


Correct Option: C

In order for a class to use an interface, it must

  1. inherit the properties of the interface

  2. contain the same methods as the interface

  3. create an interface objects

  4. a and b

  5. all of the above


Correct Option: E

The concept of composition specifies that you can.

  1. Compose good code with C#

  2. Compose C# projects with different objects

  3. Reduce errors by remaining composed during programming

  4. all of the above


Correct Option: B

Polymorphism occurs when the methods of the child class.

  1. Override the parent class methods but maintain the implementation

  2. Maintain the same return type and arguments as the parent class, but implement it differently

  3. Have different return types and arguments than the parent class

  4. Are Virtual


Correct Option: B

The way of returning a thread from s suspended state is:

  1. Pulse

  2. PulseAll

  3. Interrupt

  4. Resume

  5. ReStart


Correct Option: D

In order to lock/unlock an object use the.

  1. Lock and Unlock methods

  2. Enter and Exit methods

  3. Close and Open methods

  4. Close and Allow methods


Correct Option: B

Class String and the Char structure found in the:

  1. System.Strings namespace

  2. System.Text namespace

  3. System.Chars namespace

  4. System namespace


Correct Option: D
  1. only contains one character

  2. contains numbers rather than letters

  3. sequence of characters in double quotation marks

  4. contains exactly its variable name and nothing else


Correct Option: C

To create a string literal exclude escape sequence, use:

  1. !string

  2. @string

  3. #string

  4. $string


Correct Option: B
- Hide questions