0% found this document useful (0 votes)
3 views5 pages

Advanced Programming Viva Questions

The document outlines a series of viva questions for an Advanced Programming midterm, covering topics related to .NET, C#, string manipulation, type conversion, operators, pattern matching, arrays, tuples, collections, properties, indexers, delegates, lambda expressions, and LINQ. Each lecture includes specific questions designed to assess understanding of fundamental concepts and differences within these topics. The questions range from definitions and differences to explanations of methods and properties in C#.

Uploaded by

cltn060
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)
3 views5 pages

Advanced Programming Viva Questions

The document outlines a series of viva questions for an Advanced Programming midterm, covering topics related to .NET, C#, string manipulation, type conversion, operators, pattern matching, arrays, tuples, collections, properties, indexers, delegates, lambda expressions, and LINQ. Each lecture includes specific questions designed to assess understanding of fundamental concepts and differences within these topics. The questions range from definitions and differences to explanations of methods and properties in C#.

Uploaded by

cltn060
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

Advanced Programming – Viva Questions

(MidTerm)
Lecture 01 – Introduction to .NET
1. What is Visual Programming?

2. Difference between Console, GUI, and Visual Programming?

3. What is .NET?

4. What is C#?

5. What is CLR?

6. Explain architecture of .NET application.

7. What is Intermediate Language (IL)?

8. What is Native AOT?


9. What is Assembly in .NET?

10. Difference between .dll and .exe?

Lecture 02 – Strings
1. What is string in C#?

2. Is string primitive or non-primitive?


3. Difference between string and [Link]?

4. What is immutability of strings?

5. Why strings are immutable?

6. What is string literal?

7. What is verbatim string?

Lecture 03 – String Methods


1. What is [Link]?

2. Difference between null and empty string?

3. What does GetHashCode() return?


4. What is GetType()?
Lecture 04 – Type Conversion
1. What is type conversion?

2. Types of type conversion?

3. Difference between implicit and explicit conversion?

4. What is casting?

5. What is data loss in conversion?

Lecture 05 – Operators
1. What are operators?

2. Types of operators in C#?

3. What is operator precedence?

Lecture 06 – Pattern Matching


1. What is pattern matching?
2. Explain if(value is int num)

3. What is 'when' in switch?

Lecture 07 – Arrays
1. What is array?

2. Why arrays are reference types?

3. What is bounds checking?


4. What is array reassignment?

Lecture 08 – Tuples
1. What is tuple?

2. Why use tuples?

3. What is named tuple?


Lecture 09 – List Collection
1. What is List in C#?

2. Difference between Array and List?


3. Why List is dynamic?

4. What is Generic Collection?

5. Explain Add() and Remove() methods.

6. What is Count property in List?

7. Difference between Capacity and Count?

Lecture 10 – Properties
1. What are properties in C#?

2. Difference between field and property?

3. What is encapsulation?

4. Explain get and set accessors.

5. What is auto-implemented property?

6. Can a property be read-only?

7. Difference between property and method?

Lecture 11 – Indexers
1. What is an indexer?

2. Why indexers are used?

3. Difference between array and indexer?


4. What is the syntax of indexer?

5. Can a class have multiple indexers?


Lecture 12 – Delegates
1. What is delegate in C#?

2. Why delegates are used?


3. Difference between delegate and method?

4. What is multicast delegate?

5. What is built-in delegate?

6. Difference between Action and Func?

7. What is anonymous method?

Lecture 13 – Lambda Expressions


1. What is lambda expression?

2. Why lambda expressions are used?

3. Explain => operator.

4. Difference between anonymous method and lambda expression?

5. Can lambda expressions return values?

6. Where are lambda expressions commonly used?

7. What is LINQ relation with lambda expressions?


Lecture 14 – LINQ (Language Integrated Query)
1. What is LINQ in C#?

2. Why is LINQ used?


3. What are the advantages of LINQ?

4. Difference between SQL and LINQ?

5. What is the syntax of LINQ query?

6. Difference between Query Syntax and Method Syntax?

7. What is IEnumerable?

8. What is deferred execution in LINQ?

9. What is immediate execution in LINQ?


10. Explain Where() method.

11. Explain Select() method.

12. What is OrderBy() in LINQ?

13. Difference between First() and FirstOrDefault()?

14. Difference between Single() and SingleOrDefault()?

15. What is Count() method?

16. Explain Any() and All() methods.


17. What is projection in LINQ?

18. What is filtering in LINQ?


19. What is lambda expression in LINQ?

20. Can LINQ work with arrays and lists?

21. What is anonymous type in LINQ?

22. Difference between IEnumerable and IQueryable?

23. What happens if no data is found using First()?

24. Explain GroupBy() in LINQ.


25. What is Join in LINQ?

26. Explain Take() and Skip() methods.


27. What is chaining in LINQ?

28. What is LINQ to Objects?

29. What is LINQ to SQL?

You might also like