Excel Functions and VBA Programming
Quiz covering Excel functions, VBA programming, macros, and related operations. Includes some Salesforce and SQL questions.
Questions
Find the function that returns the difference between two dates in terms of month.
- dateadd(mon,'01/01/2010',getdate())
- datediff(mon,'01/01/2010',getdate())
- datesub(mm,'01/01/2010',getdate())
- datediff(mm,'01/01/2010',getdate())
Find the functions that aptly convert a field named sys_date with Datetime data type to a string value.
- convert(varchar(10), sys_date,101)
- convert(varchar(11), sys_date)
- convert(varchar(10), sys_date)
- cast(sys_date as varchar(11))
What does the VLOOKUP function do?
- Looks up text that contains "v".
- Checks whether text is the same in one cell as in the next.
- Finds related records.
- None of the above
Which function calculates your monthly mortgage payment?
- PMT (payments)
- NPER (number of periods)
- PV (present value)
- None of the above
The LEN function does what?
- Compares the content in two cells.
- Counts the numbers of characters in a cell.
- Deletes extra spaces in text.
- None of the above
Which function will calculate the number of workdays between 6/9/2004 and 8/21/2004?
- WORKDAY
- DATE
- NETWORKDAYS
- None of the above
Which function converts miles to kilometers, kilograms to pounds, and so on?
- CONVERT
- PRODUCT
- CHANGE
- None of the above
To save $60,000 in 18 years, which function could calculate how much to save each month to end up with that amount?
- FV (future value)
- PV (present value)
- PMT (payment)
- None of the above
What does the SUMIF function do?
- Adds up cell values based on a condition.
- Adds all the numbers in a range of cells
- Returns a subtotal in a list or database
- None of the above
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?
- & (ampersand)
- -2146826259
- (space)
- None of the above
Which function calculates depreciation at the same amount each year over an asset's useful life?
- DB (fixed-declining balance)
- SLN (straight-line depreciation)
- DDB (double-declining)
- None of the above
You need the Insert Function dialog box. How do you get it?
- Right-click a cell, and then click Insert
- Click the Insert menu, and then click Function
- Type = in a cell
- None of the above
Where does the name of the macro appear in the code?
- Between the Sub line and the End Sub lines.
- In the first cell of your data in the spreadsheet.
- After the word "Sub" on the same line.
- None of the above
When is it best to use a Do…Loop?
- When your range of data can grow or shrink.
- When the end of your data range is shown by a specific value or condition.
- When you don't need to loop through every cell.
- All of the above.
If you want a loop to run until it finds a specified value, what type of loop would you use?
- A For Each…Next loop.
- A Do...Loop.
- A Loop-dee-Loop.
- None of the above
When looping through a list in Excel, is it easier to use the Cells property or the Range property?
- The Cells property.
- The Range property.
- Both
- None of the above
Which function would you use to compare cell contents
- LEN
- TRIM
- EXACT
- None of the above
When will you use Apex Logic?
- 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
- 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.
- Option 3
- Option 4
What kind of relationship cannot exist in Salesforce?
- A Custom Object having a Standard Object as Master.
- A standard object having another Standard Object as Lookup
- A standard Object as a detail of a Custom Object
- Option 4