logo

Crowdly

Browser

Add to Chrome

IDK0044 IT alused II (kevad 2025)

Looking for IDK0044 IT alused II (kevad 2025) test answers and solutions? Browse our comprehensive collection of verified answers for IDK0044 IT alused II (kevad 2025) at moodle.taltech.ee.

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

Failis file.txt on järgmised read:

Hello world!

I am Python!

Mis väljastatakse selle skripti täitmisel?

file = open( 'file.txt', 'r' )

a = file.read(5)

print(a)

file.close()

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

Failis file.txt on järgmised read:

Hello world!

I am Python!

Mis on failis pärast järgmise skripti täitmist?

file = open( 'file.txt', 'w' )

file.write( 'I am a programming language!' )

file.close()

0%
0%
0%
0%
View this question

Failis file.txt on järgmised read:

Hello world!

I am Python!

Mis väljastatakse selle skripti täitmisel?

file = open( 'file.txt', 'r' )

a = file.read(6)

b = file.read(9).split()

print(b)

file.close()

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

Failis file.txt on järgmised read:

Hello world!

I am Python!

Mis on failis pärast järgmise skripti täitmist?

file = open( 'file.txt', 'r+' )

a = file.read().split()

file.write( 'Who are you?' )

file.close()

0%
0%
0%
0%
View this question

Failis file.txt on järgmised read:

Hello world!

I am Python!

Mis on failis pärast järgmise skripti täitmist?

file = open( 'file.txt', 'r+' )

file.write( 'Who are you?' )

file.close()

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

Failis file.txt on järgmised read:

Hello world!

I am Python!

Mis väljastatakse selle skripti täitmisel?

file = open( 'file.txt' )

a = file.read()

print(a)

file.close()

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

Failis file.txt on järgmised read:

Hello world!

I am Python!

Mis väljastatakse selle skripti täitmisel?

file = open( 'file.txt', 'r' )

a = file.read()

b = file.readlines()

print(a)

print(b)

file.close()

0%
0%
0%
0%
View this question

g = [1, 'arv', [34, 18.2]]

c = len(g)

Mis on muutuja c väärtus?

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

Loendis loend on hulk andmeid.

Mis on muutuja tulem väärtus pärast selle Pythoni skripti täitmist?

s = 0

n = 0

tulem = 0

for k in range(len(loend)):

    try:

        s += loend[k]

        n += 1

        tulem = s/n

    except:

        continue

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

Loendis loend on hulk andmeid. Eeldame, et andmed on sobivad, st skripti täitmisel ei teki viga.

Mis on muutuja tulem väärtus pärast selle Pythoni skripti täitmist?

tulem = 0

for k in range(1, len(loend), 2):

        tulem += 1

0%
0%
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