All AP Computer Science A Resources
Example Questions
Example Question #11 : Program Design
True or False.
The best data structure to represent a set of keys and values is an array.
False
True
False
Arrays can be two-dimensional. However, when trying to keep track of keys and values it can become complicated when using an array. HashMaps are the best way to represent data containing keys and values.
Example Question #32 : Object Oriented Program Design
What is not a feature of the Java programming language?
primitive data types such as int, boolean and double
Compile time error checking
Ability to write functions without making them class methods
Garbage Collection
Object Oriented Programming
Ability to write functions without making them class methods
In Java, the only way to write functions is to make them class methods. Java does have primitive types int, boolean double. There is compile time error checking. Java is an Object Oriented langauge and supports the OO paradigm. There is automatic garbage collection support, which helps manage memory for the user.
Certified Tutor
Certified Tutor
All AP Computer Science A Resources
