Full Big Java Early Objects 5Th Edition Horstmann Test Bank Online PDF All Chapter

Download as pdf or txt
Download as pdf or txt
You are on page 1of 59

Big Java Early Objects 5th Edition

Horstmann Test Bank


Visit to download the full and correct content document: https://testbankdeal.com/dow
nload/big-java-early-objects-5th-edition-horstmann-test-bank/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...

Big Java Early Objects 5th Edition Horstmann Solutions


Manual

https://testbankdeal.com/product/big-java-early-objects-5th-
edition-horstmann-solutions-manual/

Big Java Late Objects 1st Edition Horstmann Solutions


Manual

https://testbankdeal.com/product/big-java-late-objects-1st-
edition-horstmann-solutions-manual/

Java How to Program Early Objects 11th Edition Deitel


Test Bank

https://testbankdeal.com/product/java-how-to-program-early-
objects-11th-edition-deitel-test-bank/

Starting Out with Java Early Objects 6th Edition Gaddis


Test Bank

https://testbankdeal.com/product/starting-out-with-java-early-
objects-6th-edition-gaddis-test-bank/
Java How to Program Early Objects 10th Edition Deitel
Test Bank

https://testbankdeal.com/product/java-how-to-program-early-
objects-10th-edition-deitel-test-bank/

Starting Out with Java Early Objects 6th Edition Gaddis


Solutions Manual

https://testbankdeal.com/product/starting-out-with-java-early-
objects-6th-edition-gaddis-solutions-manual/

Java How to Program Early Objects 11th Edition Deitel


Solutions Manual

https://testbankdeal.com/product/java-how-to-program-early-
objects-11th-edition-deitel-solutions-manual/

Java How to Program Early Objects 10th Edition Deitel


Solutions Manual

https://testbankdeal.com/product/java-how-to-program-early-
objects-10th-edition-deitel-solutions-manual/

Starting Out with Java From Control Structures through


Objects 5th Edition Tony Gaddis Test Bank

https://testbankdeal.com/product/starting-out-with-java-from-
control-structures-through-objects-5th-edition-tony-gaddis-test-
bank/
Chapter 10: Interfaces
Test Bank

Multiple Choice

1. Which of the following statements about a Java interface is NOT true?


a) A Java interface defines a set of methods that are required.
b) A Java interface must contain more than one method.
c) A Java interface specifies behavior that a class will implement.
d) All methods in a Java interface must be abstract.

Answer: b

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: Which statement about a Java interface is NOT true?
Difficulty: Medium

2. A method that has no implementation is called a/an ____ method.


a) interface
b) implementation
c) overloaded
d) abstract

Answer: d

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: What is a method with no implementation called?
Difficulty: Easy

3. Which statement about methods in an interface is true?


a) All methods in an interface are automatically private.
b) All methods in an interface are automatically public.
c) All methods in an interface are automatically static.
d) All methods in an interface must be explicitly declared as private or public.

Answer: b

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: Which statement about methods in an interface is true?
Difficulty: Medium
4. Which of the following statements about abstract methods is true?
a) An abstract method has a name, parameters, and a return type, but no code in the body
of the method.
b) An abstract method has parameters, a return type, and code in its body, but has no
defined name.
c) An abstract method has a name, a return type, and code in its body, but has no
parameters.
d) An abstract method has only a name and a return type, but no parameters or code in its
body.

Answer: a

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: Which statement about abstract methods is true?
Difficulty: Hard

5. Which of the following statements about an interface is true?


a) An interface has methods and instance variables.
b) An interface has methods but no instance variables.
c) An interface has neither methods nor instance variables.
d) An interface has both public and private methods.

Answer: b

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: Which statement about an interface is true?
Difficulty: Medium

6. Which of the following statements about interfaces is NOT true?


a) Interfaces can make code more reusable.
b) Interface types can be used to define a new reference data type.
c) Interface types can be used to express common operations required by a service.
d) Interfaces have both private and public methods.

Answer: d

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: Which statement about interfaces is NOT true?
Difficulty: Medium

7. To use an interface, a class header should include which of the following?


a) The keyword extends and the name of an abstract method in the interface
b) The keyword extends and the name of the interface
c) The keyword implements and the name of an abstract method in the interface
d) The keyword implements and the name of the interface

Answer: d

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: To use an interface, what must a class header include?
Difficulty: Medium

8. ____ can reduce the coupling between classes.


a) Static methods
b) Abstract methods
c) Interfaces
d) Objects

Answer: c

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: ____ can reduce the coupling between classes.
Difficulty: Easy

9. Consider the following code snippet:


public class Inventory implements Measurable
{
. . .
public double getMeasure();
{
return onHandCount;
}
}

Why is it necessary to declare getMeasure as public ?


a) All methods in a class are not public by default.
b) All methods in an interface are private by default.
c) It is necessary only to allow other classes to use this method.
d) It is not necessary to declare this method as public.

Answer: a

Section Reference: Common Error 9.1


Title: Why is it necessary to declare getMeasure as public?
Difficulty: Hard
10. Which of the following statements about interfaces is NOT true?
a) Interfaces can make code more reusable.
b) An interface provides no implementation.
c) A class can implement only one interface type.
d) Interfaces can reduce the coupling between classes.

Answer: c

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: Which statement about interfaces is NOT true?
Difficulty: Medium

11. ____ methods must be implemented when using an interface.


a) Abstract.
b) Private.
c) Public.
d) Static

Answer: a

Section Reference: 10.1 Using Interfaces for Algorithm Reuse


Title: ____ methods must be implemented when using an interface.
Difficulty: Easy

12. Suppose you are writing an interface called Resizable, which includes one void
method called resize.

public interface Resizable


{
_________________________
}

Which of the following can be used to complete the interface declaration correctly?

a) private void resize();


b) protected void resize();
c) void resize();
d) public void resize() { System.out.println("resizing ..."); }

Answer: c

Title: Identify correct method declaration in interface


Difficulty: Easy
Section Reference 1: 10.1 Using Interfaces for Algorithm Reuse
13. Consider the following declarations:

public interface Encryptable


{
void encrypt(String key);
}

public class SecretText implements Encryptable


{
private String text;

_____________________________
{
// code to encrypt the text using encryption key goes here
}
}

Which of the following method headers should be used to complete the SecretText
class?

