C# Programming Fundamentals

Test your knowledge of core C# concepts including objects, delegates, interfaces, inheritance, polymorphism, threading, and string manipulation.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

String mystring; Creates a(n)

  1. Class
  2. Constructor
  3. Object
  4. a and b
Question 2 Multiple Choice (Single Answer)

An Event is

  1. The result of a users action
  2. result of a party
  3. code to force users action
Question 3 Multiple Choice (Single Answer)

A delegate defines

  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
Question 4 Multiple Choice (Single Answer)

Is it possible to pass methods as arguments for other methods without modification.

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

All interfaces must contain IDrivable

  1. True
  2. False
Question 6 Multiple Choice (Single Answer)

What is the proper header for a class that intends to use an interface.

  1. class MyClass IFace
  2. class MyClass ; IFace
  3. class MyClass : IFace
  4. class MyCalss {IFace}
  5. class MyCalss(IFace)
Question 7 Multiple Choice (Single Answer)

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
Question 8 Multiple Choice (Single Answer)

Every class directly or indirectly extends the______class.

  1. System
  2. Object
  3. Drawing
  4. Console
Question 9 Multiple Choice (Single Answer)

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
Question 10 Multiple Choice (Single Answer)

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
Question 11 Multiple Choice (Single Answer)

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

  1. Pulse
  2. PulseAll
  3. Interrupt
  4. Resume
  5. ReStart
Question 12 Multiple Choice (Single Answer)

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
Question 13 Multiple Choice (Single Answer)

Class String and the Char structure found in the:

  1. System.Strings namespace
  2. System.Text namespace
  3. System.Chars namespace
  4. System namespace
Question 14 Multiple Choice (Single Answer)

A String literal is a:

  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
Question 15 Multiple Choice (Single Answer)

To create a string literal exclude escape sequence, use:

  1. !string
  2. @string
  3. #string
  4. $string