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 difference between assembly and dll?

0 Answers  


Define method overloading in c#?

0 Answers  


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

0 Answers  


Can you pass parameters to destructors?

0 Answers  


What is a decimal c#?

0 Answers  






What does the keyword virtual mean in the method definition?

3 Answers   Ipog Software, Satyam, Visual Soft,


What is assembly version series sequence?

0 Answers  


Enlist the different types of classes in c#?

0 Answers  


Can we write one page in c# and other in vb in one application ?

3 Answers   Keane India Ltd,


Can arraylist store different data types in c#?

0 Answers  


what is Anonymous Method.? and What is shadowing?

2 Answers   ATS, Infosys,


How do you pronounce c#?

0 Answers  


Categories