a) public void encrypt()


b) public void encrypt(String aKey)
c) public String encrypt(String aKey)
d) void encrypt(String aKey)

Answer: b

Title: Identify correct method header to use when implementing interface


Difficulty: Medium
Section Reference 1: 10.1 Using Interfaces for Algorithm Reuse

14. Consider the following code snippet:


public class Inventory implements Measurable
{
. . .
double getMeasure();
{
return onHandCount;
}
}

What is wrong with this code?


a) The getMeasure() method must be declared as private.
b) The getMeasure() method must include the implements keyword.
c) The getMeasure() method must be declared as public.
d) The getMeasure() method must not have any code within it.
Answer: c

Section Reference: Common Error 10.1


Title: What is wrong with this code about interfaces?
Difficulty: Medium

15. Consider the following code snippet:


public interface Sizable
{
int LARGE_CHANGE = 100;
int SMALL_CHANGE = 20;

void changeSize();
}

Which of the following statements is true?


a) LARGE_CHANGE and SMALL_CHANGE are automatically public static final.
b) LARGE_CHANGE and SMALL_CHANGE are instance variables
c) LARGE_CHANGE and SMALL_CHANGE must be defined with the keywords private
static final.
d) LARGE_CHANGE and SMALL_CHANGE must be defined with the keywords public static
final.

Answer: a

Section Reference: Special Topic 10.1


Title: Which statement about interface definitions is true?
Difficulty: Hard

16. Consider the following code snippet:


public class Inventory implements Measurable
{
. . .
double getMeasure();
{
return onHandCount;
}
}

The compiler complains that the getMeasure method has a weaker access level than the
Measurable interface. Why?
a) All of the methods in a class have a default access level of package access, while the
methods of an interface have a default access level of private.
b) All of the methods in a class have a default access level of package access, while the
methods of an interface have a default access level of public.
c) The variable onHandCount was not declared with public access.
d) The getMeasure method was declared as private in the Measurable interface.

Answer: b

Section Reference: Common Error 10.1


Title: What is wrong with this code implementing an interface?
Difficulty: Hard

17. Which of the following is true regarding a class and interface types?
a) You can convert from a class type to any interface type that is in the same package as
the class.
b) You can convert from a class type to any interface type that the class implements.
c) You can convert from a class type to any interface type that the class defines.
d) You cannot convert from a class type to any interface type.

Answer: b

Section Reference: 10.2 Working with Interface Variables


Title: Which is true regarding a class and interface types?
Difficulty: Hard

18. Consider the following code snippet.


public interface Measurable
{
double getMeasure();
}

public class Coin implements Measurable


{
public double getMeasure()
{
return value;
}
...
}

public class DataSet


{
...
public void add()
{
...
}
}

public class BankAccount


{
...
public void add()
{
...
}
}

Which of the following statements is correct?

a)
Coin dime = new Coin(0.1, "dime");
Measurable x = dime;
b)
Coin dime = new Coin(0.1, "dime");
Dataset x = dime;
c)
Coin dime = new Coin(0.1, "dime");
DataSet x == (Measureable)dime;
d)
Coin dime = new Coin(0.1, "dime");
BankAccount x = dime;

Answer: a

Section Reference: 10.2 Working with Interface Variables


Title: Which code statement is correct?
Difficulty: Medium

19. Which of the following statements about converting between types is true?

a) When you cast number types, you take a risk that an exception will occur.
b) When you cast number types, you will not lose information.
c) When you cast object types, you take a risk of losing information.
d) When you cast object types, you take a risk that an exception will occur.

Answer: d

Section Reference: 10.2 Working with Interface Variables


Title: Which statement about converting between types is true?
Difficulty: Medium

20. Which of the following statements about interfaces is true?

a) You can define an interface variable that refers to an object of any class in the same
package.
b) You cannot define a variable whose type is an interface.
c) You can instantiate an object from an interface class.
d) You can define an interface variable that refers to an object only if the object belongs
to a class that implements the interface.

Answer: d

Section Reference: Common Error 10.2


Title: Which statement about interfaces is true?
Difficulty: Hard

21. You have created a class named Motor that implements an interface named
Measurable. You have declared a variable of type Measureable named
motorTemperature. Which of the following statements is true?

a) The object to which motorTemperature refers has type Measurable.


b) The object to which motorTemperature refers has type Motor.
c) This declaration is illegal.
d) You must construct a motorTemperature object from the Measurable interface.

Answer: b

Section Reference: 10.2 Working with Interface Variables


Title: Which statement about a variable whose type is an interface variable is true?
Difficulty: Medium

22. ____ occurs when a single class has several methods with the same name but
different parameter types.

a) Casting
b) Polymorphism
c) Overloading
d) Instantiation

Answer: c

Section Reference: 10.2 Working with Interface Variables


Title: ____ occurs when a single class has several methods with the same name.
Difficulty: Easy

23. Consider the following code snippet:


public class Demo
{
public static void main(String[] args)
{
Point[] p = new Point[4];
p[0] = new Colored3DPoint(4, 4, 4, Color.BLACK);
p[1] = new ThreeDimensionalPoint(2, 2, 2);
p[2] = new ColoredPoint(3, 3, Color.RED);
p[3] = new Point(4, 4);

for (int i = 0; i < p.length; i++)


{
String s = p[i].toString();
System.out.println("p[" + i + "] : " + s);
}
return;
}
}

This code is an example of ____.

a) overloading
b) callback
c) early binding
d) polymorphism

Answer: d

Section Reference: 10.2 Working with Interface Variables


Title: his code is an example of ____.
Difficulty: Medium

24. If you have multiple classes in your program that have implemented the same
interface in different ways, how is the correct method executed?

a) The Java virtual machine must locate the correct method by looking at the class of the
actual object.
b) The compiler must determine which method implementation to use.
c) The method must be qualified with the class name to determine the correct method.
d) You cannot have multiple classes in the same program with different implementations
of the same interface.

Answer: a

Section Reference: 10.2 Working with Interface Variables


Title: How does the correct method get called?
Difficulty: Medium

25. Consider the following declarations:

public interface Displayable


{
void display();
}

public class Picture implements Displayable


{
private int size;

public void increaseSize()


{
size++;
}

public void decreaseSize()


{
size--;
}

public void display()


{
System.out.println(size);
}

public void display(int value)


{
System.out.println(value * size);
}
}

