Answer:
vec[0].push_back(10)
Explanation:
Given
Declaration: vector <int> vec
Required
Assign 10 to the first element
This can be done using the push_back keyword.
The syntax is: <em>vectorname[position].push_back(value); </em>
In this case:
vectorname = vec
position = 0 i.e. first element
value = 10
So, we have:
vec[0].push_back(10)
Answer:
Explanation:
The following is written in Java and prints out the pattern to and from the first num parameter that is passed to the function. Meaning it goes from num1 to 0 and then from 0 to num1 again. It prints all of the values in a single line seperated by a space and a test case was used using the values provided in the question. The output can be seen in the attached picture below.
static void printNumPattern(int n1,int n2){
System.out.print(n1 + " ");
if(n1<=0) {
return;
} else {
printNumPattern(n1-n2,n2);
}
System.out.print(n1 + " ");
}
Answer:
(B) Home
Explanation:
Echo is an Amazon product.
Home is a smart speaker developed by Google.
Cortana is a product of Microsoft.
HomePod is developed by Apple.
If Henry wants to be connected to his Google account, you would recommend him to buy Home, because it is a Google product.
Answer:
Disable SSID Brodcasting, Lower Radio Power Levels, Enable MAC Filtering