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

Descrição

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.
Hugh Wood
Quiz por Hugh Wood, atualizado more than 1 year ago
Hugh Wood
Criado por Hugh Wood mais de 9 anos atrás
35
0

Resumo de Recurso

Questão 1

Questão
What is the fastest type of loop in C#
Responda
  • Do While Incrementing
  • Do While Decrementing
  • For Loop Incrementing
  • For Loop Decrementing
  • For Each Loop
  • While Loop Incrementing
  • While Loop Decrementing

Questão 2

Questão
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?
Responda
  • Depth first
  • Breadth first

Questão 3

Questão
What is an unrolled loop?
Responda
  • A loop that has all unnecessary components removed externally
  • An optimised loop at the expense of binary size

Questão 4

Questão
What is unsafe code in c#?
Responda
  • 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

Questão 5

Questão
What is a pointer in C#
Responda
  • A reference to a variable
  • An arrow which denotes the direction of data flow
  • A memory address to a variable

Questão 6

Questão
What does the double chevron operator do in C#
Responda
  • Multiply or Divide by bit shifting
  • Add or Subtract by bit shifting

Questão 7

Questão
What does the % operator do in C#
Responda
  • Gives the percentage as a fraction of 1 of the two values
  • Give the remainder of the division of two values

Questão 8

Questão
Which if these will throw an error if foo isn't of type null-able int "foo as int?" or "(int?)foo"
Responda
  • Foo as int?
  • (int?)foo

Questão 9

Questão
What is Cyclomatic Complexity?
Responda
  • How long a method is
  • How many branches there are in a method
  • How many paths there are through a method

Questão 10

Questão
What is a Directed Graph?
Responda
  • 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

Questão 11

Questão
What is the builder pattern?
Responda
  • 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

Questão 12

Questão
What is a circular reference?
Responda
  • An infinite loop in code
  • A loop built with pointers for efficiency
  • A series of references where the last object references the first

Questão 13

Questão
What is the true form of a using statement in C#
Responda
  • 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

Questão 14

Questão
What is the LINQ expression for a multi threaded query
Responda
  • AsMultiThreaded()
  • AsMultiple()
  • AsParallel()
  • AsTasks(int x)

Questão 15

Questão
What is an Abstract Syntax Tree
Responda
  • A Parent Child representation of code
  • Nested code in an editor
  • Intermediate Language for Runtime

Semelhante

Programming in C# Exam 70-483 Q&A
Richard Brown
Programming Goals: Creating a Learning Map for C#
Garrett Fortner
C# - Test Drive...!!
Prashant Singh R
C# Fundamentals
Robert Mulpeter
Introduction to Programming: C#
Isaiah Parker
Programming in C#: Exam 483
R M
.NET midterm question
BigDady313 .
IL Code / Intermediate Language
Mary Quijano