logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1580042 total)

Which of the following is not a property of a physical change?
0%
100%
0%
0%
Переглянути це питання
Miscible liquids will
❌
❌
❌
✅
Переглянути це питання
Ethanol evaporating from a shallow dish is a chemical change.
0%
100%
Переглянути це питання
Temperature is the ________________________
0%
0%
0%
0%
Переглянути це питання
When a liquid boils:
0%
0%
0%
0%
Переглянути це питання
Which process can be used to separate iron filings from baby powder?
0%
0%
100%
0%
Переглянути це питання
Water has a higher boiling point than ethanol because water has _____
0%
0%
0%
0%
Переглянути це питання
The bending of a metal and the rusting of a metal are regarded respectively, as
❌
✅
❌
❌
Переглянути це питання

Considera la següent funció getInstance que retorna la mateixa instància d'un objecte cada vegada que es crida:

Per provar que el mètode getInstance retorna sempre la mateixa instància, quin mètode d'assertion hauríem d'utilitzar?

public class Singleton {

    public static Singleton instance;

    private Singleton() {}

    public static Singleton getInstance() {

        if (instance == null) {

            instance = new Singleton();

        }

        return instance;

    }

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

Considera la següent funció getValor que pot retornar null si un element no es troba en un mapa:

Per provar que el mètode getValor retorna null quan la clau no existeix en el mapa, quin mètode d'assertion hauríem d'utilitzar?

public class MapUtils {

        public static Object getValor(Map<String, Object> mapa, String clau) {

             return mapa.get(clau);

    }

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