Objects/Classes
Variables
The robot cars
Boston
100

What is the main purpose of a class in Java?
A. To store numbers
B. To organize related variables and methods
C. To create loops
D. To print text to the screen

B

100

Name atleast 3 PRIMITIVE datatypes 

int, char, String, double, boolean, etc.

100

What was the brain of the robot that runs the code

Arduino

100

Name The Basketball Team

Celtics

200

 Fill in the Blank
A(n) __________ is an instance of a class.

object

200

Which of the following is a valid way to declare a variable in Java?

A int number = 10

B var number = 10
C Integer number = 10






A

200

What does the line sensor do?

Line sensors help detect black and white surfaces

200

Bostons well known Skyscaper

The view, Prudential

300

Which statement best describes the difference between a class and an object in Java?
A. A class is a variable, and an object is a method.
B. A class is a blueprint, and an object is something created from that blueprint.
C. A class is temporary, but an object is permanent.
D. A class stores data, and an object writes code.

B

300

Name 3 types of variables

Local Variable, Instance Variable, and a Static Variable

300

What component is used the control the motors of the robot

Motor driver or L298N

300

A large brown bear named Blades is the mascot of what Boston professional sports team?

Boston Bruins

400

What is method overloading in Java?
A. Defining the same method in two different classes
B. Giving multiple names to the same method
C. Creating multiple methods with the same name but different parameters
D. Rewriting a method from a parent class in a subclass

C

(Method overloading means you can have multiple methods with the same name in one class, as long as their parameter lists are different.)

400

What are the naming conventions for variables in Java?

Variable names can consist of letters (A-Z, a-z), digits (0-9), the underscore character (_), and the dollar sign ($)

400

What is the difference between a Shield and a Module for Arduino

Shield attaches on top of the arduino, Modules are connected with jumper cables

400

While building magnetrons at MIT in the 1940s, Percy Spencer noticed a melting chocolate bar in his pocket. Deeper investigation and exploration led to the invention of what household device? Spencer received no royalties for this invention, first marketed as the Radarange.

Microwave

500

 Which of the following is true about methods in Java?
A. A method must always return a value.
B. Methods can only be defined inside the main method.
C. A class can have multiple methods with the same name if they have different parameters.
D. Methods in Java cannot be called from other classes.

C


(This is method overloading—when methods have the same name but different parameter types or numbers.)

500

What is the default value of a boolean instance variable in Java?

false

500

What is the file format used to save Arduino code

.ino

500

What park was once illegal to cross in Boston due to constant bear attacks?

Boston Common