Answer:
b. When an array is created, the number of elements must be placed in square brackets following the type of element being stored.
Explanation:
In Java an uninitialized array contains null values. Thus statement c is true as well.
Also generally for initializing and displaying array elements a for loop is used. Hence statement d is also correct.
In Java syntax for declaring an array is as follows:
Array declaration:
type [] array_name ;
Array instantiation(memory allocation):
type [] array_name = new array_name [size of array];
From the above it can be seen that the statement a is true and statement b is false as number of elements in array are not mentioned after the type.
Hence the correct answer is b.
Answer:
False
Explanation:
The Department of Homeland Security (DHS) plays vital role to secure country from many types of threats. One of the Operational and Support Components of DHS is Cybersecurity and Infrastructure Security Agency (CISA).
CISA plays the leading role to protect IT infrastructure from cybersecurity threats of today. It works with partners from all levels of government and private sectors to meet the challenges of cybersecurity.
I believe to reboot is to reset. Its the act of resetting, or starting up a computer again.
Answer:
The program to this question can be given as:
Program:
factorial=1 #declare a variable.
number=int(input("Enter a positive integer:")) #input a number.
while (number>0): #loop
factorial= factorial*number # holding value in factorial variable
number=number-1
print('=',factorial) #print value.
Output:
Enter a positive integer:6
= 720
Explanation:
The description of the above python program can be given as:
- In the above program firstly we define a variable that is "factorial". In this variable, we assign a value that is 1 and it is used to calculate the factorial value.
- We define a variable "number". The number variable is used to take input from the user.
- Then we define a loop in the loop we calculate the factorial and hold the value in the factorial value in the last we print the value.
Positive impacts are
1. Communicating with people
2. Daily update of what going on in the world
3. learn new things
Negative impacts are
1. Viruses
2. Private information shared
3. Less face to face conversations