logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1538492 total)

Donada la següent classe Graph, quina seria la manera correcta d'implementar la funció add_node que afegeix un node al graf?

class Graph:

    '''

    Constructor que crea un graf buit

    @param: id_directed: True si el graf és dirigit, False si no

    '''

    def __init__(self, is_directed=False) -> None:

        self.nodes = list()

        self.is_directed = is_directed

    '''

    Afegeix un node al graf.

    A OMPLIR (s'haurà de treure el pass i substituir-lo pel codi)

    @param: node: Node a afegir

    '''

    def add_node(self, node):

        # A implementar

        pass

0%
100%
0%
0%
Переглянути це питання

Which of the following are more likely to be observed using the Doppler method? 

0%
0%
0%
0%
0%
0%
Переглянути це питання

Who was the first woman to receive a Ph.D. in psychology?

0%
0%
0%
100%
Переглянути це питання

Niech TD = (U, C, D), to tablica decyzyjna,

gdzie C = {a, b, c, d, e} to zbiór atrybutów warunkowych, a D={f} to atrybut

decyzyjny. 

Niech zbiór reduktów to Read(A) = {{a, c, e}, {c, d, e}, {b, c, e}}.

Wówczas

rdzeń zbioru atrybutów A to: 

0%
0%
0%
0%
Переглянути це питання

A planet made almost entirely of hydrogen compounds would be considered a 

❌
✅
Переглянути це питання

Journal article: Which of the following statements is NOT true?

0%
0%
0%
0%
Переглянути це питання
Assume the 5 state process model. Suppose 15 processes have been admitted from the "new" state and are all executing on a system with a single CPU, where 12 of these processes make I/O requests. Assume that at any given time, one of these processes is assigned to the CPU. Based only on this information, before any of these processes terminate, what is the minimum number of processes that can be in the:

1) ready state;

2) blocked state?

0%
0%
0%
0%
0%
Переглянути це питання

The spectrum of a hot Jupiter shows absorption bands due to the presence of water in the atmosphere of the planet. Why is it unlikely that we would observe liquid water on such a planet? 

100%
0%
0%
Переглянути це питання

Is it easier or more difficult to detect the transit of a planet like the Earth around a star that is smaller than the Sun? 

100%
0%
Переглянути це питання

If the occipital lobe of the brain is stimulated, a person would MOST likely report _____.

0%
0%
100%
0%
Переглянути це питання