Write a console application and implement the ternary operator to decide whether the
age a user entered after being prompted is allowed to vote or not(given that only citizens
between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical
input.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

How many classes are there in classification?

0 Answers  


What is for loop in c#?

0 Answers  


Can fields inside a class be virtual?

0 Answers  


What?s the difference between System.String and System.StringBuilder classes?

3 Answers  


Name the method of servicebase class?

0 Answers  






When should we use sealed class in c#?

0 Answers  


What is overloading and how can this be done ?

4 Answers   MMTS,


What is a Managed Code??

0 Answers  


what is the purpose of Interfaces?

7 Answers   HCL,


Why delegates are type safe?

0 Answers  


What is xaml in c#?

0 Answers  


What is the correct way of declaring an xml namespace?

0 Answers  


Categories