Search Header Logo

Python / Datnes, klasses

Authored by Ivans Burenkovs

Computers

Professional Development

Used 6+ times

Python / Datnes, klasses
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Kā lasīt datus no faila Python valodā?

file.open(“data.txt”, “r”)

file.read(data)

Data = file.input()

= input(“File:”)

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

Kas ir myfunc?

Klase

Property / īpašība

Metode

Objekts

3.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image

Vai Python ir

objektorientētā valoda?

4.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Media Image

Izvēlies pareizo, ja num = 5:

10

25

5

55

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

Pareizais veids, kā inicializēt klasi "dog" ir...

Dog()

Dog.__init__("Rufus", 3)

Dog("Rufus", 3)

Dog.create("Rufus", 3)

6.

MULTIPLE CHOICE QUESTION

1 min • 6 pts

Funkcija, kas atrodas klasē ir...

klases funkcija

metode

izsaucamais mainīgais lielums

rūpnīca

7.

MULTIPLE CHOICE QUESTION

1 min • 7 pts

Media Image

Kāds ir rezultāts?

bobo.walk()

AttributeError: 'JackRussellTerrier' object has no attribute 'walk'

*walking*

Woof!

Arff!

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?