C# Control Statements and Expressions Interview Questions - 1
Question: 1
What is called compound statement?
A group of statements enclosed within the curly braces comprises a block. It is also known as compound statement.
Question: 2
What is the use of lock statement?
The lock statement is used to implement the mechanism of mutual exclusion of critical sections.
An object is locked until it completes the execution of its embedded statement and then the lock is released.
Question: 3
What is called fall through in C#?
In the absence of the break statement in a case block, and the control move to the next case block without any problem then it is called as fall through.
C# does not permit the fall through. Where as C, C++, Java permits.
Question: 4
What is for each statement in C#?
The for each statement is similar to the for statement but implemented differently.
It is used to enumerate the contents of a collection such as array, list, and hash table.
Samacheer Kalvi Class 11 Taxonomy Systematic Botany Questions More
Photosynthesis in Higher Plants MCQ Questions and Answers More
The Living World Class 11 Questions and Answers Pdf Download More
Samacheer Kalvi Class 11 Bio Botany Photosynthetic Questions More
Samacheer Kalvi Class 11 Bio Botany Cell Cycle Questions More
MS Windows Questions and Answers for Competitive Exams Pdf More
7000+ Preposition Exercises for Class 10, 9, 8, 7, 6 More
Samacheer Kalvi Class 6 Science Term 3 Environment Questions More
Samacheer Kalvi Computer Science Class 11 Polymorphism Questions More
Samacheer Kalvi Computer Science 11 Arrays and Structures Questions More