VB.NET Questions/Answers-conditional statements (PartI)


VB.NET conditional statements (PartI)

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


Comments




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.