Excel Functions and VBA Programming

Quiz covering Excel functions, VBA programming, macros, and related operations. Includes some Salesforce and SQL questions.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Find the function that returns the difference between two dates in terms of month.

  1. dateadd(mon,'01/01/2010',getdate())
  2. datediff(mon,'01/01/2010',getdate())
  3. datesub(mm,'01/01/2010',getdate())
  4. datediff(mm,'01/01/2010',getdate())
Question 2 Multiple Choice (Multiple Answers)

Find the functions that aptly convert a field named sys_date with Datetime data type to a string value.

  1. convert(varchar(10), sys_date,101)
  2. convert(varchar(11), sys_date)
  3. convert(varchar(10), sys_date)
  4. cast(sys_date as varchar(11))
Question 3 Multiple Choice (Single Answer)

What does the VLOOKUP function do?

  1. Looks up text that contains "v".
  2. Checks whether text is the same in one cell as in the next.
  3. Finds related records.
  4. None of the above
Question 4 Multiple Choice (Single Answer)

Which function calculates your monthly mortgage payment?

  1. PMT (payments)
  2. NPER (number of periods)
  3. PV (present value)
  4. None of the above
Question 5 Multiple Choice (Single Answer)

The LEN function does what?

  1. Compares the content in two cells.
  2. Counts the numbers of characters in a cell.
  3. Deletes extra spaces in text.
  4. None of the above
Question 6 Multiple Choice (Single Answer)

Which function will calculate the number of workdays between 6/9/2004 and 8/21/2004?

  1. WORKDAY
  2. DATE
  3. NETWORKDAYS
  4. None of the above
Question 7 Multiple Choice (Single Answer)

Which function converts miles to kilometers, kilograms to pounds, and so on?

  1. CONVERT
  2. PRODUCT
  3. CHANGE
  4. None of the above
Question 8 Multiple Choice (Single Answer)

To save $60,000 in 18 years, which function could calculate how much to save each month to end up with that amount?

  1. FV (future value)
  2. PV (present value)
  3. PMT (payment)
  4. None of the above
Question 9 Multiple Choice (Single Answer)

What does the SUMIF function do?

  1. Adds up cell values based on a condition.
  2. Adds all the numbers in a range of cells
  3. Returns a subtotal in a list or database
  4. None of the above
Question 10 Multiple Choice (Single Answer)

You can use a function to combine text from two cells into one cell. -But you can use an operator to do the same thing. Which operator is that?

  1. & (ampersand)
  2. -2146826259
  3. (space)
  4. None of the above
Question 11 Multiple Choice (Single Answer)

Which function calculates depreciation at the same amount each year over an asset's useful life?

  1. DB (fixed-declining balance)
  2. SLN (straight-line depreciation)
  3. DDB (double-declining)
  4. None of the above
Question 12 Multiple Choice (Single Answer)

You need the Insert Function dialog box. How do you get it?

  1. Right-click a cell, and then click Insert
  2. Click the Insert menu, and then click Function
  3. Type = in a cell
  4. None of the above
Question 13 Multiple Choice (Single Answer)

Where does the name of the macro appear in the code?

  1. Between the Sub line and the End Sub lines.
  2. In the first cell of your data in the spreadsheet.
  3. After the word "Sub" on the same line.
  4. None of the above
Question 14 Multiple Choice (Single Answer)

When is it best to use a Do…Loop?

  1. When your range of data can grow or shrink.
  2. When the end of your data range is shown by a specific value or condition.
  3. When you don't need to loop through every cell.
  4. All of the above.
Question 15 Multiple Choice (Single Answer)

If you want a loop to run until it finds a specified value, what type of loop would you use?

  1. A For Each…Next loop.
  2. A Do...Loop.
  3. A Loop-dee-Loop.
  4. None of the above
Question 16 Multiple Choice (Single Answer)

When looping through a list in Excel, is it easier to use the Cells property or the Range property?

  1. The Cells property.
  2. The Range property.
  3. Both
  4. None of the above
Question 17 Multiple Choice (Single Answer)

Which function would you use to compare cell contents

  1. LEN
  2. TRIM
  3. EXACT
  4. None of the above
Question 18 Multiple Choice (Single Answer)

When will you use Apex Logic?

  1. Zip Code object stores all the zip information. For an Object, when a zip is entered, it should be validated against the available Zip Codes
  2. User places an Order, the details of which are checked in runtime against details in the database w.r.t . Price and Quantity and if everything is Ok, the order details are placed in another object.
  3. Option 3
  4. Option 4
Question 19 Multiple Choice (Single Answer)

What kind of relationship cannot exist in Salesforce?

  1. A Custom Object having a Standard Object as Master.
  2. A standard object having another Standard Object as Lookup
  3. A standard Object as a detail of a Custom Object
  4. Option 4