What method invocation can be used to complete the code segment below?

Displayable picture = new Picture();


picture._________________;

a) increaseSize()
b) decreaseSize()
c) display()
d) display(5)

Answer: c

Title: Identify legal method invocation for variable of interface type


Difficulty: Medium
Section Reference 1: 10.2 Working with Interface Variables

26. Which of the following can potentially be changed when implementing an interface?

a) The parameters of a method in the interface.


b) The name of a method in the interface.
c) The return type of a method in the interface.
d) You cannot change the name, return type, or parameters of a method in the interface.
Answer: d

Section Reference: Common Error 10.3


Title: Which can be changed when implementing an interface?
Difficulty: Medium

27. Consider the following class:


public class Player implements Comparable
{
private String name;
private int goalsScored;

// other methods go here

public int compareTo(Object otherObject)


{
__________________________________
return (goalsScored – otherPlayer.goalsScored);
}
}

What statement can be used to complete the compareTo() method?

a) Player otherPlayer = otherObject;


b) Object otherPlayer = otherObject;
c) Player otherPlayer = (Player) otherObject;
d) Object otherPlayer = (Player) otherObject;

Answer: c

Title: Identify correct statement to complete compareTo() method in sample class


Difficulty: Medium
Section Reference 1: 10.3 The Comparable Interface

28. The method below is designed to print the smaller of two values received as
arguments. Select the correct expression to complete the method.

public void showSmaller(Comparable value1, Comparable value2)


{
if ( _________________________ )
System.out.println(value1 + " is smaller.");
else
System.out.println(value2 + " is smaller.");
}

a) value1 < value2


b) value1.compareTo(value2) > 0
c) value1.compareTo(value2) == 0
d) value1.compareTo(value2) < 0

Answer: d

Title: Identify correct statement to compare two Comparable objects


Difficulty: Medium
Section Reference 1: 10.3 The Comparable Interface

29. Which of the following statements about a callback is NOT true?

a) A callback can allow you to implement a new method for a class that is not under your
control.
b) A callback can be implemented using an interface.
c) A callback is a mechanism for specifying code to be executed later.
d) A callback method declared in an interface must specify the class of objects that it will
manipulate.

Answer: d

Section Reference: 10.4 Using Interfaces for Callbacks


Title: Which statement about a callback is NOT true?
Difficulty: Medium

30. In Java, ____ can be used for callbacks.


a) Objects
b) Interfaces
c) Classes
d) Operators

Answer: b

Section Reference: 10.4 Using Interfaces for Callbacks


Title: In Java, ____ can be used for callbacks.
Difficulty: Easy

31. You wish to implement a callback method for an object created from a system class
that you cannot change. What approach does the textbook recommend to accomplish
this?

a) Create a new class that mimics the system class.


b) Extend the system class.
c) Use an inner class in the interface.
d) Use a helper class that implements the callback method.

Answer: d

Section Reference: 10.4 Using Interfaces for Callbacks


Title: How to implement a callback method for a system class.
Difficulty: Medium

32. Which of the following statements about helper classes is true?

a) Helper classes must be inner classes.


b) Helper classes must implement interfaces.
c) Helper classes help reduce coupling.
d) Helper classes cannot contain instance variables.

Answer: c

Section Reference: 10.4 Using Interfaces for Callbacks


Title: Which statement about helper classes is true?
Difficulty: Easy

33. Consider the following declarations:

public interface Measurer


{
int measure(Object anObject);
}

public class StringLengthMeasurer implements Measurer


{
public int measure(_________________)
{
String str = (String) anObject;
return str.length();
}
}

What parameter declaration can be used to complete the callback measure method?

a) Object anObject
b) String anObject
c) Object aString
d) String aString

Answer: a
Title: Identify correct parameter declaration to complete callback method
Difficulty: Easy
Section Reference 1: 10.4 Using Interfaces for Callbacks

34. Assuming that interface Resizable is declared elsewhere, consider the following
class declaration:

public class InnerClassExample


{
public static void main(String[] args)
{
class SizeModifier implements Resizable
{
// class methods
}

__________________________ // missing statement


}
}

Which of the following declarations can be used to complete the main method?

a) Resizable something = new Resizable();


b) Resizable something = new SizeModifier();
c) Resizable something = new InnerClassExample();
d) SizeModifier something = new Resizable();

Answer: b

Title: Identify correct declaration using inner class to complete main method
Difficulty: Medium
Section Reference 1: 10.5 Inner Classes

35. Which of the following statements about an inner class is true?

a) An inner class can only be defined within a specific method of its enclosing class.
b) An inner class can only be defined outside of any method within its enclosing class.
c) An inner class must implement an interface.
d) An inner class may be anonymous.

Answer: d

Section 10.5 Inner Classes


Title: Which statement about an inner class is true?
Difficulty: Easy
36. A/an ____ class defined in a method signals to the reader of your program that the
class is not interesting beyond the scope of the method.

a) A class cannot be defined within a method


b) abstract
c) interface
d) inner

Answer: d

Section 10.5 Inner Classes


Title: A/an ___ class defined in a method signals what?
Difficulty: Easy

37. Which of the following statements about an inner class is true?

a) An inner class that is defined inside a method is publicly accessible.


b) An inner class that is defined inside a method is not publicly accessible.
c) An inner class that is defined inside an enclosing class but outside of its methods is not
available to all methods of the enclosing class.
d) An inner class is used for a utility class that should be visible elsewhere in the
program.

Answer: b

Section 10.5 Inner Classes


Title: Which statement about an inner class is true?
Difficulty: Hard

38. Which of the following is a good use for an anonymous class?

a) Use an anonymous class to implement polymorphism.


b) Use an anonymous class to implement a callback.
c) Use an anonymous class when all methods of the class will be static methods.
d) Use an anonymous class when the program will only need one object of the class.

Answer: d

Section Reference: Special Topic 9.2


Title: Which is a good use for an anonymous class?
Difficulty: Hard
39. Consider the following code snippet:
myImage.add(new Rectangle(10,10,10,10));

This code is an example of using ____.

a) An anonymous class.
b) An anonymous object.
c) An abstract object.
d) An abstract class.

Answer: b

Section Reference: Special Topic 10.2


