Vocab
Code
Vocab 2 😱🤠
Code 2 😪😴
Fun
100

Object

What is a specific instance of a class with defined attributes?

100

Which of the following is a valid way for creating and initializing a World object?

A. World w = null;

B. World w = new World;

C. World w = new World();

D. World w = World();

What is c/World w = new World();?

100

Arguments or actual parameters

What are the values or data passed to an object's method?

100

What is the output of the following code?

String message = "12" + (4 + 3);

System.out.println(message);

What is 127?
100


Fitzgerald

200

Class

What is defines a new data type that is like a blueprint?
200

Which of the following would be true about 40% of the time?

A. Math.random() < 0.4;

B. Math.random() > 0.4;

C. Math.random() == 0.4;

What is a/Math.random < 0.4;?

200

Method call

What is asking to run the method?
200

What is the output of the following code?

String greeting = null;

System.out.println(greeting);

What is null?

200


Who is Alexander Walkowski?

300
compareTo

What is returns a number to indicate if one string is less than, equal to, or greater than another?

300

What is the value of s2 after the following code executes? 

String s1 = "baby";

String s2 = s1.substring(0,3);

What is bab?

300

Autoboxing

What is an automatic conversion from the primitive type to the wrapper object?

300

Which of the following statements assigns a random integer between 25 and 60, inclusive, to rn?

A. int rn = (int)(Math.random() * 25) + 36;

B. int rn = (int)(Math.random() * 25) + 60;

C. int rn = (int)(Math.random() * 26) + 60;

D. int rn = (int)(Math.random() * 36) + 25;

E. int rn = (int)(Math.random() * 60) + 25;

What is d/int rn = (int)(Math.random() * 36) + 25;?

300

Some toilet roll holders or dispensers allow the toilet paper to hang in front of (over) or behind (under) the roll when it is placed parallel to the wall. This divides opinions about which orientation is better. Arguments range from aesthetics, hospitality, ease of access, and cleanliness to paper conservation, ease of detaching sheets, and compatibility with pets.

The US advice column Ask Ann Landers reported that the subject was the most controversial issue in the column's history and, at 15,000 letters in 1986, provoked the highest number of responses.[1]

The case study of "toilet paper orientation" has been used as a teaching tool in instructing sociology students in the practice of social constructionism.[2]

The main reasons given by people to explain why they hang their toilet paper a given way are ease of grabbing and habit.[3]

The over position reduces the risk of accidentally brushing the wall or cabinet with one's knuckles, potentially transferring grime and germs;[4] makes it easier to visually locate and to grasp the loose end;[5] gives the option to fold over the last sheet to show that the room has been cleaned;[6] and is generally the intended direction of viewing for the manufacturer's branding, so patterned toilet paper looks better this way.[7]

The under position provides a tidier appearance, in that the loose end can be more hidden from view;[8][9] reduces the risk of a toddler or a house pet such as a cat unrolling the toilet paper when batting at the roll;[10] and in a recreational vehicle may reduce unrolling during driving.[11]

Partisans have claimed that each method makes it easier to tear the toilet paper on a perforated sheet boundary.[12]

The over position is shown in illustrations with the first patents for a free-hanging toilet-roll holders, issued in 1891.[13]

Various toilet paper dispensers are available which avoid the question of over or under orientation; for example, single sheet dispensers, jumbo roll dispensers in which the toilet roll is perpendicular to the wall, and twin roll dispensers.[14] Swivelling toilet paper dispensers have been developed which allow the paper to be unrolled in either direction.[15][16]

Public opinion[edit]

In various surveys, around 70% of people prefer the over position.[17][18][19][20][21][22][23][24] In a survey of 1,000 Americans, Cottonelle found that "overs" are more likely than "unders" to notice a roll's direction (74 percent), to be annoyed when the direction is "incorrect" (24 percent), and to have flipped the direction at a friend's home (27 percent).[25] According to W. C. Privy's Original Bathroom Companion, Number 2, "By more than 4 to 1, older folks prefer to have their toilet paper dispense over the front."[26] The same claim is made by James Buckley's The Bathroom Companion for people older than 50.[27] Toilet paper orientation is sometimes mentioned as a hurdle for married couples.[28] The issue may also arise in businesses and public places.[29] At the Amundsen–Scott Research Station at the South Pole, complaints have been raised over which way to install toilet paper.[30] It is unclear if one orientation is more economical than the other. The Centralian Advocate attributes a claim to Planet Green that over saves on paper usage.[31]

I ain't reading allat

400

Attributes or instance variables

What is defines what the object knows about itself?

400

What is the value of pos after the following code executes?

String s1 = "abccba";

int pos = s1.indexOf("b");

What is 1?

400

New

What is a keyword used to create new objects and initialize the object's attributes?

400

What is the output of the following code?

String message = "Have a nice day!";

System.out.print(mesage.substring(7));

Nothing, message is misspelled in the second line of code

400

Who had the most points at the end of juicemind

I don rember 💀

500

Formal parameters

What is the variables in a method's definition that holds the arguments?
500

What is the output of the following code?

String first = "Gerald";

String middle = "Foster";

String last = "Jones";

String initials = first.substring(0,1) + middle.substring(0,1) + last.substring(0,1);

System.out.print(initials.toLowerCase());

What is gfj?

500

toString

What is returning a string representing the object that is passed to this method?
500

Give an example of code that would cause an overflow to happen.

Ex. Integer.MAX_VALUE + 1

500

The creater of Dreadsite

Who is Alexander Walkowski?