For Online Class Help or Private Tutoring Service email us at [email protected] or WhatsApp us at +1 (781) 656-7669

Homework Provider

 
  • Take My Class
  • Take My Exam
  • How It Works
  • Solutions
    • Questions
  • Testimonials
  • Blog
  • Who Are We
  • Contact Us
  • Take My Class
  • Take My Exam
  • How It Works
  • Solutions
    • Questions
  • Testimonials
  • Blog
  • Who Are We
  • Contact Us
  1. Home
  2. Questions
  3. CIS170A Week 5 Quiz In Vb – Study Guide – 100% Score For This Study Guide

CIS170A Week 5 Quiz In Vb – Study Guide – 100% Score For This Study Guide

1. (TCO 7) Modular programming uses a(n) _____ and _____ approach to problem solving. (Points : 3)
divide, conquer
breakdown, conquer
divide, simplify
abstraction, modular

2. (TCO 7) In Visual Basic, variables can be declared with what scope? (Points : 3)
Local
Universal
Global
Local and global
Local and universal

3. (TCO 7) The _____ statement is used to pass a value back to the calling code from a function. (Points : 3)
void
return
type
value parameter

4. (TCO 8) Which part of a function or sub procedure declaration statement is optional? (Points : 3)
Procedure name
Body code
Header
Parameters

5. (TCO 8) The process of passing only the value of a variable to a function or sub procedure is called _____. (Points : 3)
passing by reference
passing by value
localization
valuation of parameters

6. (TCO 8) Consider the following function call.

Dim letterGrade As String
letterGrade = CalcLetterGrade(95.5)

What would be a valid function declaration? (Points : 3)
Private Function CalcLetterGrade(ByVal dblX As Double) As Integer
Private Function CalcLetterGrade(ByVal dblX As Double) As String
Private Function CalcLetterGrade(ByVal dblX As Double) As Double
Private Function CalcLetterGrade(ByVal intX As Integer) As String

7. (TCO 8) What changes are required in the following code so that the resulting output is as follows?

Expected Output:
num1 = 2
num2 = 1
num3 = 3

Code:

Sub Main()

Dim num1 As Integer = 1
Dim num2 As Integer = 2
Dim num3 As Integer = 3

Swap(num1, num2, num3)
Console.WriteLine(“num1 = ” & num1)
Console.WriteLine(“num2 = ” & num2)
Console.WriteLine(“num3 = ” & num3)

End Sub

Sub Swap(ByVal a As Integer, ByVal b As Integer, ByVal c As Integer)
Dim temp As Integer
temp = a
a = b
b = temp
End Sub (Points : 3)
Change function declaration to: Sub Swap(ByVal a As Integer, ByRef b As Integer, ByVal c As Integer).
Change function declaration to: Sub Swap(ByRef a As Integer, ByVal b As Integer, ByVal c As Integer).
Change function declaration to: Sub Swap(ByRef a As Integer, ByRef b As Integer, ByVal c As Integer).
No changes are required, the function works as expected.

8. (TCO 8) What is displayed when the following code is executed?

Sub Main()
Dim val1 As Integer = 4
Dim val2 As Integer = 5

Triple(val1, val2)
Console.WriteLine(“val1 = ” & val1)
Console.WriteLine(“val2 = ” & val2)

End Sub

Sub Triple (ByVal x As Integer, ByRef y As Integer)
Dim temp As Integer
temp = x
x = y
y = temp
End Sub (Points : 3)
val1 = 5
val2 = 4
val1 = 4
val2 = 4
val1 = 4
val2 = 5
None of the above

9. (TCO 7) Which of the following is NOT an advantage of creating modular code? (Points : 3)
The complexity of the code design decreases.
The amount of time required to code a program decreases.
Finding errors is easier.
Many people can work on related modules at the same time.

10. (TCO 7) Which of the following should NOT be considered when designing a module? (Points : 3)
The module should perform one single task.
The module should contain appropriate documentation.
The module should have a single entry point.
The module should allow for a flexible interface.

11. (TCO 8) What will be the output of the following program when it is executed?

Sub Main()

Dim num As Integer = 5
MultiplyAndPrint(num)
num = 7
MultiplyAndPrint(num)
num = 9
MultiplyAndPrint(num)

End Sub

Sub MultiplyAndPrint(ByVal num As Integer)
Dim strHold As String
If num >= 7 Then
strHold = “Result is: ” & (2 * num)
Else
strHold = “Result is: ” & (8 * num)
End If

System.Console.WriteLine(strHold)

End Sub (Points : 5)

take-my-online-class-thumbnail
Play Video
pay-someone-to-take-my-online-class

Name: Jennifer Lucas
Status: Online ⬤
Classes Taken: 3878
Ratings: ⭐⭐⭐⭐⭐