Title: This code is an example of using ____.
Difficulty: Hard

40. Which of the following statements about a mock class is true?

a) A mock class does not provide an implementation of the services of the actual class.
b) A mock class provides a complete implementation of the services of the actual class.
c) A mock class provides a simplified implementation of the services of the actual class.
d) A mock class must be an interface.

Answer: c

Section 10.6 Mock Objects


Title: Which statement about a mock class is true?
Difficulty: Easy

41. What role does an interface play when using a mock class?

a) The mock class should be an interface that will be implemented by the real class.
b) The real class should be an interface that will be implemented by the mock class.
c) Interfaces are not involved when using mock classes.
d) An interface should be implemented by both the real class and the mock class to
guarantee that the mock class accurately simulates the real class when used in a program.

Answer: d

Section 10.6 Mock Objects


Title: What role does an interface play in a mock class?
Difficulty: Medium
42. Which of the following statements about events and graphical user interface programs
is true?

a) Your program must instruct the Java window manager to send it notifications about
specific types of events to which the program wishes to respond.
b) The Java window manager will automatically send your program notifications about
all events that have occurred.
c) Your program must respond to notifications of all types of events that are sent to it by
the Java window manager.
D) Your program must override the default methods to handle events.

Answer: a

Section 10.7 Event Handling


Title: Which statement about events and GUI programs is true?
Difficulty: Medium

43. Consider the following class:


public class ClickListener implements ActionListener
{
__________________________________________
{
System.out.println("mouse event ...");
}
}

Which of the following method headers should be used to complete the ClickListener
class?

a) public void actionPerformed(ActionEvent event)


b) public void actionPerformed(ClickListener event)
c) public void actionPerformed()
d) public void actionPerformed(ActionListener event)

Answer: a

Title: Identify correct actionPerformed method header


Difficulty: Easy
Section Reference 1: 10.7 Event Handling

44. ____ are generated when the user presses a key, clicks a button, or selects a menu
item.

a) Listeners
b) Interfaces.
c) Events.
d) Errors.

Answer: c

Section 10.7 Event Handling


Title: ____ are generated when the user interacts with GUI components.
Difficulty: Easy

45. A/an ____ belongs to a class whose methods describe the actions to be taken when a
user clicks a user-interface graphical object.

a) Event listener
b) Event source
c) Action listener
d) Action method

Answer: a

Section 10.7 Event Handling


Title: A/an ____ belongs to a class whose methods describe actions to be taken.
Difficulty: Easy

46. Which of the following is an event source?

a) A JButton object.
b) An event listener.
c) An inner class.
d) An event adapter.

Answer: a

Section 10.7 Event Handling


Title: Which is an event source?
Difficulty: Easy

47. To respond to a button event, a listener must supply instructions for the ____ method
of the ActionListener interface.

a) actionEvent.
b) actionPerformed
c) eventAction
d) eventResponse
Answer: b

Section 10.7 Event Handling


Title: To respond to a button event, a listener must implement the ____ method.
Difficulty: Medium

48. To associate an event listener with a JButton component, you must use the ___
method of the JButton class.

a) addEventListener.
b) addActionListener.
c) addButtonListener.
d) addListener

Answer: b

Section 10.7 Event Handling


Title: How to associate an event listener with a JButton component.
Difficulty: Easy

49. The methods of a/an ____ describe the actions to be taken when an event occurs.

a) event source
b) event listener
c) event interface
d) action source

Answer: b

Section 10.7 Event Handling


Title: The methods of a/an ____ describe the actions when an event occurs.
Difficulty: Easy

50. When an event occurs, the event source notifies all ____.

a) components
b) panels
c) interfaces
d) event listeners

Answer: d
Section 10.7 Event Handling
Title: When an event occurs, the event source notifies all ____.
Difficulty: Easy

51. Which container is used to group multiple user-interface components together?

a) text area
b) table
c) panel
d) rectangle

Answer: c

Section 10.7 Event Handling


Title: Which container groups user-interface components?
Difficulty: Easy

52. Which of the following statements will compile without error?

a)
public interface AccountListener()
{
void actionPerformed(AccountEvent event);
}
b)
public interface AccountListener()
{
void actionPerformed(AccountEvent);
}
c)
public interface AccountListener
{
void actionPerformed(AccountEvent event);
}
d)
public abstract AccountListener
{
void actionPerformed(AccountEvent event);
}

Answer: c

Section 10.7 Event Handling


Title: Which interface definition compiles without error?
Difficulty: Hard
53. Which of the following statements about listener classes is true?

a) A listener class cannot be declared as an anonymous inner class.


b) A listener class cannot be declared as an inner class.
c) A listener class must be declared as an inner class.
d) A listener class must be declared as an anonymous inner class.

Answer: a

Section 10.7 Event Handling


Title: Which statement about listener classes is true?
Difficulty: Hard

54. Consider the following code snippet:


JFrame frame = new JFrame();
JPanel panel = new JPanel

Which statement would add the panel to the frame?

a) frame.add(panel);
b) frame.add(JPanel panel);
c) frame.addComponent(panel);
d) frame.addComponent(JPanel panel);

Answer: a

Section 10.8 Building Applications with Buttons Title: How to add a panel to a frame.
Difficulty: Easy

55. Consider the following code snippet:


import ____________________
import java.awt.event.ActionListener;

/**
An action listener that prints.
*/
public class ClickListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
System.out.println("I was clicked.");
}
}
Which of the following statements will complete this code?

a) java.swing.event.ActionEvent;.
b) javax.swing.event.ActionEvent;
c) javax.awt.event.ActionEvent;
d) java.awt.event.ActionEvent;

Answer: d

Section 10.7 Event Handling


Title: Which statement will complete this code?
Difficulty: Hard

56. Event listeners are often installed as ____ classes so that they can have access to the
surrounding fields, methods, and final variables.

a) Inner
b) Interface
c) Abstract
d) Helper

Answer: a

Section 10.7 Event Handling


Title: Event listeners are often installed as ____ classes.
Difficulty: Medium

57. Which of the following statements about an inner class is true?

a) An inner class may not be declared within a method of the enclosing scope.
b) An inner class may only be declared within a method of the enclosing scope.
c) An inner class can access variables from the enclosing scope only if they are passed as
constructor or method parameters.
d) The methods of an inner class can access variables declared in the enclosing scope.

