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!

Mis on väljund? 

nums = [0, 1, 2] 

x_tuple = (3, nums, 4) 

nums.append(5) 

print(x_tuple)

0%
0%
0%
0%
View this question

Mis on selle tsükli probleem?

a = "0"

b = a * 2

while b > 0:

    b += 1

0%
0%
View this question

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

class Apple: 

def __init__(self, variety):

self.variety = variety

def __repr__(self):

return f"Apple(variety='{self.variety}')"

class Orange:

def __init__(self, variety):

self.variety = variety

def __eq__(self, other):

return isinstance(other, Apple) and self.variety == other.variety

if __name__ == '__main__':

apple = Apple("Gala")

orange = Orange("Navel")

print(apple)

print(orange == apple)

0%
0%
0%
View this question

See koodijupp prindib konsooli "Hi!":

print("Hi", end="!")

Aga milline on end parameetri vaikimisi väärtus?

0%
0%
0%
View this question

Millised järgnevatest tehetest annavad tulemuseks True?

0%
0%
0%
View this question

Mis kuvatakse ekraanile, kui järgnev koodijupp tööle panna?

text = "234str#k^&93"

new_text = ""

for char in text:

   if char.isalnum():

       new_text += char

print(new_text)

0%
0%
0%
0%
View this question

Mis on antud koodijupi tulemus?

def find_result(num: int):

    if num > 0:

        return "positive"

    elif num < 0:

        return "negative"

print(find_result(0))

0%
0%
0%
View this question

Mida saab kasutada nii sõne kui ka järjendi puhul?

0%
0%
0%
0%
View this question

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

def foo():

    for i in ___:

        if i == 5:

            break

        elif i > 5:

            return "Error!"

    else:

        return True

    return False

0%
0%
View this question

Olgu meil järgnev kood:

class Engine:

    def __init__(self, hp, type):

        self.hp = hp

        self.type = type

    def start(self):

        print(f"{self.type} engine with {self.hp} horsepower started")

class Car:

    def __init__(self, make, model, engine):

        self.make = make

        self.model = model

        self.engine = engine

    def start(self):

        print(f"starting {self.make} {self.model}")

        self.engine.start()

car = Car("Audi", "A7", Engine(280, "V6"))

car.start()

Mis prinditakse konsooli?

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