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

What is hashtable in c# net with example?

0 Answers  


What is generic method in c#?

0 Answers  


Explain how do you debug an asp.net web application?

0 Answers  


Can properties be static in c#?

0 Answers  


What is a resource? Provide an example from your recent project.

2 Answers   IBM, Logica CMG, Wipro,






What is the example of predicate?

0 Answers  


What do you mean by jagged array?

0 Answers  


What are Sealed Classes in C#?

27 Answers   DataPoint, Wipro,


What is the meaning of 0 in c#?

0 Answers  


How to handle exceptions that are raised in a component?

0 Answers   Alcatel-Lucent,


What is void method?

0 Answers  


Difference between debug.write and trace.write?

0 Answers  


Categories