Answer: d

Section 10.7 Event Handling


Title: Which statement about an inner class is true?
Difficulty: Medium

58. Consider the following code snippet:


public class ClickListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
System.out.println("I was clicked.");
}
}
public class ButtonTester
{
public static void main(String[] args)
{
JFrame frame = new JFrame();
JButton button = new JButton("Click me!");
frame.add(button);

ActionListener listener = new ClickListener();


button.addActionListener(listener);
...
}
}

Which of the following statements is correct?

a) Class ButtonTester is an interface type.


b) A ClickListener object can be added as a listener for the action events that buttons
generate.
c) Class ClickListener is an interface type.
d) Class ButtonTester implements an interface type.

Answer: b

Section 10.7 Event Handling


Title: Select the correct statement about a button's event code.
Difficulty: Medium

59. An inner class can access local variables from the enclosing scope only if they are
declared as ____.

a) private
b) public
c) static
d) final

Answer: b

Section 10.7 Event Handling


Title: An inner class can access local variables declared as ____.
Difficulty: Medium
60. Which of the following code statements creates a graphical button which has
"Calculate" as its label ?

a) Button JButton = new Button("Calculate").


b) button = new Button(JButton, "Calculate").
c) button = new JButton("Calculate").
d) JButton button = new JButton("Calculate").

Answer: d

Section 10.8 Building Applications with ButtonsTitle: Which statement creates a button?
Difficulty: Easy

61. To build a user interface that contains graphical components, the components ____.
a) Must be added directly to a frame component.
b) Must each be added to a separate panel.
c) Must be added to a panel that is contained within a frame.
d) Must be added to a frame that is contained within a panel.

Answer: c

Section 10.8 Building Applications with ButtonsTitle: To build a user interface, the
graphical components ____.
Difficulty: Easy

62. How do you specify what the program should do when the user clicks a button?

a) Specify the actions to take in a class that implements the ButtonListener interface.
b) Specify the actions to take in a class that implements the ButtonEvent interface .
c) Specify the actions to take in a class that implements the ActionListener interface.
d) Specify the actions to take in a class that implements the EventListener interface.

Answer: c

Section 10.8 Building Applications with ButtonsTitle: How to specify action for a
button?
Difficulty: Medium

63. A(n) ____ has an instance method addActionListener() for specifying which
object is responsible for implementing the action associated with the object.

a) JFrame
b) JSlider
c) JButton
d) JLabel

Answer: c

Section 10.8 Building Applications with ButtonsTitle: How to specify action for a button.
Difficulty: Medium

64. Consider the following code snippet:

public static void main(String[] args)


{
Order myOrder = new Order();
JButton button = new JButton("Calculate");
JLabel label = new JLabel("Total amount due");
. . .
class MyListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
label.setText("Total amount due " + myOrder.getAmountDue());
}
}
}

What is wrong with this code?


a) label must be declared as final.
b) myOrder must be declared as final
c) label and myOrder must be declared as final
d) label and button must be declared as final.

Answer: c

Section 10.8 Building Applications with ButtonsTitle: What is wrong with this listener
code?
Difficulty: Medium

65. Consider the following code snippet:


public static void main(String[] args)
{
final Order myOrder = new Order();
JButton button = new JButton("Calculate");
final JLabel label = new JLabel("Total amount due");
. . .
class MyListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
. . .
}
}
}

Which of the local variables can be accessed within the actionPerformed method?

a) Only button can be accessed..


b) All of the local variables can be accessed.
c) label and myOrder can be accessed.
d) Only myOrder can be accessed.

Answer: c

Section 10.8 Building Applications with ButtonsTitle: Which local variables can be
accessed?
Difficulty: Medium

66. Consider the following code snippet which is supposed to show the total order
amount when the button is clicked:
public static void main(String[] args)
{
final Order myOrder = new Order();
JButton button = new JButton("Calculate");
final JLabel label = new JLabel("Total amount due");
. . .
class MyListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
label.setText("Total amount due " + myOrder.getAmountDue());
}
}
ActionListener listener = new MyListener();
}

What is wrong with this code?

a) button should be declared as final


b) The listener has not been attached to the button.
c) The listener cannot access the methods of the myOrder object.
d) This code will display the total order amount.

Answer: b

Section Reference: Common Error 10.4


Title: What is wrong with this listener code?
Difficulty: Medium
67. Use the ____ method to specify the height and width of a graphical component when
you add it to a panel.

a) setPreferredDimensions.
b) setInitialDimensions.
c) setPreferredSize.
d) setInitialSize.

Answer: c

Section Reference: Common Error 10.5


Title: Use the ____ method to specify dimensions of a graphical component .
Difficulty: Easy

68) Assuming that the ClickListener class implements the ActionListener interface,
what statement should be used to complete the following code segment?

ClickListener listener = new ClickListener();


JButton myButton = new JButton("Submit");
JPanel myPanel = new JPanel();
myPanel.add(myButton);
______________________ // missing statement

a) myPanel.addActionListener(listener);
b) myButton.addActionListener(listener);
c) myPanel.addActionListener(myButton);
d) myButton.addActionListener(ClickListener);

Answer: b

Title: Identify correct statement to add event listener object to a graphical object
Difficulty: Medium
Section Reference 1: 10.8 Building Applications with Buttons

69) Assume that the TimerListener class implements the ActionListener interface. If
the actionPerformed method in TimerListener needs to be executed every second,
what statement should be used to complete the following code segment?

ActionListener listener = new TimerListener();


_________________________________ // missing statement
timer.start();

a) Timer timer = new Timer(listener);


b) Timer timer = new Timer(1, listener);
c) Timer timer = new Timer(100, listener);
d) Timer timer = new Timer(1000, listener);

Answer: d

Title: Identify correct statement to initialize a Timer object


Difficulty: Easy
Section Reference 1: 10.9 Processing Timer Events

70. The Timer class is found in the ____ package.

a) java.awt.
b) javax.awt.
c) java.swing.
d) javax.swing.

Answer: d

Section 10.9 Processing Timer Events


Title: The Timer class is found in which package?
Difficulty: Easy

71. When you use a timer, you need to define a class that implements the ____ interface.

a) TimerListener
b) TimerActionListener
c) ActionListener
d) StartTimerListener

Answer: c

