logo

Crowdly

L15.4292 - Data Modelling (2024/2025)

Looking for L15.4292 - Data Modelling (2024/2025) test answers and solutions? Browse our comprehensive collection of verified answers for L15.4292 - Data Modelling (2024/2025) 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!

Qual o output do seguinte programa supondo que é inicialmente chamado o procedimento P?

Sub P1(ByRef Y as integer)

Y=Y MOD 10

end sub

Sub P

Dim Y as integer

Y=17

call P1(Y)

call msgbox(Y)

End sub

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

Qual o output do seguinte programa supondo que é inicialmente chamado o procedimento P?

Sub P1( ByRef X as string)

X = "CA" & X & "LICA"

end sub

Sub P

dim C as string

C = "TO"

call P1(C)

call msgbox(INSTR(C,"TO"))

end sub

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

Qual o output do seguinte programa supondo que é inicialmente chamado o procedimento P?

sub P1(ByVal X as integer, ByRef Y as string)

Y = chr(asc(Y)-X)

end sub

sub P

Dim A as string

A= "D"

call P1(2,A)

call msgbox(asc(A)-asc("A"))

end sub

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

Qual o output do seguinte programa supondo que é inicialmente chamado o procedimento P?

Function f(ByVal X As Integer) As Integer

f = X \ 3 Mod 5

End Function

Sub P()

Dim Y As Integer

Y = f(-17)

Call MsgBox(Y)

End Sub

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

Qual o output do seguinte troço de programa?

FOUND = FALSE

X=1

Y=2

do

X = X \ 2 + Y

Y = Y + 1

FOUND = X = Y

loop until FOUND

call msgbox(X)

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

5.

Qual o output do seguinte troço de programa?

Y=5

for X=1 to 3

Y = Y + Y \ X

next

call msgbox(Y)

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

Qual o output do seguinte troço de programa?

x=1

a=3

for i=x to x+1

  a=a*i

next

call msgbox(a)

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

1.

Qual o output do seguinte troço de programa?

X=2

Y=X+4

X=X-Y

Y=2*Y+X

call msgbox(Y)

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

5.

Qual o valor da seguinte expressão?

LEN("CARA" & "MELO") \ -5

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

4.

Qual o valor da seguinte expressão?

12.5E-2*INT(1000.3)

100%
0%
0%
0%
0%
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!