D. RAM
<span>Primary storage typically refers to random access memory (RAM), while secondary storage refers to the computer's internal hard drive. RAM,
commonly called "memory," is considered primary storage, since it
stores data that is directly accessible by the computer's CPU.</span>
Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
void display(int array_test [], int n){
for(int i = 0; i<n;i++){
cout<<array_test[i]<<" "; }
}
int main(){
int n;
cin>>n;
int array_test[n];
for(int i = 0; i<n;i++){
cin>>array_test[i];
}
display(array_test,n);
return 0;
}
Explanation:
This defines the display function
void display(int array_test [], int n){
This iterates through the array
for(int i = 0; i<n;i++){
This prints each element of the array
cout<<array_test[i]<<" "; }
}
The main begins here
int main(){
This declares n as integer; n represents the length of the array
int n;
This gets input for n
cin>>n;
This declares the array
int array_test[n];
The following iteration gets input for the array
for(int i = 0; i<n;i++){
cin>>array_test[i];
}
This calls the display function to display the elements of the array
display(array_test,n);
return 0;
}
Answer:
A & D.
Explanation:
In real time operating system, the best description for this type of attack explained in the question is;
DOS and Race Condition.
Because race condition takes place when 2 or more threads are able to both access and change shared data simultaneously ,while DOS is a good foundation to build a custom made Real time operating system.
Thus, options A & D are correct.