Hire Me

STATUS

Facebook
Twitter
Reddit
Pinterest
WhatsApp
Email
pdf-answers
Get Solved Answers
$2.99
Add to cart

GET QUICK PRICE ESTIMATE FOR THIS TASK

WHY CHOOSE US

  • Over 300 Experts to Work on Your Papers
  • 100% Privacy and Confidentiality
  • Amazing Discounts and Special Offers
  • Delivery within Every Deadline Level
  • Secure Payment Process
  • High-Quality Papers
  • 24/7 Live Customer Support
  • Free Revisions If Required
  • Fair & Cheap Prices
  • Rated 4.9/5 By Students

COMPLETED TASKS

SOCS 325 Week 8 Final Exam (Version 2)

July 13, 2020

SOCS 325 Week 8 Final Exam (Version 1)

July 13, 2020

SOCS 325 Week 8 Final Exam (Collection)

July 13, 2020

SOCS 325 Week 8 Collaborative Group Project Discussion

July 13, 2020

SOCS 325 Week 7 Bundle: Assignments + Group Project + Discussions

July 13, 2020

SOCS 325 Week 6 Bundle: Assignments + Discussions

July 13, 2020

SOCS 325 Week 5 Bundle: Assignments + Discussions

July 13, 2020

SOCS 325 Week 4 Midterm (Version 4)

July 13, 2020

Homework Provider

Facebook-f Twitter Pinterest Whatsapp Reddit Envelope

WE ACCEPT

PayPal
VISA Light
AMERICAN EXPRESS LIGHT
Bitcoin
  • Take My Online Class
  • Do My Case Study
  • Take My Online Exam
  • Online Class Help
  • Do My Homework
  • Take My Online Test
  • Original Homework Help
  • Premium Plagiarism Checker
  • Take My Midterm Exam
  • Research Paper Writing
  • Case Study Writing Help
  • Dissertation Writing Service
  • Online Coursework Help
  • Pay Someone To Write My Paper
  • Pay For Online Classes
  • Programming Classes Help
  • MyMathLab Answers
  • MyStatLab Answers
  • MyAccountingLab Answers
  • Need Help With Online Class
  • Cheap Assignment Help
  • Write My Online Essay
  • Online Student Problems
  • Math Homework Help

Contact Us

  • [email protected]
  • WhatsApp (781) 656-7669
  • twitter.com/hwp_helper
  • fb.com/homeworkprovidercom
  • Privacy Policy
  • Terms of Use
  • DMCA
  • Cookie Policy
  • Money Back Guarantee
  • Premium Plagiarism Checker
  • Contact Us

HomeworkProvider.com is not endorsed or affiliated by any university or college. The services provided are meant to assist the client by providing a guideline and the product provided is intended to be used for research or study purposes.

© 2013-2020 HomeworkProvider. All rights reserved.

ORDER THIS
WHATSAPP

Yay! You are just one step away to get rid of homework stress

  • How It Works
  • Testimonials
  • We are committed to ensuring that your information is secure with us
hire-an-expert-to-do-my-exam

Don't Waste Your Time Searching For Old Plagiarized Courses

Get Your Job Done By Our Anonymous Quality Experts

  • How It Works
  • Reviews
  • 24/7 Support
doc icon homework provider

CIS 155 Lab Help, Leslie​
Thank you for doing my CIS 115 lab. Homework Provider is the best.

Rated By Client
 5/5
doc icon homework provider

Dream Service, William
Thanks God, you came to my rescue. Thanks for your help.

Rated By Client
 5/5
doc icon homework provider

Mind blowing service, Eddie
I could have failed quite a few exams if you guys did not help me

Rated By Client
 5/5
doc icon homework provider

Got A grade in final exam, John
I still couldn’t believe I got an A grade in my exam. Highly vouched service.

Rated By Client
 5/5
doc icon homework provider

Linda, opted for private tutoring
Subscribed to get online class help for devry acct 212 week 1-8 class​​

Week 5 65%
doc icon homework provider

Acct Course Project, Ryan
Thanks a lot to my writer who followed all my requirements.

Rated By Client
 5/5
xls-icon

Genuine service, Steven
The research paper was much more than I expected! Thanks a lot.

Rated By Client
 4.5/5
doc icon homework provider

Karen, opted for private tutoring
Subscribed to get online class help for liberty BUSI 536 week 1-8 class.

Week 7 88%
doc icon homework provider

Marcus, opted for private tutoring
Subscribed to get online class help for ashford psy week 1-5 class.

Week 3 58%
doc icon homework provider

I got A grade in class, Amanda
with the help of homework provider I made it to pass my acct 505 class.

Rated By Client
 5/5