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

QUESTION 44 What differentiates a function from a subroutine? A subroutine retur

ID: 3598468 • Letter: Q

Question

QUESTION 44

What differentiates a function from a subroutine?

A subroutine returns a value, while a function does not

A function returns a value, while a subroutine does not

A subroutine does not take inputs, but a function does

A function does not take inputs, but a subroutine does

1 points   

QUESTION 45

Which information is included in the header of a function and a subroutine?

Its name

Its inputs and their types

Its output and its type

Both A and B

All of A, B, and C

1 points   

QUESTION 46

How can a function or subroutine be used to modify a pre-existing variable?

These tasks are not allowed to modify a variable

Using the ByRef reserved word

Naming the parameter exactly as the variable is named

Declaring a variable inside the function that matches the name outside the function

1 points   

QUESTION 47

Why do hierarchical charts help to structure effective programs?

They subdivide the program, motivated by top-down design principles

They imply directly the logical relationships between tasks in different branches at the same level

They imply loops or iterative processes

They imply directly the logical relationships between tasks at the same level within the same branch

1 points   

QUESTION 48

Which of these is not an advantage of structured programming?

Easier to execute

Easier to understand

Easier to change

Easier to debug

1 points   

QUESTION 49

What is the biggest motivating principle behind Visual Basic as a programming language?

Structured proramming

Top-down design

Stepwise refinement

Object orientation

1 points   

QUESTION 50

What college did the foundational aspects of BASIC come from (the predecessor of Visual Basic)?

Dartmouth College

University of Washington

Massachusetts Institute of Technology

University of California Berkeley

A.

A subroutine returns a value, while a function does not

B.

A function returns a value, while a subroutine does not

C.

A subroutine does not take inputs, but a function does

D.

A function does not take inputs, but a subroutine does

Explanation / Answer

Hi,

Ans 44- A function returns a value, while a subroutine does not

Ans 45- Both A and B

Ans 46- Using the ByRef reserved word

Ans 47-They imply directly the logical relationships between tasks in different branches at the same level

Ans 48-Easier to execute

Ans 49- Object orientation

Ans 50-Dartmouth College

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