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?
Respuesta
Depth first
Breadth first
Pregunta 3
Pregunta
What is an unrolled loop?
Respuesta
A loop that has all unnecessary components removed externally
An optimised loop at the expense of binary size
Pregunta 4
Pregunta
What is unsafe code in c#?
Respuesta
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
Pregunta 5
Pregunta
What is a pointer in C#
Respuesta
A reference to a variable
An arrow which denotes the direction of data flow
A memory address to a variable
Pregunta 6
Pregunta
What does the double chevron operator do in C#
Respuesta
Multiply or Divide by bit shifting
Add or Subtract by bit shifting
Pregunta 7
Pregunta
What does the % operator do in C#
Respuesta
Gives the percentage as a fraction of 1 of the two values
Give the remainder of the division of two values
Pregunta 8
Pregunta
Which if these will throw an error if foo isn't of type null-able int "foo as int?" or "(int?)foo"
Respuesta
Foo as int?
(int?)foo
Pregunta 9
Pregunta
What is Cyclomatic Complexity?
Respuesta
How long a method is
How many branches there are in a method
How many paths there are through a method
Pregunta 10
Pregunta
What is a Directed Graph?
Respuesta
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
Pregunta 11
Pregunta
What is the builder pattern?
Respuesta
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
Pregunta 12
Pregunta
What is a circular reference?
Respuesta
An infinite loop in code
A loop built with pointers for efficiency
A series of references where the last object references the first
Pregunta 13
Pregunta
What is the true form of a using statement in C#
Respuesta
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
Pregunta 14
Pregunta
What is the LINQ expression for a multi threaded query