logo

Crowdly

Browser

Add to Chrome

Questions Bank (1444262 total)

Si tenim el

següent codi:

 

@dataclass

class Vehicle():

    _color: str

    _rodes: int

 

@dataclass

class Cotxe(Vehicle):

    _velocitat_max: int

    _potencia: int

Com crearies una instància de la classe Cotxe?

0%
❌
0%
0%
View this question

Quina de les següents declaracions és una classe

derivada de la classe Vehicle:

0%
0%
0%
0%
View this question

Respecte a les classes derivades:

0%
0%
0%
0%
View this question

Selecciona les

opcions correctes respecte l’

herència en Programació Orientada a Objectes (POO):

❌
✅
❌
✅
View this question

Ce afișează următorul cod?

int[][] matrix = new int[2][2];

System.out.println(matrix[0][1]);
0%
0%
100%
View this question

Ce metodă poate fi folosită pentru a sorta un tablou bidimensional după coloana 0?

0%
100%
0%
View this question

Cum poți șterge un tablou bidimensional?

100%
0%
0%
View this question

Care dintre următoarele opțiuni inversează un tablou bidimensional?

0%
0%
0%
View this question

Ce afișează următorul cod?

int[][] matrix = new int[2][3];

System.out.println(matrix.length);
0%
0%
0%
View this question

Ce afișează următorul cod?

int[][] matrix = new int[3][3];

System.out.println(Arrays.toString(matrix));
0%
0%
0%
View this question