What are the components of a RecyclerView?
Give the method declaration of the main method in Java
public static void main (String[] args)
OR
static public void main (String[] args)
OR
...(String args[])
Name the four houses in Harry Potter
Gryffindor, Ravenclaw, Hufflepuff, Slytherin
What does RAM stand for?
Random Access Memory
Give a common was intents are used
Take the user to another screen (activity) within your application
Take the user to a particular URL within the Android web browser
Take the user to the camera to have them take a picture
Initiate a call for the user to a given number
When do you use final and when do you use static?
Final: used to denote that the object referenced by the variable will not change (it cannot be changed once it's initialized)
Static: used to denote a constant value (can be changed)
What are the names of the pigs in this photo?
(from left to right)
Daddy Pig, Peppa Pig, George Pig, Mummy Pig
Name four products owned by Facebook
Facebook, WhatsApp, Occulus, Instagram, Facebook messenger, Facebook portal...
What do parcelables help you do?
They help pass data between various components in your application
What is the difference between extending and inheriting classes?
You can only extend one class but you can inherit multiple.
A subclass that extends a superclass may override some of the methods from the superclass.
Name the mountains in Disneyland
Matterhorn, Space Mountain, Splash Mountain, Big Thunder Mountain
How many versions of the iPhone are there?
13!
The First iPhone • iPhone 3G Models
iPhone 4 Models • iPhone 5 Models
iPhone 6 Models • iPhone SE
iPhone 7 Models • iPhone 8 Models
iPhone X Models • iPhone 11 Models
iPhone SE (2nd Gen) • iPhone 12 Models iPhone 13 Models
What are fragments?
A fragment is a reusable class implementing a portion of an activity. A Fragment typically defines a part of a user interface. Fragments must be embedded in activities; they cannot run independently of activities.
OK: a combination of XML layout/view and java class
Name the Java primitive types
boolean, char, int, long, float, String, byte, double
Name the people on Mount Rushmore
George Washington, Thomas Jefferson, Theodore Roosevelt, Abraham Lincoln
97
Name the three ways we can debug and what each one is.
Toasts: small in app notifications
Logging: sending data to the log (viewable from logcat)
Breakpoints: Set a breakpoint so you can pause app execution and look at variable states at specific points
Define the Java error:
int[] arr = new int[3];
System.out.println(arr[3]);
Is this a compile-time or runtime error and why?
runtime error (array out of bounds error) because there is no element at index 3. Not compile time because the syntax is correct but it's an illegal operation.
How many sides does a dodecahedron have?
12
Who's the first programmer?
Ada Lovelace