Inscoe - CPI 7.01-7.04

Inscoe - CPI 7.01-7.04

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Chapter 1 Review

Chapter 1 Review

12th Grade

27 Qs

IAM FINAL RA-1 23-24

IAM FINAL RA-1 23-24

12th Grade

25 Qs

SQL Queries Semester 1

SQL Queries Semester 1

12th Grade

30 Qs

Inscoe - CPI 7.01-7.04

Inscoe - CPI 7.01-7.04

Assessment

Quiz

Business

9th - 12th Grade

Medium

Created by

Amber Inscoe

Used 46+ times

FREE Resource

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)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?