Professional Documents
Culture Documents
Nom:
Programmation Oriente Objet
qcm1, Version: A
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
9. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: B
Carte dtudiant:
10
11
12
13
14
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche A:g()
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
15
4. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
Nom:
Programmation Oriente Objet
qcm1, Version: C
Carte dtudiant:
10
11
12
13
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
14
15
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
13. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche A:g()
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
Nom:
Programmation Oriente Objet
qcm1, Version: D
Carte dtudiant:
10
11
12
13
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
14
15
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
10. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: E
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Il affiche f de A puis g de A
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
11. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche A:g()
(c)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: F
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
1. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
Nom:
Programmation Oriente Objet
qcm1, Version: G
Carte dtudiant:
10
11
12
13
14
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
(c)
Il affiche A:g()
15
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
8. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Il affiche f de A puis g de A
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: H
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
1. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
Nom:
Programmation Oriente Objet
qcm1, Version: I
Carte dtudiant:
10
11
12
13
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
14
15
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
5. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche A:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: J
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
5. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche f de A puis g de A
Nom:
Programmation Oriente Objet
qcm1, Version: K
Carte dtudiant:
10
11
12
13
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche A:g()
14
15
4. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: L
Carte dtudiant:
10
11
12
13
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
(c)
Il affiche A:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
14
15
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
9. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
Nom:
Programmation Oriente Objet
qcm1, Version: M
Carte dtudiant:
10
11
12
13
14
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
15
4. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
Nom:
Programmation Oriente Objet
qcm1, Version: N
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
3. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche A:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
Nom:
Programmation Oriente Objet
qcm1, Version: O
Carte dtudiant:
10
11
12
13
14
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
15
4. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
(c)
Il affiche A:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
Nom:
Programmation Oriente Objet
qcm1, Version: P
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
1. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
Il affiche f de A puis g de A
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: Q
Carte dtudiant:
10
11
12
13
14
15
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
3. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche A:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: R
Carte dtudiant:
10
11
12
13
14
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
15
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche f de A puis g de A
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
(c)
Il affiche A:g()
14. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
Nom:
Programmation Oriente Objet
qcm1, Version: S
Carte dtudiant:
10
11
12
13
14
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
15
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche A:g()
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1:
(b)
Il affiche f de A puis g de A
15. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
Nom:
Programmation Oriente Objet
qcm1, Version: T
Carte dtudiant:
10
11
12
13
14
Rponse(s)
Bonne rponse=2pt; mauvaise rponse ou rponse incomplte =-1pt; pas de rponse=0pt
(b)
(c)
Il affiche A:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche B:g()
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
15
class Main{
public static void main(String[] args){F f=new Fbis(); ((F)f).f(); }
}
Trouver la bonne rponse:
(a)
(b)
il boucle lexcution
(c)
(d)
(b)
Il affiche A:g()
(c)
Il affiche B:g()
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:f()
(e)
Il affiche B:g()
(b)
Il affiche f de A puis g de A
(b)
Il affiche C:g()
(c)
Il affiche A:g()
(d)
Il affiche B:g()
11. class E {
void f(){System.out.print("E.f() ");g();}
void g(){System.out.print("E.g() ");}
}
class Main{
public static void main(String[] args){E e1=new Ebis(); e1.f(); ((E)e1).f(); ((Ebis)e1).f(); }
}
Trouver la ou les bonnes rponses :
(a)
(b)
(c)
(d)
(e)
class B extends A{
String s="B";
void f(String s1){super.f(s+" "+s1);}
}
(b)
Affiche C C C X
(c)
Affiche A B C X
(d)
Affiche A X
(b)
Il affiche C:g()
(c)
Il affiche A:f()
(d)
Il affiche B:g()
(b)
(c)
Il affiche C:g()
(d)
Il affiche A:g()
(e)
Il affiche B:g()
(b)
Il affiche 1,1:1,1:
(c)
Il affiche 2,2:1,1: