Excel Vba For Actuaries Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Actuwaiter
A
Actuwaiter
Community Contributor
Quizzes Created: 2 | Total Attempts: 1,766
| Attempts: 1,225 | Questions: 5
Please wait...
Question 1 / 5
0 %
0/100
Score 0/100
1. Task 4, how do you correct this declaration? Dim items As String

Explanation

The correct answer is "Dim item As String" because it replaces the incorrect declaration "Dim items As String" with the correct variable name "item" and the correct data type "String".

Submit
Please wait...
About This Quiz
Excel Vba For Actuaries Quiz - Quiz

This Excel VBA for Actuaries Quiz assesses skills in programming with Excel VBA, focusing on practical tasks like generating random numbers, manipulating cells, and defining functions. It is ideal for actuaries and other professionals enhancing their Excel VBA proficiency.

Personalize your quiz and earn a certificate with your name on it!
2. You want to write "Month" to cell A1.  What code will do this?

Explanation

The correct answer is Cells(1,1) = "Month". This code will write the value "Month" to cell A1.

Submit
3. Task 2, what is the outer loop? What is the inner loop?

Explanation

The correct answer is "Outer is simcounter, inner is itemcounter". This means that there are two loops in the code, with the outer loop being controlled by the variable "simcounter" and the inner loop being controlled by the variable "itemcounter". The outer loop will execute its code block first, and then the inner loop will execute its code block for each iteration of the outer loop.

Submit
4. Task 3, How did you define your WarrantyPrice function?

Explanation

The correct answer is "Function WarrantyPrice(item,brand) as Double". This is because the function definition includes two parameters, "item" and "brand", and it specifies that the function will return a value of type "Double". This means that the function is expected to take in an item and brand as input and calculate and return a warranty price as a decimal number.

Submit
5. What is a way to code a random number between 0 and 1 in VBA?

Explanation

The correct answer is WorksheetFunction.Randbetween(0,100)/100. This code generates a random number between 0 and 100 using the Randbetween function, and then divides it by 100 to scale it down to a number between 0 and 1.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 22, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 01, 2013
    Quiz Created by
    Actuwaiter
Cancel
  • All
    All (5)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Task 4, how do you correct this declaration? Dim items As String
You want to write "Month" to cell A1.  What code will...
Task 2, what is the outer loop? What is the inner loop?
Task 3, How did you define your WarrantyPrice function?
What is a way to code a random number between 0 and 1 in VBA?
Alert!

Advertisement