Evaluate and identify the reason why Lilian Ngoyi may have been swiftly acknowledged and be elected as president of the ANC Women’s League.
Oliver Tambo studied science at Fort Hare, where he first met _______________ , as a fellow member of the Students Christian Association (SCA).
Select the TWO figures that were directly involved in law.
Desmond Tutu had dreams of a career, but could not afford the training and instead became a school teacher.
List TWO values mentioned in the lesson that should be reflected in the leaders we elect in a democratic government.
Identify two people on this list that are NOT Nobel Peace Prize winners.
P7.Considera el següent fragment de codi
Quin mètode d'assertion s'utilitzaria per verificar que els arrays arrayEsperat i arrayActual són iguals?
String[] arrayEsperat = {"gat", "gos", "ocell"};String[] arrayActual = {"gat", "gos", "peix"}; |
P9. Considera la següent classe Utils amb un mètode esPar que retorna cert si un nombre és parell i fals si és imparell:
Per provar que el mètode esPar funciona correctament, quin mètode d'assertion hauríem d'utilitzar?
| public class Utils { public static boolean esPar(int numero) { return numero % 2 == 0; }} |
P8. Suposa que tens la següent classe Calculadora amb un mètode sumar:
I volem provar que el mètode sumar funciona correctament. Quin mètode d'assertion hauríem d'utilitzar per aquest propòsit?
| public class Calculadora { public int sumar(int a, int b) { return a + b; }} |