logo

Crowdly

Browser

Add to Chrome

ITI0102 Programmeerimise algkursus (2025/2026)

Looking for ITI0102 Programmeerimise algkursus (2025/2026) test answers and solutions? Browse our comprehensive collection of verified answers for ITI0102 Programmeerimise algkursus (2025/2026) at moodle.taltech.ee.

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

Millist meetodit kasutatakse Pythonis klassi instantsi algväärtustamiseks?

0%
0%
0%
View this question

Mida peame panema for tsükli tingimusse, et funktsioon foo() tagastaks False?

def foo():

    for i in ___:

        if i == 5:

            break

        elif i > 5:

            return "Error!"

    else:

        return True

    return False

0%
0%
0%
0%
View this question

Mis prinditakse konsooli, kui järgnev koodijupp tööle panna?

a = [1, 3, 4]

b = a

a.insert(1, 2)

print(b)

0%
0%
0%
View this question
Mis prinditakse konsooli?

word = "kuulilennuteetunneliluuk"[:13]

word = word[5:]

word2 = word[1:4]

word3 = word2[2]

result = word + word2 + word3

print(result)

0%
0%
0%
0%
View this question

Milliste argumentidega funktsioonide foo(a) ja foo_2(b) tulemused on võrdsed?

def foo(a):

   if a.isalpha():

     return True

    elif a.isdigit():

      return False

   return None

def foo_2(b):

   if b > 10:

     return True

    elif b < 0:

      return False

   return None

0%
0%
0%
View this question

Kuidas pääseb ligi Enum liikme nimele, mitte väärtusele?

0%
0%
0%
View this question

Millist spetsiaalset meetodit tuleks klassis üle kirjutada, et objektid oleksid vaikimisi sorteeritavad sorted() funktsiooni abil?

0%
0%
0%
View this question

Mis on @Staticmethodi kasutamise eelised?

class Calculator:

    @Staticmethod

    def add(a, b):

        return a + b

print(Calculator.add(5, 7))
View this question

Mida tähendab, kui muutuja nimi klassis algab ühe alakriipsuga (nt _variable)?

0%
0%
0%
View this question
Mis on kahekordse alakriipsu __ eesmärk muutuja nime ees klassis?

class Rollercoaster:

    def __init__(self):

        self.__current_riders = []

    def add_rider(self, visitor):

        self.__current_riders.append(visitor)

    def clear_riders(self):

        self.__current_riders = []
0%
0%
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!

Browser

Add to Chrome