logo

Crowdly

Browser

Add to Chrome

L15.2025 - Data Modelling (2025/2026)

Looking for L15.2025 - Data Modelling (2025/2026) test answers and solutions? Browse our comprehensive collection of verified answers for L15.2025 - Data Modelling (2025/2026) at moodle.lisboa.ucp.pt.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Suppose you want to write a sub to calculate the commission rate of a sales employee based on the sales amount. If the sales amount is greater than 10,000 Euros, the commission rate is 7%. If the sales amount is smaller than or equal to 10, 000 Euros but greater than 5,000, then the commission rate is 5%. Otherwise, the commission rate is 3%. Which of the following code blocks can be inputted in the space in below sub (where red box is) to calculate the commission rate (multiple answers can be selected)?

[Expected time to answer: 3 mins]

0%
0%
0%
0%
0%
View this question

Given the spreadsheet setup shown below,

what is the value of x after the following line of code is executed?

x=Selection.Cells(2,3).Value

[Expected time to answer: 2 mins]

View this question

The

following VBA procedure is intended to calculate and display the average of

three test scores entered by the user.

Identify all the errors (syntax or logic) and write the correct versions so

that the program works as intended.

[Expected time to answer: 5 mins]

View this question

Assume that the flowchart segment below is

correctly implemented on VBA. Select the

correct

answers below (you can select

more than one).

[Expected time to answer: 2 mins]

View this question

What will be the value of the variable

“sellingPrice” displayed in the message box when the sub below is run?

[Expected time to answer: 2 mins]

View this question

Write a function named “sumSquares”, that takes a positive

integer

n

and calculates the sum of the squares of all integers from 1

to

n.

That is, the function should calculate:

For example, if a user inputs =sumSquares(3) into a cell,

the result should be 14 (

).

[Expected time to answer: 12 mins]

View this question

Which

of the code segments correctly represents the flowchart segment shown below?

[Expected time to answer: 3 mins]

0%
0%
0%
0%
View this question

Consider

the code below. What will be the value of x and y when for-next loop ends?

[Expected time to answer: 3 mins]

View this question

Write a subroutine named “TaxCalculator” to:

(A) Ask the user for the unit price of a product, the

quantity purchased (which must be a whole amount, such as 5, 12, 30), the tax

rate (as a percentage, taking values from 0 to 100) with an input box.

(B) Calculate:

gross total = unit price x quantity

purchased

tax amount = gross total x tax rate / 100

(C) Display gross total in cell A1 and tax amount in cell A2

of the active worksheet.

Make sure to include “Option Explicit” statement before

the sub.

[Expected time to answer: 7 mins]

View this question

Select the correct statements (you can select multiple). 

[Expected time to answer: 2 mins]

View this question

Want instant access to all verified answers on moodle.lisboa.ucp.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome