Question

Visual Basic.
1)
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
2)

3)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

5 2) False 3) False

Add a comment
Know the answer?
Add Answer to:
Visual Basic. 1) 2) 3) What is the value of Adisplayed by the message box? Sub...
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
  • When Sub Main below is executed, what will be displayed by the two message box? Sub...

    When Sub Main below is executed, what will be displayed by the two message box? Sub Main()    Dim X As Short = 10    Dim Y As Short = 20    Call SomeWeirdMath(X,Y)    MsgBox (X)    MsgBox (Y) End Sub Sub SomeWeirdMath(ByRef P As Short, ByVal Q As Short)    P = P*Q    Q = Q*P End Sub

  • 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...

  • What will be displayed when the sub procedure that follows is run, true or false? Show...

    What will be displayed when the sub procedure that follows is run, true or false? Show all the steps. Option Explicit Sub test() Dim x As Double, z As Double, a As String, b As String x = 7 z = 6 a = "b" b = "a" If Not z > 4 * Atn(1) Or rrr(x) < z Or x > 7 And a > b Then     MsgBox "true" Else     MsgBox "false" End If End Sub Function...

  • Microsoft Excel VBA (Visual Basic for Applications) Programming Language Objectives: Create an array and redim it...

    Microsoft Excel VBA (Visual Basic for Applications) Programming Language Objectives: Create an array and redim it to a size equal to an assigned value of a variable, populate the array with a series of random numbers, output the array to a message box and to a worksheet. Instructions: - Review the variables already declared. You won't need others. - See comments in the code that will act as your guide. Add new code directly after each comment. - Assign a...

  • 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...

  • computer Programming visual Basic 1-10 QUESTION 1 Which of the following is not a logical operator...

    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 following is a valid Visual Basic conditional statement? 2<n<5 2 <n or <5 0 2 <n<5 (2 <n) or (n <5) QUESTION 3 When Visual Basic stops evaluating a compound condition with the logical And operator because the first condition evaluates to False. It is called evaluation. short-circuit Pre- compound first...

  • Question 21 pts If StudentData.txt file looks like this: 101,70 132,75 153,80 If a sub called...

    Question 21 pts If StudentData.txt file looks like this: 101,70 132,75 153,80 If a sub called student looks like this: Sub Student() Dim StudentID As Integer Dim Score As Integer FileOpen(1, “StudentData.txt”, OpenMode.Input) Do Until EOF(1)     Input(1, StudentID)     Input(1, Score)    MsgBox (Score) Loop FileClose(1) End Sub What will be the display if Sub Student executes? 70 There will be three messages: 70; 75; 80 There will be three messages: 101; 142; 153 none of the above (using...

  • 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...

  • MESSAGE 1 1. Using the Visual Basic Editor, create a VBA procedure named message_1 that does...

    MESSAGE 1 1. Using the Visual Basic Editor, create a VBA procedure named message_1 that does the following: a. Asks the user for their name (using an Input Box). b. Determines the number of slides in the presentation using the appropriate code. c. Displays a message back to the user (using a Message Box) that contains the name entered and the number of slide in the presentation. The message should be something like this: (Hello Sally, there are 8 slides...

  • public sub lab4() 'define thr main program 'define variables Dim h,b,r,l,w,at, ac, ar, atotal as Double...

    public sub lab4() 'define thr main program 'define variables Dim h,b,r,l,w,at, ac, ar, atotal as Double h = 10.1 b = 7 r = 2.5 l = 7.1 w = 3.6 Call areatriangle ((h), (b)) Call areacircle ((r)) Call arearectangle ((l, (w)) Call sum ((at), (ac), (ar)) MsgBox atotal End Sub Public Sub areatriangle (h,b) dim a, at as double a = (b*h)/2 at= a end sub Public Sub areacircle(r) Dim a, ac as double a = 3.14 * (r^2)...

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