Answer:
if the number of elements in the array are equal to the size of the array then return -1.
Explanation:
We are implementing stack using array.Stack is a LIFO(Last In First Out) type data structure.Insertion and deletion is from one end only.
So while push operation or inserting elements in the stack using array we have to check that the capacity of array is not reached.If reached then no element can be inserted in the stack.If not then we can insert element in the stack.
Answer: Geotagging was enabled on her smartphone
Explanation:
The security weakness that is the most likely cause of the security breach is that geotagging was enabled on the vice president's smartphone.
Geotagging, occurs when geographical identification metadata are added to websites, photograph, video, etc. Geotagging can be used to get the location of particular place.
In this case, since geotagging was enabled on her smartphone, it was easy for the attacker to locate her house.
Answer:
18
Explanation:
lets go step by step.
the function called tryIt has a value, a variable named "a". this "a" variable will be whatever the user enters when the program says, Enter a number.
ok so if we enter "a" as 2, and b in the function will always be 7, and 2 + 7 equals 9,
and the ans variable (short for answer) will take the result of the function (9) and multiply it by 2,
then the answer is 18