Answer:
#include<iostream>
#include <vector>
#include <list>
using namespace std;
int main(){
int a[10]={0,1,2,3, 4, 5, 6, 7, 8, 9 };
std::vector<int> v (&a[0],&a[0]+10);
std::list<int> l (&a[0],&a[0]+10);
int b[10];
for(int i=0;i<10;i++){
b[i]=a[i];
}
std::vector<int> v2(v);
std::list<int> l2(l);
for(int i=0;i<10;i++){
b[i]+=2;
}
for(int i=0;i<10;i++){
v2[i]+=3;
}
for (std::list<int>::iterator it = l2.begin(); it != l2.end(); it++)
*it=*it+5;
cout<<"Each containers value are: "<<endl;
cout<<"1st array: "<<endl;
for(int i=0;i<10;i++){
cout<<a[i]<<" ";
}
cout<<"\n 1st vector: \n";
for(int i=0;i<10;i++){
cout<<v[i]<<" ";
}
cout<<"\n 1st List is:\n";
for (std::list<int>::iterator it = l.begin(); it != l.end(); it++)
cout << *it << ' ';
cout<<"\n 2nd array: "<<endl;
for(int i=0;i<10;i++){
cout<<b[i]<<" ";
}
cout<<"\n 2nd vector:\n";
for(int i=0;i<10;i++){
cout<<v2[i]<<" ";
}
cout<<"\n 2nd list:\n";
for (std::list<int>::iterator it = l2.begin(); it != l2.end(); it++)
cout << *it << ' ';
return 0;
}
Explanation:
- Initialize an array, a vector and a list of type integer
.
- Create a 2nd array, vector, and list as a copy of the first array, vector, and list.
- Increase the value of each element in the array by 2
, vector by 3 and list by 5.
- Finally display the relevant results.
Answer:
False.
Explanation:
The fixed program computer was used earlier which used wired processor and it was very laborious to make changes in processors. In the fixed program, the computer was following the build-in instructions and were processing only those data which were stored in memory.
Stored program computers are used in modern computers that are those computers that have single process structure and which will have instructions on how to perform the function on the computer and how to keep track of the processed data in computation.
Stored program computers keep program instruction in electronic memory.
Answer:
D) An Amazon Resource name is created.
Explanation:
Amazon SNS topic:-It is basically a logical access point that act as a channel of communication.It helps you to group multiple endpoints (such as Amazon SQS, HTTP/S, an email address,AWS Lambda,).
A resource name is created when a Amazon SNS topic is created.
The book was 'Extremely Loud and Incredibly Close' and it was written by <span>Jonathan Safran Foer.</span>
<span>The No Electronic Theft, or NET Act is a U.S. law meant to combat online piracy and distribution of copyrighted material. ... A second, more sever level of federal crime is committed when at least ten copies of copyrighted material are copied over a 180 day period.</span>