Section 10.9 Processing Timer Events


Title: The Timer component requires which interface?
Difficulty: Medium

72. The ____ class in the javax.swing package generates a sequence of events, spaced
apart at even time intervals.
a) TimeClock
b) Timer
c) Clock
d) StopWatch

Answer: b
Section 10.9 Processing Timer Events
Title: Which class generates events at even time intervals?
Difficulty: Easy

73. Consider the following code snippet:


final RectangleComponent component = new RectangleComponent();

MouseListener listener = new MousePressListener();


component.addMouseListener(listener);
______________
frame.add(component);

frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);

Which of the following statements completes this code?

a) private static final int FRAME_WIDTH = 300;


b) private static final int FRAME_HEIGHT = 400;
c) Frame frame = new Frame();
d) JFrame frame = new JFrame();

Answer: d

Section 10.10 Mouse Events


Title: Which statement completes this code?
Difficulty: Medium

74. Consider the code snippet below:


public class RectangleComponent extends JComponent
{
private Rectangle box;

private static final int BOX_X = 100;


private static final int BOX_Y = 100;
private static final int BOX_WIDTH = 20;
private static final int BOX_HEIGHT = 30;

public RectangleComponent()
{
// The rectangle that the paint method draws
box = new Rectangle(BOX_X, BOX_Y,
BOX_WIDTH, BOX_HEIGHT);
}

public void paintComponent(Graphics g)


{
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;

g2.draw(box);
}

public void moveTo(int x, int y)


{
box.setLocation(x, y);
repaint();
}
}
Which statement causes the rectangle to appear at an updated location?

a) repaint();
b) g2.draw(box);
c) box.setLocation(x, y);
d) private Rectangle box;

Answer: a

Section 10.9 Processing Timer Events


Title: Which statement causes the rectangle to appear at an updated location?
Difficulty: Medium

75. Consider the following code snippet:


class MyListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
System.out.println(event);
}
}

Timer t = new Timer(interval, listener);


t.start();

What is wrong with this code?

a) The Timer object should be declared before the MyListener class.


b) The listener has not been attached to the Timer object.
c) The Timer object must be declared as final.
d) There is nothing wrong with the code.

Answer: b

Section Reference: Common Error 10.4


Title: What is wrong with this listener code?
Difficulty: Medium

76. You have a class which extends the JComponent class. In this class you have created
a painted graphical object. Your code will change the data in the graphical object. What
additional code is needed to ensure that the graphical object will be updated with the
changed data?

a) You must call the component object's paintComponent() method.


b) You must call the component object's repaint() method.
c) You do not have to do anything – the component object will be automatically repainted
when its data changes.
d) You must use a Timer object to cause the component object to be updated.

Answer: b

Section Reference: Common Error 10.6


Title: What code is needed to update a painted component?
Difficulty: Medium

77. The ____ method should be called whenever you modify the shapes that the
paintComponent method draws.

a) draw
b) paint
c) paintComponent
d) repaint

Answer: d

Section Reference: Common Error 10.6


Title: The ____ method should be called whenever you modify shapes using
paintComponent.
Difficulty: Easy

78. If the user presses and releases a mouse button in quick succession, which methods
of the MouseListener interface are called?

a) mousePressed, mouseReleased, and mouseClicked.


b) mousePressed, mouseReleased, and mouseDblClicked
c) Only the mouseClicked method.
d) Only the mouseDblClicked method.

Answer: b
Section 10.10 Mouse Events
Title: Which MouseListener interface methods are called?
Difficulty: Medium

79. Suppose listener is an instance of a class that implements the MouseListener


interface. How many methods does listener have?

a) 0
b) 1
c) 3
d) at least 5

Answer: d

Section 10.10 Mouse Events


Title: How many methods does MouseListener have?
Difficulty: Medium

80. Use the ____ method to add a mouse listener to a component.

a) addListener
b) addMouseListener
c) addActionListener
d) addMouseActionListener

Answer: b

Section 10.10 Mouse Events


Title: How to add a mouse listener to a component.
Difficulty: Medium

81. A/an ____ is used to capture mouse events.

a) action listener
b) event listener
c) mouse listener
d) component listener

Answer: c

Section 10.10 Mouse Events


Title: A/an ____ is used to capture mouse events.
Difficulty: Easy

82. You wish to detect when the mouse is moved into a graphical component. Which
methods of the MouseListener interface will provide this information?

a) mouseMoved
b) mouseEntered
c) mouseOver
d) mouseIncoming

Answer: b

Section 10.10 Mouse Events


Title: Which MouseListener interface methods are called when the mouse is moved?
Difficulty: Medium

83. Consider the following code snippet:


class MouseClickedListener implements ActionListener
{
public void mouseClicked(MouseEvent event)
{
int x = event.getX();
int y = event.getY();
component.moveTo(x,y);
}
}

What is wrong with this code?

a) The mouseClicked method cannot access the x and y coordinates of the mouse.
b) repaint() method was not called.
c) The class has implemented the wrong interface.
d) There is nothing wrong with this code.

Answer: c

Section 10.10 Mouse Events


Title: What is wrong with this listener code?
Difficulty: Hard

84. Consider the following code snippet:


public class MyMouseListener
{
public void mousePressed(MouseEvent event)
{
double x;
double y;
_______
System.out.println("x: " + x + ", y: " + y);
}
}

Which of the following statements should be in the indicated position to print out where
the mouse was pressed?

a) x = event.getXposition(); y = event.getYposition();
b) x = (MouseEvent) getX(); y = (MouseEvent) getY();
c) x = event.printX(); y = event.printY();
d) x = event.getX(); y = event.getY();

Answer: d

Section 10.10 Mouse Events


Title: What statement completes this code?
Difficulty: Hard

85. What does the MouseAdapter class provide?

a) MouseAdapter class implements all of the methods of the MouseListener interface as


do nothing methods, eliminating the need to implement the MouseListener interface.
b) MouseAdapter class allows your program to accept input from multiple mice.
c) MouseAdapter class implements all of the methods of the ActionListener interface
as do nothing methods, eliminating the need to implement the ActionListener interface.
d) A class can implement the MouseAdapter class to handle mouse events.

Answer: a

Section Reference: Special Topic 10.5


Title: What does the MouseAdapter class provide?
Difficulty: Medium
Another random document with
no related content on Scribd:
The Project Gutenberg eBook of Anastasia: The
autobiography of H.I.H. the Grand Duchess
Anastasia Nicholaevna of Russia
This ebook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this ebook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

Title: Anastasia: The autobiography of H.I.H. the Grand Duchess


Anastasia Nicholaevna of Russia

Author: Eugenia Smith

Dubious author: Emperor of Russia daughter of Nicholas II


Grand Duchess Anastasiia Nikolaevna

Release date: July 28, 2022 [eBook #68616]

Language: English

Original publication: United States: Robert Speller & Sons, 1963

Credits: Thomas Frost, Tim Lindell and the Online Distributed


Proofreading Team at https://www.pgdp.net (This book
was produced from images made available by the
HathiTrust Digital Library.)

*** START OF THE PROJECT GUTENBERG EBOOK ANASTASIA:


THE AUTOBIOGRAPHY OF H.I.H. THE GRAND DUCHESS
ANASTASIA NICHOLAEVNA OF RUSSIA ***
$5.95

This is the only authentic autobiography of the Grand


Duchess Anastasia Nicholaevna, fourth daughter of the
late Emperor Nicholas II and the late Empress Alexandra
Feodorovna of Russia.
The Grand Duchess Anastasia furnishes authentic
information and many previously unpublished details
concerning the life of the Imperial Family and suite from
the days of her childhood to the date of the murder of her
parents and other members of her Family in Ekaterinburg
on the night of July 16-17, 1918.
Her story is divided into six major parts: the youthful years,
the period of the First World War, arrest and exile, life in
Tobolsk, life in Ekaterinburg, and the period after the
tragedy which includes her rescue and escape to
Bukovina.
The life of a Grand Duchess of Russia was no downy bed
of roses. Discipline was imposed by the Tsar and Tsarina,
particularly the latter. Study was an essential duty which
took many hours. During the war years there were
responsibilities connected with the operation of hospitals
for the wounded. Always over the Family hung the fear of
the possible demise of the heir to the throne, the young
Tsesarevich and Grand Duke Alexei Nicholaevich, who
had inherited haemophilia through his Mother.
The Grand Duchess Anastasia rejects vigorously various
accusations directed against each of her parents. She
explains in her preface the reasons for her long
submergence and for her present re-emergence forty-five
years after her reported death.
Her style is brisk and invigorating. Her sense of humor
repeatedly delights with accounts of lighter events and
anecdotes.
This is an invaluable historical record.

ROBERT SPELLER & SONS, Publishers


33 West 42nd Street
New York, N.Y. 10036
Photograph by Stephen Gaillard
Portrait by Richard Banks
H.I.H. THE GRAND DUCHESS ANASTASIA NICHOLAEVNA OF
RUSSIA
ANASTASIA

The Autobiography of H.I.H. The Grand Duchess


Anastasia Nicholaevna of Russia

Volume I

ROBERT SPELLER & SONS, PUBLISHERS


New York
© 1963 by Robert Speller & Sons, Publishers, Inc.
33 West 42nd Street
New York, New York 10036

Library of Congress Catalog Card No. 63-22672

First edition
All rights reserved

Printed in the United States of America


WITH LOVE AND ESTEEM
I dedicate this book
To My Family:
To My Father, His Imperial Majesty, the Emperor
Nicholas II,
To My Mother, Her Imperial Majesty, the Empress
Alexandra Feodorovna,
To My Brother, His Imperial Highness, the
Tsesarevich Alexei Nicholaevich,
To My Sisters, Their Imperial Highnesses, the
Grand Duchesses Olga, Tatiana, and Marie;
To those dear and understanding friends who perished
with My Family in Ekaterinburg;
Dr. Eugene Botkin, Mlle. Anna Demidova, Ivan
Kharitonov, and Trup;
To those faithful friends and companions who, because of
their loyalty to us, perished before or after the tragedy
which befell My Family:
Countess Anastasia Hendrikova, Mlle. Ekaterina
Schneider, Prince Vasily Dolgorukov, Count Ilia
Tatishchev, Nagorny, Chemodurov, and Ivan
Sidniev;
To My Brother’s youthful companion and helper, whose
fate I never learned:
Leonid Sidniev;
To My Uncle, His Imperial Highness, the Grand Duke
Michael Alexandrovich, and his secretary and friend,
Nicholas Johnson, both of whom disappeared, apparently
murdered by the Bolsheviks;
To My Aunt, Her Imperial Highness, the Grand Duchess
Elizabeth Feodorovna, and her faithful nun, Varvara, who
were brutally murdered by the Bolsheviks;
To other members of the Imperial Family who were
murdered by the Bolsheviks;
To all members of the Imperial Family who died during the
First World War and the Civil War in Russia;
To all members of the Imperial Family, living and dead,
who survived the Bolshevik revolution;
To those dear and helpful friends:
Count Apraxin and Captain Nilov;
To the two officers who came to pay their respects and
salute My Father for the last time at the station at
Tsarskoe Selo just before our departure for Siberia:
Kushelev and Artasalev (?);
To friends who voluntarily accompanied My Family into
exile;
To my rescuer, Alexander;
To Nikolai; to the Serbian, the Croatian, and the former
Austrian soldier; and to all others who befriended and
aided me during the long journey from the vicinity of
Ekaterinburg to a refuge in Bukovina;
To those millions of heroes of the Russian Empire, sung
and unsung, who gave their lives in defense of their
country against the Central Powers and against the
Bolsheviks;
To all members of the Imperial Armed Forces who served
their Emperor and their country faithfully and loyally at all
times;
To the millions who died in Russia from execution,
starvation and other causes deriving from Bolshevik
cruelty, tyranny and misrule;
To the members of the Imperial Armed Forces who are
now living outside their homeland and especially those
among them who are maimed and destitute;
To all who have helped me in any way since I left Russia;
To all these—departed and living, known and unknown,
relatives and friends—I am eternally grateful.
Acknowledgements
The present book could never have been completed without the
encouragement, inspiration and help of friends who were interested
in having the story of my family, as known to me, the youngest of the
four daughters of the late Emperor Nicholas II and the Empress
Alexandra, and my own story made known to the world.
My indebtedness to these friends is deep and lasting. First of all
must be mentioned the late Mrs. Helen Kohlsaat Wells, a close
friend and confidante for many, many years. She worked with me
closely during the years 1930 to 1934 during which we completed
the first complete draft of the manuscript. Many years later we
worked intermittently on revising the manuscript until Mrs. Wells’
untimely death. Also in a separate category is the late Mr. John
Adams Chapman, whose friendship and counsel were so valuable at
all times. Deserving of special gratitude are Mrs. Marjorie Wilder
Emery, Miss Edith Kohlsaat, Mr. and Mrs. Norman Hanson, Mrs.
John Adams Chapman, Mr. and Mrs. Louis Ellsworth Laflin, Jr., and
Mr. and Mrs. Francis Beidler II.
Table of Contents
List of Illustrations xi
Author’s Preface xiii

PART ONE THE YOUTHFUL YEARS 1


Chapter I Earliest Memories 3
Chapter II School Days 15
Chapter III Cruises 25
Chapter IV The Crimea 40
Chapter V Spala: 1912 53
Chapter VI Jubilee: 1913 66

PART TWO THE FIRST WORLD WAR 73


Chapter VII Eve of the War: 1914 75
Chapter VIII No Choice But War 83
Chapter IX Family Heartaches 95
Chapter X Mogilev 113
Chapter XI Our Last Autumn in Tsarskoe Selo 126
Chapter XII Revolution 140
Chapter XIII Abdication 152

PART THREE ARREST AND EXILE 171


Chapter XIV Arrest 173
Chapter XV Subjugation 182
Chapter XVI Departure 193
Chapter XVII Journey 203
PART FOUR TOBOLSK 209
Chapter XVIII Orientation 211
Chapter XIX Winter 226
Chapter XX Danger 236
Chapter XXI Separation 248

PART FIVE EKATERINBURG 263


Chapter XXII Reunion 265
Chapter XXIII Deprivation and Courage 278
Chapter XXIV The Nights Are Long 286
Chapter XXV Accusation 291
Chapter XXVI Fear and Dread 297
Chapter XXVII Our Final Decision 303
Chapter XXVIII Dawn Turns to Dusk 314

PART SIX AFTER THE TRAGEDY 321


Chapter XXIX Dugout 323
Chapter XXX Recovery 338
Chapter XXXI Westward Trek 348
Chapter XXXII Alexander 358
Chapter XXXIII Escape 373
Chapter XXXIV Refuge 378

Index 383
List of Illustrations
FRONTISPIECE
The Grand Duchess Anastasia (portrait)

FIRST GROUP
The Grand Duchess Anastasia
Announcement of Birth of the Grand Duchess Anastasia
The Empress Alexandra
The Grand Duchess Anastasia, the Tsesarevich Alexei
and the Emperor Nicholas II
The Tsesarevich Alexei, the Empress Alexandra and the
Emperor Nicholas II
The Russian Imperial Family on visit to the British Royal
Family
The Grand Duke Alexander and the Grand Duchess Xenia
and Their Children
Alexander Palace, Tsarskoe Selo
The New Palace, Livadia
Nicholas II
The Empress Alexandra
The Tsesarevich Alexei
Nicholas II and the Empress Alexandra
The Grand Duchess Anastasia
The Grand Duchesses Marie, Tatiana, Anastasia and Olga
The Empress Alexandra with Her Daughters
Nicholas II and the Empress Alexandra and Their Children
The Grand Duchesses Olga and Tatiana
The Grand Duchesses Marie and Anastasia
The Grand Duchesses Anastasia, Olga, Tatiana and Marie
Nicholas II
The Grand Duchess Anastasia, the Empress Alexandra
and President Raymond Poincaré

SECOND GROUP
The Dowager Empress Marie
The Emperor Nicholas II
The Empress Alexandra
The Tsesarevich Alexei
The Grand Duke Michael
The Grand Duchess Elizabeth
The Grand Duchesses Anastasia, Marie and Tatiana
Nicholas II and His Children
The Tsesarevich Alexei and the Grand Duchesses Olga,
Anastasia and Tatiana
The Grand Duchesses Marie, Olga, Anastasia and Tatiana
Views of Tobolsk
Ipatiev House, Ekaterinburg
The Death Chamber, Ipatiev House, Ekaterinburg
The Handkerchief
The Piece of Glass
Map of Ekaterinburg and Vicinity
The Grand Duchesses Marie and Anastasia
The Grand Duchess Anastasia
Nicholas II with His Children and His Nephew, Prince
Vasili
The Grand Duchess Anastasia
The Grand Duchesses Olga, Tatiana, Anastasia and Marie
The Grand Duchess Anastasia
The Grand Duchess Anastasia and Marjorie Hanson
The Grand Duchess Anastasia

THIRD GROUP
Cameos of the Grand Duchess Anastasia Through the
Years
Author’s Preface
A few weeks after my arrival in Bukovina—after I had had time to
recover from the emotional and nervous shock and body wounds
which I had suffered at the time of the tragedy on the night of July
16-17, 1918—I decided to write about my home life with my beloved
family, about our arrest, about our exile in Tobolsk and Ekaterinburg,
about the assassination of the family in Ekaterinburg, and about my
rescue and subsequent escape across the frontier.
I made many, many notes, totaling over three hundred pages. I spent
hours and hours in the writing, days and nights of introspective
experiences, of grief and horror. I wrote in a peasant cottage in a
lonely village dotted with thatched-roof houses. I wrote at night in the
candlelight, agonizing over my story. At times the only relief I had
from my misery was the howling or barking of a dog. I remembered
my beloved Father’s words, “Dearest children, are you awake?” Tear
after tear dropped as I labored.
I remembered also my Father’s desire that a history of Russia should
be written by a member of our family. My Father had had in mind that
such a history might be written by my two oldest sisters and, to that
end, he gave them much valuable information. As it has turned out, it
is the youngest sister, the one least prepared to do so, upon whom
devolves the task of writing such a book, if it is to be written. That is
something for the future.
In 1918, after my escape, I thought that the book I had decided to
write about my family and myself might include historical data and
interpretation which would be of interest to the world and would be of
benefit to the Russian people and to their, and my, native land. I
particularly wanted to let the world know the facts about the arrest,
exile and murder of my parents, sisters and brother, and about the
nature of the Bolshevik regime in my country. It was the notes for this
book that I produced so painfully and painstakingly.

You might also like