100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

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

Beoordeling
-
Verkocht
-
Pagina's
20
Cijfer
A+
Geüpload op
27-08-2024
Geschreven in
2024/2025

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

Instelling
CGFM - Certified Government Financial Manager
Vak
CGFM - Certified Government Financial Manager










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
CGFM - Certified Government Financial Manager
Vak
CGFM - Certified Government Financial Manager

Documentinformatie

Geüpload op
27 augustus 2024
Aantal pagina's
20
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

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

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Denyss Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
24
Lid sinds
1 jaar
Aantal volgers
3
Documenten
6307
Laatst verkocht
6 dagen geleden
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 beoordelingen

5
2
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen