Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Test za .

NET developer-a
Kandidat: _________________________________

Datum: _______________

NAPOMENA: Odgovor pišete na engleskom jeziku u slobodan prostor ispod svakog pitanja.

Id Task Result
points
1 What types of comments exist in C#?
Answer:

2 What is difference between Array and ArrayList in C#?


Answer:

3 What are namespaces in C#?


Answer:

4 What is the difference between “constant” and “readonly” variables in C#?


Answer:

5 Explain Static Members in C#?


Answer:

6 Why to use “finally” block in C#?


Answer:
7 What is ref parameter in C#?
Answer:

8 Can we use “this” inside a static method in C#?


Answer:

9 What are value types and reference types in C#? Give minimum of two examples each.
Answer:
Value types:

Reference types:

10 In try block if we add return statement whether finally block is executed in C#?
Answer:

11 What is the difference between “StringBuilder” and “String” in C#?


Answer:

12 Having
public sealed class Circle {
private double radius;
public double Calculate(Func<double, double> op) {
return op(radius);
}
}
write code to calculate the circumference of the circle.
Answer:

13 What are the uses of delegates in C#?


Answer:

14 What is Nullable Types in C#?


Answer:

15 Why to use lock statement in C#?


Answer:
16 How to check whether hash table contains specific key in C#? Write code example.
Answer:

17 Write a sample code to write the contents to text file in C#?


Answer:

18 Explain what is a class and give code example for class representing person with first
and last name?
Answer:

19 What is an Interface in C# ?
Answer:

20 Given an int array, write a C# method to total all the values that are even numbers.
Solution:

You might also like