0% found this document useful (0 votes)
33 views1 page

.NET Programming Concepts and C# Basics

Uploaded by

ahadsumra9111
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

.NET Programming Concepts and C# Basics

Uploaded by

ahadsumra9111
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

5th Sem 03610317 - .

Net Programming

1. What is the .NET Framework?


2. What is the role of the CLR (Common Language Runtime) in .NET?
3. Define CTS (Common Type System).
4. What is CLS (Common Language Specification)?
5. List any two features of C#.
6. What are value types and reference types in C#?
7. Write a program showing use of data types in C#?
8. Define a variable with an example in C#.
9. List out operators in C#?
10. Write a simple example of an if-else statement in C#.
11. What is a for loop? Write its syntax.
12. What is the difference between while and do-while loops?
13. Write the syntax of a switch statement in C#.
14. What is an array? Give an example of a one-dimensional array.
15. What is the purpose of a List in C#?
16. What is a Dictionary in C#?
17. What is exception handling?
18. Explain use of try-catch-finally block?
19. Write an example of exception handling in C# divide by zero.
20. What happens if an exception is not handled in a C# program?
21. What is Windows Forms in .NET?
22. Name any four common Windows Form controls.
23. What is the use of a Button control in Windows Forms?
24. What is the purpose of the TextBox control?
25. Differentiate between ListBox and ComboBox.
26. What is an event in Windows Forms?
27. What is the Click event used for?
28. What is the TextChanged event?
29. What is the use of [Link]() method?
30. What is a dialog box in Windows Forms?
31. How can you read a text file in C#?
32. How can you write data to a text file in C#?
33. What is [Link]?
34. What is a DataAdapter in [Link]?
35. What is a DataGridView control used for?
36. Write the purpose of the SqlConnection object.
37. List the basic SQL commands used in [Link].
38. What is CRUD operation?
39. How do you handle database exceptions in .NET?
40. What is the difference between ExecuteReader() and ExecuteNonQuery() methods?

You might also like