Professional Documents
Culture Documents
NET
Question Bank
Chapter1:
1. What are the core features of .NET platform?
2. Write a program to compute and display the average of 3 numbers with input taken from the
console.
3. How is C# better than VB, Java and C++.
4. What are the building blocks of .NET platform? Briefly explain the role of CLS,CTS, CLR
and base class libraries.
5. Explain the concept of assembly.What are its contents?
6. What are single file and multifile assemblies?
7. What is the significance of CIL or IL for the execution of any .NET aware language. Use
appropriate language to support your answer.
8. Design a C# method AddInts( ) to add 5 integers that are read from key board. Send the
result and a flag indicating successful addition or an error to the calling program say Main() .
You must use appropriate parameter passing mechanism.
9. Explain the concept of namespaces. List and explain atleast 5 .NET namespaces.
10. How do you access a namespace programmatically.
11. Explain the workflow that takes place between source code, .NET compiler and execution
engine.
12. What are response files ? Why do you require them?
13. How do you use response files.Explain with an example.
14. Which is the default response file ?.
15. Mention the different preprocessor directives that C# supports. Explain each with examples.
16. Write a C# program to sort an array of integers using bubble sort.
17. Give the difference between value types and reference types.
18. Explain with examples the C# operators is, as and typeof.
19. What do you understand by params method of parameter passing. Give an example.
20. Using methods in System.String class design a C# static method which replaces all
occurrences of the word vtu with VTU.
PESIT (BSC)
Course Information
BE. -VIISem
CS
10CS761 4 - 1
PESIT (BSC)
Course Information
BE. -VIISem
CS
10CS761 4 - 2
PESIT (BSC)
Course Information
BE. -VIISem
CS
10CS761 4 - 3
PESIT (BSC)
Course Information
BE. -VIISem
CS
10CS761 4 - 4