Answer:
public class Player {
public static int totalPlayers = 0;
public static int maxPlayers = 10;
public static boolean gameFull() {
return totalPlayers >= maxPlayers;
}
public Player() { // Player class constructor
totalPlayers++;
}
}
Explanation:
The Java program defines the class Player which has two public class variables and a public method. The class constructor increases the totalPlayer variable by one for every player object created.
Answer:
Characteristics of RAM or ROM memory
Explanation:
RAM (Random Access Memory).
• It is a read (R) and write (W) memory (R/W)
• Types of RAM - SDR SDRAM, RDRAM, DDR SDRAM. The difference is the speed in sending data.
• It is used for the operating system, programs and most of the software.
• Recommendations of at least 8 GB of RAM for PC and At least 2 GB of RAM for a mobile.
ROM (Read Only Memory)
• Store instructions and data permanently
• it's read only
• Type of non-volatile memory
• Save data and system information, settings and programs
• Types of ROM - Mask ROM, PROM, EPROM and EEPROM.
- A PC must have at least 256 GB.
Answer:
oneMore(oneMore(oneMore(oneMore(oneMore(0)))))
Explanation:
- As a function has been explained which when given an integer results as a next integer. oneMore(given-integer)= next integer
- As we are restricted to use 0 only and can't use operators like + - * /.
- We have to obtain a value 5
- So doing step-by-step:
(oneMore(0))=1
(oneMore(oneMore(0)))=2
(oneMore(oneMore(oneMore(0))))=3
(oneMore(oneMore(oneMore(oneMore(0)))))=4
oneMore(oneMore(oneMore(oneMore(oneMore(0)))))=5
B. They make it easy to take panoramic photographs of the crime scene.
Explanation:
- SLR is the single-lens reflex analog camera with dated looks. Traditional SLR has more manual controls and no monitor on the rear.
- A DSLR or Digital Single Lens Reflex camera is a facelift of the traditional SLRs. They are pricey but have the power of capturing minutest details.
- SLRs give more opportunity for creativity. They give an important competition to digital cameras in pixel output too.
- However, if the quality is paramount invest in a good SLR.