logo

Crowdly

Browser

Add to Chrome

Questions Bank (1512679 total)

Donat el següent programa

i = 0

while i > 100 :

i = i + 1

print (i)

Què escriuria el programa pel canal de sortida?

0%
0%
0%
❌
0%
View this question
Значення дискримінувальної функції, рівновіддалене від середніх значень функції для кожного класу - це
0%
100%
0%
0%
View this question

Donat el següent programa:

a = int(input(¨Escriu un nombre: ¨))

if a % 2 == 0 :

print (¨primer¨ )

elif a == 3 : 

print (¨segon¨ )

elif a - 5 > 0 : 

print (¨tercer¨ )

else: 

print (¨quart¨ )

Què escriuria el programa pel canal de sortida en cas que l'usuari entrés un 3?

❌
❌
❌
❌
✅
View this question

Donat el següent programa:

def area_triangle(b, h) :

a = b*h//2

return h

base = int(input("Escriu la base del triangle: "))

alcada = int(input("Escriu l'alçada del triangle: "))

area = area_triangle(base, alcada)

print(area)

Què escriuria el programa pel canal de sortida si l'usuari escrivís com a base 3 i alçada 4?

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

Donat el següent programa:

i = 0

while i < 10 :

if i == 3 :

print(9)

i = i +1

Què escriuria el programa pel canal de sortida?

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

Construïu una funció que, donats dos nombres real a i b, retorni el quadrat del màxim de dos valors.

def quadratmax(a, b) :

if a>b :

r = a

else :

r = b

[...]

 

Què hauria d'aparèixer en lloc dels [...]?

 

❌
❌
❌
✅
❌
View this question

Donat el següent programa:

def funcio(x) :

if x > 0 :

x = x +1

if x - x == 0:

x = 2

x = 17

funcio(x)

print (x)

Què escriuria el programa pel canal de sortida?

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

Donat el següent programa:

a = int(input(¨Escriu un nombre: ¨))

if a % 2 != 0 :

print (¨primer¨ )

elif a == 3 : 

print (¨segon¨)

elif a - 5 > 0 : 

print (¨tercer¨ )

else: 

print (¨quart¨ )

Què escriuria el programa pel canal de sortida en cas que l'usuari entrés un 4?

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

Отримано матрицю відстаней для п’яти об’єктів, які характеризуються двома ознаками, a(1,0), b(0,2), c(3,0), d(2,4), e(3,3):

0541713
5013810
4130179
1781702
1310920

Визначити яку відстань використано у розрахунках 

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

Donat el següent programa:

i = 0

while i < 10 :

if i % 3 == 0 :

print(9, end=" ")

i = i + 1

Què escriuria el programa pel canal de sortida?

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