Answer:
Explanation:
The code in C++ is written as:
#include <iostream>
using namespace std;
int smallestIndex(int arr[],int size)
{
int min=arr[0],ind=0;
for(int i=0;i<size;i++)
{
if(min>arr[i])
{
min=arr[i];
ind=i; NOTE: ind serves as a variable that is holding the smallest
} element index of array
}
return ind;
}
int main() {
int arr[15];
cout<<"Enter 15 integers: ";
for(int i=0;i<15;i++)
cin>>arr[i];
for(int i=0;i<15;i++)
cout<<arr[i]<<" "<<endl;
int index=smallestIndex(arr,15);
cout<<"The position of the first occurrence of the smallest element in list is: "<<index<<endl;
cout<<"The smallest element in list is: "<<arr[index];
}
OUTPUT:
Enter 15 integers:
4
5
8
4
6
1
2
1
4
5
7
9
5
7
8
4 5 8 4 6 1 2 1 4 5 7 9 5 7 8
The position of the first occurrence for the smallest element in the list is 5
The smallest element in the list is: 1
Answer:
Data remanence
Explanation:
Data remanence is the retention of erased data on a magnetic medium. Sensitive detection systems can pick up the residue (remnants) from previously recorded data even though the area has been rewritten.
This is not a simple procedure; however, it is employed if the <u>missing information</u> is related to national defense or some other critical situation
Answer:
These are personal skill
Explanation:
Interpersonal ;; how you deal with the others.
Mathematical ;; how you use maths.
Verbal ;; how you speak
Those are internal values. They do not fit those others. So personal.!
Answer:
Protocol
A network protocol is an established set of rules that determine how data is transmitted between different devices in the same network. Essentially, it allows connected devices to communicate with each other, regardless of any differences in their internal processes, structure or design. Network protocols are the reason you can easily communicate with people all over the world, and thus play a critical role in modern digital communications.
Explanation:
There are three types of loops in programming languages which are as following:-
- for.
- while.
- do while.
The syntax for all the three loops is different.You will see mostly for loop used with the arrays because they are easy to implement.
the syntax of for loop is :-
for(int i=initial value;condition;i++)
{
body
}
In for loops you only have to write the conditions in only line else is the body of the loop.
for example:-
for array of size 50 printing the each element
for(int i=0;i<50;i++)
{
cout<<arr[i]<<" ";
}
You have to initialize i with 0 and the condition should be i<size of the array and then increase the counter.