Search Header Logo

Inscoe - CPI 7.01-7.04

Authored by Amber Inscoe

Business

9th - 12th Grade

Used 46+ times

Inscoe - CPI 7.01-7.04
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the function header, which statement below is written to correctly call the function?


Function calcTotalPrice (ByVal dblPrice As Double, ByVal intQuantity As Integer) As Double

dblAnswer= calcTotalPrice(dblPrice, dblTaxRate, intQuantity)

dblAnswer (calcTotalPrice(intQuantity, dblPrice))

calcTotalPrice(intQuantity, dblPrice)

dblAnswer= calcTotalPrice(dblPrice, intQuantity)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which For Each loop would correctly create a running total of the elements in an array called Scores?

For Each dblScore As Double in Scores

Total= Total + Scores(i)

Next dblScore

For Each...

Total=Total(i) + Scores(i)

Next dblScore

For Each dblScore As Double

Total= Total + Scores

Next dblScore

For Each dblScore As Double in Scores

Total= Total + dblScore

Next dblScore

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Using the code shown, what is the value of dblResult after execution when 2.9 is entered into txtNum and 4 is entered into txtNum2?

7

There is an error and the program will not execute.

0

6.9

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Using the code shown, what is the value of dblResult after execution when 2.9 is entered into txtNum and 4 is entered into txtNum2 ?

7

There is an error and the program will not execute.

0

6.9

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the code shown, what is the value of dblAnswer after the code executes?

0

10

20

30

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can be said of the following function procedure?

Private Function isPositive(ByVal intArg As Integer) As Boolean

If intArg <0 Then

Return False

Else

Return True

End If

End Function

The function can be used by any module.

The function returns a value having a data type of Boolean.

The function receives one argument having a data type of Boolean.

The function returns a value having a data type of Integer.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given an array called intScores , which statement would pass the first element to the sub procedure below?


Private Sub GiveAdvice(ByVal intNum As Integer)

GiveAdvice(intScores())

GiveAdvice(intScores(0))

GiveAdvice(intScores(1))

GiveAdvice(intScores)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?