logo

Crowdly

ITI0202 Programmeerimise põhikursus (2025 kevad)

Looking for ITI0202 Programmeerimise põhikursus (2025 kevad) test answers and solutions? Browse our comprehensive collection of verified answers for ITI0202 Programmeerimise põhikursus (2025 kevad) at moodle.taltech.ee.

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

Builder muster võimaldab jätta välju vajadusel null väärtuse peale, ilma seda eraldi konstruktoris välja kirjutamata.

View this question
Factory meetod annab kliendile teada, milline konkreetne toode on tegelikult loodud.
View this question

Millised väited pärilikkuse kohta on korrektsed?

0%
0%
View this question

Millega on tegemist?

int changeName(String firstName, String secondName);

int changeName(String firstName);

0%
0%
0%
0%
View this question
Mida ütleb DIP (The Dependency-Inversion Principle)?
0%
0%
0%
View this question

Mis omadused on iseloomulikud Factory disainimustrile?

import java.util.List;

import java.util.ArrayList;

class Pet {

private static List<Pet> pets = new ArrayList<Pet>();

/*

Some other stuff...

*/

private Pet() {}

public static Pet getPet() {

if (pets.size() == 10) {

return null;

}

Pet p = new Pet();

pets.add(p);

return p;

}

}

0%
View this question
Vali õige väide.
0%
0%
0%
0%
View this question

Mis on peamine eesmärk Factory patterni kasutamisel?

0%
0%
0%
View this question

Mis on abstraktse klassi ja liidese erinevus?

0%
0%
0%
0%
View this question

Mis on programmi väljund?

public class Main {

public static void main(String[] args) {

int a = 20;

int b = 11;

if (!(b > a) && (b == a || a > b)) {

System.out.println("B");

} else if (!(a < b) || a > b) {

System.out.println("A");

} else {

System.out.println("AB");

}

}

}

0%
View this question

Want instant access to all verified answers on moodle.taltech.ee?

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