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
Name atleast 3 PRIMITIVE datatypes
int, char, String, double, boolean, etc.
What was the brain of the robot that runs the code
Arduino
Name The Basketball Team
Celtics
Fill in the Blank
A(n) __________ is an instance of a class.
object
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
What does the line sensor do?
Line sensors help detect black and white surfaces
Bostons well known Skyscaper
The view, Prudential
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
Name 3 types of variables
Local Variable, Instance Variable, and a Static Variable
What component is used the control the motors of the robot
Motor driver or L298N
A large brown bear named Blades is the mascot of what Boston professional sports team?
Boston Bruins
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.)
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 ($)
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
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
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.)
What is the default value of a boolean instance variable in Java?
false
What is the file format used to save Arduino code
.ino
What park was once illegal to cross in Boston due to constant bear attacks?
Boston Common