Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

True or false <?xml:namespace prefix = o ns = \"urn:schemas-microsoft-com:office

ID: 3553652 • Letter: T

Question

True or false <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>

1.       All object are passed by reference.

2.       This list box control allows only single selection like a radio button, whereas the checked list box allows multiple sections.

3.       Visual basic considers the variable number and NuMbEr to be different.

Fill in blank

-------------------------------Begins a comments

A visual basic program uses a an -------------- statement to indicate that a namespace is being used

Method convert Int32 throws an------------------------ exception if its argument is not valid inger value.

Write a statement of a set of statements to accomplish each of the following

Sum the odd integers between 1 and 99 using a while structure. Assume that variable sum and count have been declared explicitly as integers.

Write a for statements that generates only the odd numbers between 15 and 45.

Write a dim statements a create a new object of the cls CreditCard class. Name variable that represents the object new card.

Write a statement that exits a while loop.

Find an error in the following program segments and explain how error can be corrects.

                                        Function addttogether(By Val num1 as integer, num2 as Integer)

                                                        Dim result as integer

                                                        Result = num1 + num2

                                                        End Function.

Find an error in the following program segments and explain how error can be corrects.

                                        Sub printer this (By Val a lists as single)

                                        Dim alist as single

Console. WriteLine(alists)

End sub

        Write a function called sales tax that accepts two arguments that first argument cur purchase price should be of type double. The second argument, single percentage tax should be of type single. The function should compute and return the sales tax of the item purchased

.

Explanation / Answer


Dear,


This is repeated question!!

Dear,

1. False, there is specific consideration/rule that all objects are passed by reference as some are passed to function by value.

2. True.

Blanks

namespace

4. I/O exception

5.

Dim sum As Integer
Dim i As Integer
sum=0
i=1
Do while i< 99
if i%2! =0 Then
     sum = sum + i
ENDIF
i++
Loop

6.
Dim sum As Integer
Dim i As Integer
i=14
Do while i< 45
if i%2! =0 Then
     console.writeline(i)
ENDIF
i++
Loop

7. Dim objectNew As CreditCard

8 Exit While statement exits while loop


Function :


Function CalculateSalesTax(ByVal price, ByVal per) As Decimal
        Dim saleTax As Double
        saleTax = (price * (per / 100))
        Return saleTax


    End Function

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote