4. Only (ii)
<u>Explanation:</u>
The declaration of the array can be of two types:
1. int a[100];
2. int[] a = new int[100];
The general thing about an array is that whenever we want to undergo traversal in an array, we always have to start from the 0th position as the size of the array may be a whole number (let us say 10). So, to undergo traversal in an array, we start from 0 to n-1 (in this case 9) such that it covers the size of the array.
The size of an array can be finite or infinite. The general rule is it starts from 0 to n-1 where n is the size of the array. In the above example, the range of the index of the array will be 0 through 100 and not 1 through 100.
Answer:
First Generation, Second Generation, Third Generation, Fourth Generation, Fifth Generation
Explanation:
First Generation- Vacuum Tubes
Second Generation- Transistors
Third Generation- Integrated Circuits
Fourth Generation- Microprocessors
Fifth Generation- Artificial Intelligence
Answer: B webcast
Explanation:
A webcast is a technology that allows the live broadcast of an audio or video event on the Internet. It is also known as Web lecture, virtual meeting, etc. The major advantage is that it gives room for an event to have a larger reach. Webcast participation can be through PC, smart phones, tablets and other devices with quality Internet access.
Answer:
import java.util.Scanner;
public class num8 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter month's budget");
double monthBudget = in.nextDouble();
double totalExpenses = 0.0;
double n;
do{
System.out.println("Enter expenses Enter zero to stop");
n = in.nextDouble();
totalExpenses += n;
}while(n>0);
System.out.println("Total expenses is "+totalExpenses);
System.out.println("The amount over your budget is "+ Math.abs(monthBudget-totalExpenses));
}
}
Explanation:
- Using Java programming language
- Prompt user for month's budget
- Use Scanner class to receive and store the amount entered in a variable
- Use a do while loop to continuously request user to enter amount of expenses
- Use a variable totalExpenses to add up all the expenses inside the do while loop
- Terminate the loop when user enters 0 as amount.
- Subtract totalExpenses from monthBudget and display the difference as the amount over the budget
The compound condition are:
- 7<12 or 50!=10 is false
- 7<12 and 50<50 is false
- not (8==3) is true
<h3>What is compound condition?</h3>
A compound statement is known to be one that shows up as the body of another statement, e.g. as in if statement.
The compound condition are:
- 7<12 or 50!=10 is false
- 7<12 and 50<50 is false
- not (8==3) is true
Learn more about compound condition from
brainly.com/question/18450679
#SPJ1