CIS115 Week 7 Quiz – Study Guide – 100% score for this study guide

Lab Price = $9
Please feel free to send us your queries at: [email protected]
P.S: This is just a study guide. The questions may not appear exactly like this.
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement

1. If a module is useful and well written, you may want to use it more than once within a program. This is known as _____. (Points : 3)
reusability
reliability
scalability
abstraction

2. A _____ is used to identify the relationships between modules within a program. (Points : 3)
relationship chart
flowchart
hierarchy chart
All of the above

3. What datatype is being passed to the function based on the following Visual Basic function declaration?
Public Function doSomething(input as Integer) As String (Points : 3)
Integer
String
Public
Input

4. What is the output of the following Visual Basic code if the numbers input are 20 and then 10?

Sub Main()
Dim n1, n2, temp As Integer
Console.Write(“Enter a number: “)
n1 = Console.ReadLine
Console.Write(“Enter a number: “)
n2 = Console.ReadLine
Console.WriteLine(n1 & “ and ” & n2)
temp = goofy(n1, n2)
Console.WriteLine(“The answer is ” & temp)
End Sub

Public Function goofy(x As Integer, y As Integer) As Integer
Dim ans As Integer
If x > y Then
ans = 2 * (x – y)
ElseIf (x < y) Then ans = 2 * (x + y) Else ans = x + y End If Return ans End Function (Points : 4) 5. Write a Visual Basic function called Compare to compare two numbers and return a code that indicates their relationship: 0 if they are equal, 1 if the first number is larger, and -1 if the first number is smaller. Your main module should prompt the user for the two numbers and pass them to the function. The result is printed in your main module. The output should look like this (note that it should work for any values that are input; these are just examples). Enter a number: 10 Enter a number: 21 10 is smaller than 21 (Points : 7)

Relevant Material
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on [email protected]
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Payment Details
Lab Price = $9
Please feel free to send us your queries at: [email protected]

Payment methods

Add to Cart

Buy Now

View Cart

Leave a Reply