C# Questions Answers-C# conditional statements (PartI)

C# conditional statements (PartI)

1. Which of the following is not a logical operator in C# language?
a.&   b.&&   c.||   d.! Check answer 2. Which of the following is not a comparison operator in C# language?
a.>   b.<=   c.=   d.== Check answer 3. There are two different ways to implement multi selections in C# language. They are 
a. else-if and switch case     b. if...else and switch case
c. else-if and case Check answer 4. Evaluate the following expressions to true or false
a.3!=4-1   b. 5>=(1+6)-4   c.5+1==6 || 8-1>4   d.5>=6 || 1<8 && 9>7 Check answer 5. if originally x=10,y=5, and z=2, evaluate the following expressions to true to false:
a.(x+1)!=y-2   b. !(x+y>20)
c.(x+1==y) || y-1>5   d.z+1>=3 || x+1<z*10 && y+3>7 Check answer 6. Simplify the following expressions by removing ! operator and parentheses:
a.!(x!=y)    b.!(x>z)    c.!(x+y>=z)    d.!(x>y || !(x>z)) Check answer


This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.