Python:
from random import randint
dice_1 = randint(1, 6)
dice_2 = randint(1, 6)
Java:
int dice1 = (int) (Math.random() * 7);
int dice2 = (int) (Math.random() * 7);
Answer:
d) Online, real-time systems.
Explanation:
The options are:
a) Batch processing systems.
b) Personal computer systems.
c) Data compression systems.
d) Online, real-time systems.
And the correct option is D. Online, a real-time system. And this is because it is this which is characterized by the data which is assembled from more than one location as it is online, and various clients from various locations enter the data, and it's updated immediately, as it is a real-time system, which is updated in real-time. And hence D. is the correct option. The data compression system takes the data from one location at a time. The batch processing system is made up of different programs for input, output, and process. and hence is different from real-time, which requires continual all the three. And a PC is not made to a specific function, and it does different activities. Hence, its also not the right option here.
Answer:
Heterotrophs
Explanation:
Heterotrophs, or consumers, are organisms that must obtain energy by consuming other organisms (autotrophs or other heterotrophs) as food.
Answer:
The answer is "Option 3".
Explanation:
In the given question the code (ii) is correct because in the class definition class "Student" defines a constructor that does not use any return type. and code (i) class definition the class "Student" defines a constructor that uses return type void which is not allowed in the constructor. and other options are not correct that can be described as follows:
- In option 1, only code (ii) is correct.
- In option 2, code (ii) is correct that's why it is not correct.
- In option 4, it is not correct, because it uses void return type.