Question
computer Programming
visual Basic

1-10
QUESTION 1 Which of the following is not a logical operator in Visual Basic? Not • or And Then QUESTION 2 Which of the follow
QUESTION 3 When Visual Basic stops evaluating a compound condition with the logical And operator because the first condition
QUESTION 5 What will be displayed by the following program when the button is clicked? Private Sub btnDisplay_Click(...) Hand
QUESTION 6 Which value for x would make the following condition true: (x >= 5) And (x <=6) 7 O 6 5 B and C
QUESTION 7 If originally x=2,7-3, and z-5, what is the value of x.y, and z after executing the following code? If (x+1=y) the
QUESTION 8 What will be the output of the following lines of code? Dim phrase As String = A penny saved is worth nothing. I
QUESTION 9 Asc(A) is 65. What is Asc(D)?
QUESTION 10 What word(s) will appear in the list box when the button is clicked?Private Sub btnDisplay_Click(...) Handles btn
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The above problem can be solved as follows-

Dear student, your question has multiple parts to the question and as HOMEWORKLIB's Policy, which states that -

Multiple Sub-Part Qs - Answer the first 4 sub-parts, unless the student has asked for specific subpart(s) to be answered, subject to a maximum of 4 sub-parts.

So I can only solved first 4 subparts Q 1,2,3 and 4 as no specific part has been mentioned.

QUESTION 1

Answer - Option D - Then

Explanation -  First 3 options, not, or, and are logical operators in Visual Basic and they are used in logical statements that evaluate to true/false.

But the word then is not used as logical operator but as in if-then-else statements. So it is correct answer as its not a logical operator.

QUESTION 2-

Answer - Option D - (2<n) or (n<5)

Explanantion - This is the correct options as it follows the syntax as it should. Option A is not correct logical sequence and Option B does not brackets around the conditions. And option C is same as Option A so both are incorrect.

In this way Option D is the correct choice.

QUESTION 3

Answer - Option A - short circuit

Explanation - This option A is the correct answer as the situation when and expression is being evaluated and the first expression results in false, due to which the next statement is not evaluated, is known as short circuit.

Pre , compound and first are not the correct words used for this behaviour.

QUESTION 4-

Answer - Option C - "GMC"<="GMC"

Explanation - This is becaue the first statement is false because "Ford" is not less than "Ford". They are same/equal.

The second statement compares "Chevy" with itself with > operator but they are again same/equal

The third statement which return true is that "GMC" may not be less than "GMC" but they are equal. That is why it returns true because although not < but they are =.

And the last is not true because "oldsmobile" is actually > than "Oldsmobile" and not < assuming their ASCII values for comparison.

If this answer helps, please give an up vote and feel free to comment for any query.

Add a comment
Know the answer?
Add Answer to:
computer Programming visual Basic 1-10 QUESTION 1 Which of the following is not a logical operator...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help with this problem in Visual Basic 2012: Write a program that allows the...

    I need help with this problem in Visual Basic 2012: Write a program that allows the user to specify two numbers and then adds, subtracts, multiplies, or divides them when the user clicks on the appropriate button. The output should give the type of arithmetic performed and the result. Whenever one of the numbers in an input text box is changed, the output text box should be cleared. Also, if the number 0 is entered into the second text box,...

  • Visual Basic Code. 224 Chapter 5 General Procedures In Exercises 14 and 15, rewrite the program...

    Visual Basic Code. 224 Chapter 5 General Procedures In Exercises 14 and 15, rewrite the program using a Function instead of a Sub procedure. 14. Private Sub btnCalculate Click (... Handles btnCalculate.Click Dim firstNumber, secondNumber As Integer firstNumber = 4 Triple (firstNumber, secondNumber) txtResult. Text = CStr (secondNumber) End Sub Sub Triple (firstNumber As Integer, ByRef secondNumber As Integer) secondNumber = 3 * firstNumber End Sub 15. Private Sub btnCalculate Click(.) Handles btncalculate.Click Dim price, salesTaxRate, cost As Decima price...

  • The Murach's Visual Basic 2015 Book And Visual Studio Exercise 7-2 Enhance the Invoice Total application...

    The Murach's Visual Basic 2015 Book And Visual Studio Exercise 7-2 Enhance the Invoice Total application If you did exercise 6-1 in the last chapter, this exercise asks you to add data validation and exception handling to it. 1. Copy the Invoice Total application from your C:\VB 2015\Chapter 06 directory to your Chapter 07 directory. This should be your solution to exercise 6-1 of the last chapter. 2. If your application has both a Sub procedure and a Function procedure...

  • I really need some help fixing a code error in Visual Basic I was wondering if...

    I really need some help fixing a code error in Visual Basic I was wondering if anyone could help fix the error that I'm about to provide in bold thanks so much! I'll also tell what the error is. Public Class MainForm Private Sub exitButton_Click(sender As Object, e As EventArgs) Handles exitButton.Click Me.Close() End Sub Dim img As Image = Image.FromFile("C:\Users\Pranesh\Pictures\11599264.jpg") house1PictureBox.Image = img house2PictureBox.Image = img house3PictureBox.Image = img house4PictureBox.Image = img house1PictureBox.Visible = False house2PictureBox.Visible = False house3PictureBox.Visible...

  • Visual Basic: Create an application that simulates a tic tac toe game. The form uses 9...

    Visual Basic: Create an application that simulates a tic tac toe game. The form uses 9 large labels to display the x's and o's. The application should use a two dimensional integer array to simulate the game board in memory. When the user clicks the "New Game" button the application should step throguh the array storing a random number of 0 to 1 in each element. The numer 0 represent the letter o and the number 1 reprsents the letter...

  • Program using visual basic.net You will create a very simple two numbers calculator with save options;...

    Program using visual basic.net You will create a very simple two numbers calculator with save options; here is the specifications for the application. Create a form divided vertically in two halves with right and left panels 1- In the left panel you will create the following control, the label or the value of the control will be in "" and the type of the control will in [] a- "First Number" [textbox] b- "Second number" [texbox] c- "Result" [textbox] -...

  • Visual Basic. 1) 2) 3) What is the value of Adisplayed by the message box? Sub...

    Visual Basic. 1) 2) 3) What is the value of Adisplayed by the message box? Sub Main() Dim A As Single, B As Single, C As Single Test(B,C) MsgBox(A) End Sub Function Test(ByVal B As Single, Byval C As Single) As Single Test B +C End Sub

  • I am trying to build a program in Visual Basic that allows user to enter an...

    I am trying to build a program in Visual Basic that allows user to enter an objects mass and velocity and to display the Kinetic energy. The application should have a function KineticEnergy that accepts a moving objects mass and velocity as arguments. The function should return the objects KE. i get these three errors when trying to run the program I need help how would I fix this so it runs successfully? Thanks in advance! Start 16 ml.vb* +...

  • The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language....

    The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language. The book ISBN number that I am using is: 978-1-285-08416-9 or the UPC code is: 2-901285084168-1. Question 1 Visual Basic 2012 is an object-oriented programming language, which is a language that allows the programmer to use ____________________ to accomplish a program�s goal. Question 2 An application that has a Web user interface and runs on a server is called a(n) ____________________ application. Question 3...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT