logo

Crowdly

Browser

Add to Chrome

Questions Bank (1492094 total)

Визначити і підкреслити, яким буде результат обчислення логічної функції диз'юнкції, якщо її аргументами є 8 молодших біти двійкового еквіваленту десяткового числа 174
❌
❌
❌
❌
❌
❌
❌
❌
❌
✅
❌
❌
❌
❌
❌
❌
❌
View this question
Вказати всі вірні твердження щодо структури та властивостей визначників:
0%
100%
100%
0%
100%
0%
0%
0%
0%
100%
100%
100%
100%
100%
0%
0%
View this question
In calculate the inverse of .

The answer is an integer number between 0 et 25

If has no inverse, the expected answer is : "no inverse"
View this question
In , solve the equation .

This equation has either no or several solutions.

If this equation has no solution, the answser is 'no solution'.

If this equation has several solutions, the answer is a list of integer numbers, separated with commas and no spaces. For example, the solution set for in is 4,11,18
View this question
In calculate the inverse of .

The answer is an integer number between 0 et 30

If has no inverse, the expected answer is : "no inverse"
View this question

Explain why changing first.room affects only the first workshop, while changing Workshop.organiser affects the value accessed through both workshops. 

Identify which attributes in your explanation are instance attributes and which are class attributes. [2 marks] 

View this question

Consider: 

class Workshop: 

    organiser = "Computing" 

 

    def __init__(self, title, room): 

        self.title = title 

        self.room = room 

 

    def __str__(self): 

        return f"{self.title} in {self.room}" 

 

first = Workshop("Python", "Online") 

second = Workshop(room="Lab 3", title="Web") 

 

first.room = "Lab 1" 

Workshop.organiser = "Engineering" 

 

print(first) 

print(second) 

print(first.organiser) 

print(second.organiser) 

State the exact four lines printed. [2 marks] 

View this question

Explain: 

  • what __init__ does when second is created; 
  • why room="Lab 3" can appear before title="Web" in that call. 

[2 marks] 

View this question

Explain the role of __str__ when Python executes: 

print(first) 

[1 mark] 

View this question

advancement

✅
❌
❌
View this question