Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Examen

AP Computer Science A Unit 9 Progress Check_ MCQ _ QUESTIONS WITH CORRECT ANSWERS..pdf

Note
-
Vendu
-
Pages
20
Grade
A+
Publié le
27-08-2024
Écrit en
2024/2025

AP Computer Science A Unit 9 Progress Check_ MCQ _ QUESTIONS WITH CORRECT ANSWERS..pdf

Établissement
CGFM - Certified Government Financial Manager
Cours
CGFM - Certified Government Financial Manager










Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
CGFM - Certified Government Financial Manager
Cours
CGFM - Certified Government Financial Manager

Infos sur le Document

Publié le
27 août 2024
Nombre de pages
20
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

8/27/24, 5:54 PM
_Ale
Jeremiah
AP Computer Science A Unit 9 Progress Check: MCQ
Practice questions for this set


Learn 1/7 Study with Learn




C. Object myBook is created using the one-argument Book constructor, which uses
super to set myBook's title attribute to "Adventure Story". Object yourBook is created
using super to call to the Publication no-argument constructor to set yourBook's title
attribute to "Generic".



Choose matching term




Consider the following class declarations.
public class Publication
{
private String title;

public Publication()
{
title = "Generic";
}

public Publication(String t)
{
title = t;
}
}

1
public class Book extends Publication
{
public Book()
{
AP Computer super();A
Science Unit 9 Progress Check: MCQ
}




1/20

,8/27/24, 5:54 PM


public Book(String t)
{
super(t);
}
}
The following code segment appears in a method in another class.
Book myBook = new Book("Adventure Story"); // Line 1
Book yourBook = new Book(); // Line 2
Which of the following best describes the result of executing the code segment?




Consider the following classes.
public class Bird
{
public void sing()
{
System.out.println("Cheep");
}
}

public class Duck extends Bird
{
public void sing()
{
System.out.println("Quack");
}
}

2 public class Chicken extends Bird
{
// No methods defined
}

public class Rooster extends Chicken
{
public void sing()
{
System.out.println("Cockadoodle doo");
}
}
The following statement appears in a method in another class.
someBird.sing();
Under which of the following conditions will the statement compile and run without error?
I. When someBird has been declared as type Duck
II. When someBird has been declared as type Chicken
III. When someBird has been declared as type Rooster




AP Computer Science A Unit 9 Progress Check: MCQ

2/20

, 8/27/24, 5:54 PM
Consider the following class declarations.
public class Person
{
public void laugh()
{
System.out.print("Hahaha");
}
}

public class EvilPerson extends Person
{
public void laugh()
{
3 System.out.print("Mwahahaha");
}
}

public class Henchman extends EvilPerson
{
// No methods defined
}
The following code segment appears in a method in another class.
alice.laugh();
Under which of the following conditions will the code segment print "Mwahahaha" ?
I. When alice has been declared as type Person
II. When alice has been declared as type EvilPerson
III. When alice has been declared as type Henchman




Consider the following class declarations.
public class Dog
{
private String name;

public Dog()
{
name = "NoName";
}
}

4 public class Poodle extends Dog
{
private String size;

public Poodle(String s)
{
size = s;
}
}
The following statement appears in a method in another class.
Poodle myDog = new Poodle("toy");
Which of the following best describes the result of executing the statement?



Don't know?




Terms in this set (18)
AP Computer Science A Unit 9 Progress Check: MCQ

3/20
€7,01
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Denyss Teachme2-tutor
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
24
Membre depuis
1 année
Nombre de followers
3
Documents
6307
Dernière vente
6 jours de cela
Classic Writers

I am a professional writer/tutor. I help students with online class management, exams, essays, assignments and dissertations. Improve your grades by buying my study guides, notes and exams or test banks that are 100% graded

5,0

2 revues

5
2
4
0
3
0
2
0
1
0

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions