Hugh Wood
Quiz von , erstellt am more than 1 year ago

Can you do my job as an engine developer for code analysis? Here are some of the more basic parts of the job as questions to see if you can do it.

36
0
0
Hugh Wood
Erstellt von Hugh Wood vor mehr als 9 Jahre
Schließen

C# Code Analysis Engine Developer - Can you do my job?

Frage 1 von 15

1

What is the fastest type of loop in C#

Wähle eine der folgenden:

  • Do While Incrementing

  • Do While Decrementing

  • For Loop Incrementing

  • For Loop Decrementing

  • For Each Loop

  • While Loop Incrementing

  • While Loop Decrementing

Erklärung

Frage 2 von 15

1

What is the correct tree traversal method when ensuring to visit all nodes in an efficient manner, but which is also suitable for the flow of program code?

Wähle eine der folgenden:

  • Depth first

  • Breadth first

Erklärung

Frage 3 von 15

1

What is an unrolled loop?

Wähle eine der folgenden:

  • A loop that has all unnecessary components removed externally

  • An optimised loop at the expense of binary size

Erklärung

Frage 4 von 15

1

What is unsafe code in c#?

Wähle eine der folgenden:

  • Code that is insecure and can allow hackers to penetrate the operation system

  • Code that is unstable and shouldn't be used

  • Code that bypasses memory management of .NET and allows the use of pointers

Erklärung

Frage 5 von 15

1

What is a pointer in C#

Wähle eine der folgenden:

  • A reference to a variable

  • An arrow which denotes the direction of data flow

  • A memory address to a variable

Erklärung

Frage 6 von 15

1

What does the double chevron operator do in C#

Wähle eine der folgenden:

  • Multiply or Divide by bit shifting

  • Add or Subtract by bit shifting

Erklärung

Frage 7 von 15

1

What does the % operator do in C#

Wähle eine der folgenden:

  • Gives the percentage as a fraction of 1 of the two values

  • Give the remainder of the division of two values

Erklärung

Frage 8 von 15

1

Which if these will throw an error if foo isn't of type null-able int "foo as int?" or "(int?)foo"

Wähle eine der folgenden:

  • Foo as int?

  • (int?)foo

Erklärung

Frage 9 von 15

1

What is Cyclomatic Complexity?

Wähle eine der folgenden:

  • How long a method is

  • How many branches there are in a method

  • How many paths there are through a method

Erklärung

Frage 10 von 15

1

What is a Directed Graph?

Wähle eine der folgenden:

  • A graph or chart in which all values are pointing towards a single outcome

  • A graph which you choose the direction of the nodes

  • A graph where all the nodes flow in one direction, usually from an entry point to an exit

Erklärung

Frage 11 von 15

1

What is the builder pattern?

Wähle eine der folgenden:

  • A builder pattern allows you to create dynamic classes

  • A builder pattern allows you to store complex objects

  • A builder pattern separates construction and representation of objects

Erklärung

Frage 12 von 15

1

What is a circular reference?

Wähle eine der folgenden:

  • An infinite loop in code

  • A loop built with pointers for efficiency

  • A series of references where the last object references the first

Erklärung

Frage 13 von 15

1

What is the true form of a using statement in C#

Wähle eine der folgenden:

  • A using statement is a first class citizen and it is it's own true form which is used to scope an object that can be disposed in memory

  • A try finally block that handles disposal of an object

  • A block statement that creates an object in a fixed scope

Erklärung

Frage 14 von 15

1

What is the LINQ expression for a multi threaded query

Wähle eine der folgenden:

  • AsMultiThreaded()

  • AsMultiple()

  • AsParallel()

  • AsTasks(int x)

Erklärung

Frage 15 von 15

1

What is an Abstract Syntax Tree

Wähle eine der folgenden:

  • A Parent Child representation of code

  • Nested code in an editor

  • Intermediate Language for Runtime

Erklärung