Android
Java
Random
Technology
100

What are the components of a RecyclerView?

LayoutManager, Adapter, Model
100

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[])

100

Name the four houses in Harry Potter

Gryffindor, Ravenclaw, Hufflepuff, Slytherin

100

What does RAM stand for?

Random Access Memory

200

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

200

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)

200

What are the names of the pigs in this photo?
(from left to right)

Daddy Pig, Peppa Pig, George Pig, Mummy Pig

200

Name four products owned by Facebook

Facebook, WhatsApp, Occulus, Instagram, Facebook messenger, Facebook portal...

300

What do parcelables help you do?

They help pass data between various components in your application

300

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.

300

Name the mountains in Disneyland

Matterhorn, Space Mountain, Splash Mountain, Big Thunder Mountain

300

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  

400

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

400

Name the Java primitive types

boolean, char, int, long, float, String, byte, double

400

Name the people on Mount Rushmore

George Washington, Thomas Jefferson, Theodore Roosevelt, Abraham Lincoln

400
What is the ascii value of the letter 'a'

97

500

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

500

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.

500

How many sides does a dodecahedron have?

12

500

Who's the first programmer?

Ada Lovelace